/* 
 * assets/css/style.css
 * Hoja de estilos principal para "Finanzas con Divier"
 * Adaptada con la paleta de colores e identidad de la Escuela Financiera del Pacífico.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  /* ==========================================================
     VARIABLES DE COLOR - ESCUELA FINANCIERA DEL PACÍFICO
     ========================================================== */
  /* Fondos */
  --bg-main: #F8F9FA;          /* Fondo base off-white */
  --bg-warm: #F2EFE9;          /* Fondo crema cálido (Visión) */
  --bg-dark: #0D482C;          /* Verde bosque profundo (Footer / Hero block) */
  --bg-card: #FFFFFF;          /* Blanco tarjetas */

  /* Identidad y Acentos */
  --primary-green: #0D482C;    /* Verde institucional */
  --primary-green-light: #155E38; /* Tono verde ligeramente más claro para hover */
  --accent-gold: #A87C4F;      /* Dorado bronce (CTA / Íconos) */
  --accent-gold-hover: #8E653C;/* Dorado más oscuro para hover */
  
  /* Textos */
  --text-dark: #1C201E;        /* Títulos y texto general */
  --text-muted: #4A524D;       /* Subtítulos o texto secundario */
  --text-light: #FFFFFF;       /* Texto sobre fondo verde */

  /* Estructura y Detalles */
  --border-card: #0D482C;      /* Borde verde delgado para tarjetas */
  --border-light: #E0E3E1;     /* Líneas divisoras neutras */

  /* Tipografías */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --font-body-alt: 'Inter', 'Open Sans', sans-serif;

  /* Sombras y Bordes */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(13, 72, 44, 0.08);
  --shadow-lg: 0 12px 24px rgba(13, 72, 44, 0.12);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* -------------------------------------------------------------
   RESETS & GENERAL STYLES
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------- */
.top-bar {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 400;
    border-bottom: 2px solid var(--accent-gold);
    text-align: center;
}

.top-bar-text {
    max-width: 1000px;
    line-height: 1.4;
    font-style: italic;
    letter-spacing: 0.3px;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.main-header.scrolled {
    background-color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 54px !important;
    width: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
    transition: var(--transition-fast);
}

.logo-web {
    display: block !important;
}

.logo-movil {
    display: none !important;
}

.logo-subtitle {
    font-family: var(--font-body-alt);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-body-alt);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Burger Button */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* -------------------------------------------------------------
   BUTTONS & CTAS
------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body-alt);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
    text-align: center;
}

.btn-contact {
    background-color: var(--primary-green);
    color: var(--text-light);
    border-radius: 6px;
    padding: 10px 22px;
}

.btn-contact:hover {
    background-color: var(--primary-green-light);
    transform: translateY(-1px);
}

.btn-primary-cta {
    background-color: var(--accent-gold);
    color: var(--text-light);
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary-cta:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary-cta {
    background-color: transparent;
    color: var(--text-dark);
    border: none;
    font-weight: bold;
    padding: 12px 20px;
}

.btn-secondary-cta:hover {
    color: var(--primary-green);
    transform: translateY(-1px);
}

.btn-white-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-white-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #062817 100%);
    color: var(--text-light);
    padding: 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(var(--accent-gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.08;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-tag {
    font-family: var(--font-body-alt);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background-color: var(--accent-gold);
}

.hero-title {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: 1rem;
    color: var(--bg-main);
    max-width: 620px;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-avatar {
    width: 324px;
    height: 384px;
    background: linear-gradient(to bottom, #113823, #082d1b);
    border-radius: var(--radius-md);
    border: 3px solid rgba(168, 124, 79, 0.4);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.hero-avatar-frame {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 324px;
    height: 384px;
    border: 3px solid var(--accent-gold);
    border-radius: var(--radius-md);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-normal);
}

.hero-image-wrapper:hover .hero-avatar {
    transform: translateY(-8px);
}

.hero-image-wrapper:hover .hero-avatar-frame {
    transform: translate(8px, 8px);
}

/* -------------------------------------------------------------
   CREDENTIALS BAR
------------------------------------------------------------- */
.credentials-bar {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    margin-top: -35px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    border: 1px solid var(--border-light);
    border-bottom: 4px solid var(--accent-gold);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px;
}

.credential-item:not(:last-child) {
    border-right: 1px solid var(--border-light);
}

.credential-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(168, 124, 79, 0.12);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.credential-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.credential-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   SECTION GENERAL HEADINGS
------------------------------------------------------------- */
.section {
    padding: 96px 0;
}

.section-alt {
    background-color: var(--bg-warm);
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-subtitle {
    font-family: var(--font-body-alt);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--primary-green);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
}

.section-header-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin-top: 8px;
}

/* -------------------------------------------------------------
   SERVICES CARDS & PORTFOLIO
------------------------------------------------------------- */
.services-grid,
.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.service-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 36px 28px 30px;
    text-align: center;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background-color: #FAF9F6; /* Un leve tono cálido al hacer hover */
    border-color: var(--accent-gold);
}

.service-card-icon {
    font-size: 2.25rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3,
.service-card .service-card-title {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body-alt);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    background-color: var(--accent-gold);
    padding: 11px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    gap: 8px;
    transition: var(--transition-normal);
    margin-top: auto;
    align-self: center;
    box-shadow: 0 4px 10px rgba(168, 124, 79, 0.15);
    text-decoration: none;
}

.service-card-link:hover {
    color: var(--text-light);
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 124, 79, 0.3);
}

.service-card-link i,
.service-card-link svg {
    transition: var(--transition-fast);
}

.service-card:hover .service-card-link .fa-arrow-right,
.service-card:hover .service-card-link svg {
    transform: translateX(4px);
}

.service-card:hover .service-card-link .fa-arrow-down {
    transform: translateY(4px);
}

/* -------------------------------------------------------------
   MILESTONES / IMPACT FIGURES
------------------------------------------------------------- */
.milestones-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #062817 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    border-top: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.milestone-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.milestone-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.milestone-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
}

.milestone-desc {
    font-size: 0.9rem;
    color: var(--bg-main);
    opacity: 0.8;
}

/* -------------------------------------------------------------
   LEAD MAGNET / INTERACTIVE QUESTIONNAIRE
------------------------------------------------------------- */
.lead-magnet-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1.5px solid var(--primary-green);
}

.lead-magnet-header {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 32px 40px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--accent-gold);
}

.lead-magnet-header h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.lead-magnet-header h3 span {
    color: var(--accent-gold);
}

.lead-magnet-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.lead-magnet-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--accent-gold);
    transition: var(--transition-normal);
}

.questionnaire-form {
    padding: 40px;
}

.question-step {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.question-step.active {
    display: block;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-green);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-card {
    position: relative;
    padding: 16px 24px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-main);
}

.option-card:hover {
    background-color: var(--bg-warm);
    border-color: var(--primary-green);
}

.option-card input[type="radio"] {
    appearance: none;
    background-color: var(--bg-card);
    margin: 0;
    font: inherit;
    color: var(--primary-green);
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transform: translateY(-1px);
    display: grid;
    place-content: center;
    cursor: pointer;
}

.option-card input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition-fast) transform;
    background-color: var(--accent-gold);
}

.option-card input[type="radio"]:checked::before {
    transform: scale(1);
}

.option-card.selected {
    border-color: var(--accent-gold);
    background-color: rgba(168, 124, 79, 0.08);
}

.option-label {
    font-family: var(--font-body-alt);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
}

.questionnaire-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

/* Results Step Styling */
.results-container {
    text-align: center;
    padding: 24px 0;
    animation: fadeIn var(--transition-normal);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: var(--bg-warm);
    color: var(--accent-gold-hover);
    font-family: var(--font-body-alt);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-gold);
}

.result-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.result-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------
   ABOUT ME PAGE SPECIFICS
------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.about-sticky-side {
    position: sticky;
    top: 120px;
}

.about-quote {
    background-color: var(--bg-warm);
    border-left: 4px solid var(--accent-gold);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 24px;
}

.about-quote-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.about-quote-author {
    font-family: var(--font-body-alt);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about-text-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-green);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-text-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 0.98rem;
    text-align: justify;
}

.timeline {
    margin-top: 32px;
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--accent-gold);
}

.timeline-date {
    font-family: var(--font-body-alt);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-green);
}

.timeline-subtitle {
    font-family: var(--font-body-alt);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Certifications list grid */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.cert-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
}

.cert-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    font-size: 1.75rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.cert-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary-green);
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   SERVICES PAGE SPECIFICS
------------------------------------------------------------- */
.services-full-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-section-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.service-section-row:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.service-section-row:nth-child(even) .service-section-img-wrapper {
    order: 2;
}

.service-section-img-wrapper {
    position: relative;
}

.service-section-img {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.service-section-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-section-badge {
    align-self: flex-start;
    padding: 6px 12px;
    background-color: var(--bg-warm);
    color: var(--accent-gold-hover);
    font-family: var(--font-body-alt);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
}

.service-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-green);
}

.service-list-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.service-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
}

.service-list-icon {
    color: var(--accent-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* -------------------------------------------------------------
   PUBLICATIONS PAGE SPECIFICS
------------------------------------------------------------- */
.featured-column {
    background-color: var(--primary-green);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 56px;
    margin-bottom: 56px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-gold);
}

.featured-column::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: #062817;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

.featured-column-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.featured-column-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--accent-gold);
    color: var(--text-light);
    font-family: var(--font-body-alt);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    white-space: nowrap;
}

.featured-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 2rem;
    line-height: 1.25;
}

.featured-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.55;
}

.featured-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-tag-subtitle {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.latest-publication-grid {
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 36px;
}

.latest-publication-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.latest-publication-img {
    width: 100%;
    max-height: 280px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(168, 124, 79, 0.4);
    object-fit: cover;
    transition: var(--transition-normal);
}

.latest-publication-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-gold);
}

.featured-meta {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-separator {
    margin: 0 4px;
}

.featured-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.featured-actions .btn {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .latest-publication-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .latest-publication-img {
        max-height: 320px;
    }
}

@media (max-width: 576px) {
    .featured-actions {
        flex-direction: column;
        width: 100%;
    }

    .featured-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .latest-publication-img {
        max-height: 240px;
    }
}

/* -------------------------------------------------------------
   CUSTOMER TESTIMONIALS SECTION
------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 32px 28px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.2rem;
    color: var(--accent-gold);
    opacity: 0.2;
}

.testimonial-segment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body-alt);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold-hover);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background-color: var(--bg-warm);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 16px;
    border: 1px solid rgba(168, 124, 79, 0.2);
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), #062817);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
}

.testimonial-author-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 2px 0;
}

.testimonial-author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Blog Articles Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-light);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: var(--primary-green);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tag {
    font-family: var(--font-body-alt);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.blog-card-title a {
    color: var(--primary-green);
}

.blog-card-title a:hover {
    color: var(--accent-gold);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   CONTACT PAGE SPECIFICS
------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info-panel {
    background-color: var(--primary-green);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--accent-gold);
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.contact-info-desc {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 36px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.channel-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    font-size: 1.25rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.channel-details h4 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.channel-details p,
.channel-details a {
    font-size: 0.9rem;
    color: var(--bg-main);
    opacity: 0.9;
}

.channel-details a:hover {
    color: var(--accent-gold);
}

.legal-notice-box {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Form Panel */
.contact-form-panel {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-light);
}

.contact-form-panel:hover {
    border-color: var(--primary-green);
}

.contact-form-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.contact-form-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-family: var(--font-body-alt);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-green);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body-alt);
    font-size: 0.95rem;
    border: 1.5px solid var(--border-light);
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-green);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    accent-color: var(--primary-green);
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--accent-gold);
}

/* Dynamic submission alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #E6F4EA;
    color: #137333;
    border: 1px solid rgba(19, 115, 51, 0.2);
    display: flex;
}

.alert-danger {
    background-color: #FCE8E6;
    color: #C5221F;
    border: 1px solid rgba(197, 34, 31, 0.2);
    display: flex;
}

/* -------------------------------------------------------------
   MODALS
------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 72, 44, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal) opacity;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition-normal) transform;
    position: relative;
    border: 2px solid var(--primary-green);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--bg-warm);
    color: var(--primary-green);
}

.modal-header {
    padding: 32px 32px 16px;
    border-bottom: 1.5px solid var(--border-light);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-green);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex-grow: 1;
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 15px 0 10px; /* Highly compact padding for a thin footer */
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 64px;
    margin-bottom: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.35rem;
    font-weight: 700;
}

.footer-logo-title span {
    color: var(--accent-gold);
}

.footer-logo-subtitle {
    font-family: var(--font-body-alt);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--bg-main);
    opacity: 0.85;
    line-height: 1.6;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--accent-gold);
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-light);
    opacity: 0.85;
}

.footer-link:hover {
    color: var(--accent-gold);
    opacity: 1;
    transform: translateX(4px);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--bg-main);
    opacity: 0.85;
}

.footer-contact-item svg {
    color: var(--accent-gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px; /* Reduced top padding to the absolute minimum */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body-alt);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* -------------------------------------------------------------
   KEYFRAMES ANIMATIONS
------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .credentials-grid {
        gap: 16px;
        padding: 24px 12px;
    }
    
    .services-grid,
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-sticky-side {
        position: static;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
    
    .footer-col:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .logo-web {
        display: none !important;
    }

    .logo-movil {
        display: block !important;
        height: 44px;
        width: auto;
        max-height: 44px;
        object-fit: contain;
    }

    .top-bar-text {
        font-size: 0.8rem;
        padding: 0 12px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    #nav-desktop-cta {
        display: none !important;
    }
    
    #nav-mobile-cta {
        display: block !important;
    }

    .burger-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 20px;
        box-shadow: -10px 10px 30px rgba(13, 72, 44, 0.15);
        transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999999;
        border-left: 3px solid var(--primary-green);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }
    
    .nav-menu.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .burger-btn.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .burger-btn.active .burger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .burger-btn.active .burger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-slide {
        padding: 40px 0 50px; /* Compact padding for mobile/tablet screen */
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-tag {
        justify-content: center;
    }
    
    .hero-desc {
        margin: 0 auto;
    }
    
    .hero-ctas {
        justify-content: center;
        width: 100%;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .credential-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 20px;
    }
    
    .credential-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .services-grid,
    .services-grid-3 {
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 32px;
        gap: 24px;
    }

    .service-card {
        padding: 30px 22px 26px;
        min-height: auto;
        width: 100%;
    }

    .service-card-icon {
        font-size: 2.1rem;
        margin-bottom: 14px;
        height: 40px;
    }

    .service-card h3,
    .service-card .service-card-title {
        font-size: 1.25rem;
        min-height: auto;
        margin-bottom: 12px;
    }

    .service-card-desc {
        font-size: 0.95rem;
        margin-bottom: 22px;
        line-height: 1.6;
    }

    .service-card-link {
        width: 100%;
        max-width: 260px;
        padding: 12px 24px;
    }
    
    .milestones-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-section-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .service-section-row:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .service-section-row:nth-child(even) .service-section-img-wrapper {
        order: 0;
    }
    
    .service-section-img {
        height: 280px;
    }
    
    .featured-column {
        padding: 32px;
    }
    
    .featured-column-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 32px 20px;
    }
    
    .form-grid,
    .modal-box .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-col:last-child,
    .footer-col {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .lead-magnet-header {
        padding: 24px;
    }
    
    .questionnaire-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .hero-avatar,
    .hero-avatar-frame {
        width: 260px;
        height: 310px;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .education-certs-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* ==========================================================
   HERO SLIDER STYLES
   ========================================================== */
#hero.hero-section {
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* Slider controls padding dynamically */
    background-color: var(--bg-main);
    min-height: 550px;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider-wrapper {
    display: flex;
    width: 400%; /* 4 slides */
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-slide {
    width: 25%; /* Each slide is 100% of container */
    flex-shrink: 0;
    padding: 50px 0 85px;
}

/* Slide Entry Animations for premium feeling */
.hero-slide .hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .hero-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.15s;
}

.hero-slide.active .hero-desc {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .hero-ctas {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.3s;
}

.hero-slide.active .hero-ctas {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .hero-avatar {
    opacity: 0;
    transform: scale(0.9) rotate(-1deg);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.1s;
}

.hero-slide.active .hero-avatar {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.hero-slide .hero-avatar-frame {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
}

.hero-slide.active .hero-avatar-frame {
    opacity: 1;
    transform: scale(1);
}

/* Slider navigation arrows */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 72, 44, 0.6);
    color: var(--text-light);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.slider-control:hover {
    background-color: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 20px;
}

.slider-control.next {
    right: 20px;
}

/* Slider dots indicators */
.slider-dots {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(13, 72, 44, 0.25);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots .dot.active {
    background-color: var(--accent-gold);
    transform: scale(1.25);
}

@media (max-width: 1024px) {
    .slider-control {
        display: none; /* Hide arrows on small screens, rely on autoplay / dots */
    }
}

/* ==========================================================
   BREADCRUMBS (MIGAS DE PAN)
   ========================================================== */
.breadcrumbs-bar {
    background-color: #F1F3F2;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.82rem;
    font-family: var(--font-body-alt);
    color: var(--text-muted);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--primary-green);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 400;
}

.breadcrumb-separator {
    color: var(--border-light);
    font-size: 0.7rem;
}

/* ==========================================================
   SECONDARY PAGE HEADERS (COMPACT)
   ========================================================== */
.page-header-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #062817 100%);
    color: var(--text-light);
    padding: 35px 0; /* Very compact vertical height */
    text-align: center;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(var(--accent-gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.08;
    pointer-events: none;
}

/* Breadcrumbs overrides inside page header */
.page-header-section .breadcrumbs-list {
    margin-bottom: 20px;
    justify-content: center;
}

.page-header-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header-section .breadcrumb-item a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.page-header-section .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4);
}

.page-header-section .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================
   NEWSLETTER FORM RESPONSIVENESS
   ========================================================== */
.newsletter-form-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.newsletter-form-container .form-control {
    flex: 1;
    min-width: 250px;
}

.newsletter-form-container .btn {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .newsletter-form-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-form-container .form-control {
        width: 100%;
    }
    
    .newsletter-form-container .btn {
        width: 100%;
    }
}

/* ==========================================================
   PATRONES DE FONDO DECORATIVOS (PATTERNS)
   ========================================================== */

/* 1. Patrón uniforme continuo (pattern_green_subtle.png) en Hero Section */
.hero-section {
    position: relative;
    background-color: var(--primary-green);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/pattern_green_subtle.png');
    background-repeat: repeat;
    background-size: 260px 260px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}
.hero-section .hero-slider-container {
    position: relative;
    z-index: 2;
}

/* 2. Patrón de marca de agua sutil (pattern_green_subtle.png) en Última Publicación y Portafolio */
.featured-column {
    position: relative;
    overflow: hidden;
}
.featured-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern_green_subtle.png');
    background-repeat: repeat;
    background-size: 260px 260px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}
.featured-column-grid {
    position: relative;
    z-index: 1;
}

/* 3. Patrón repetido en la sección Newsletter (pattern_gold_symbol.png reducido al 40% del tamaño original: 96px) */
#boletin-suscripcion {
    position: relative;
    overflow: hidden;
}
#boletin-suscripcion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern_gold_symbol.png');
    background-repeat: repeat;
    background-size: 96px 96px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}
#boletin-suscripcion .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================
   BOTÓN FLOTANTE "VOLVER ARRIBA" (SIEMPRE VISIBLE)
   ========================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: #0D482C; /* Verde sólido idéntico a la imagen */
    color: #FFFFFF;            /* Flecha blanca nítida */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top-btn:hover {
    background-color: #155E38;
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================
   BARRA FLOTANTE VERTICAL DE REDES SOCIALES
   ========================================================== */
.floating-social-bar {
    position: fixed;
    bottom: 80px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
}

.social-float-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0D482C; /* Verde institucional idéntico al sitio */
    color: #FFFFFF;            /* Icono en blanco puro */
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.social-float-icon:hover {
    background-color: #155E38;
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================
   ADAPTATIVIDAD RESPONSIVA PARA TABLET Y MÓVIL (FLOATING ELEMENTS)
   ========================================================== */
@media (max-width: 768px) {
    /* Ocultar el botón de flecha (Volver Arriba) en móviles y tablets */
    .back-to-top-btn {
        display: none !important;
    }

    /* Organizar la barra flotante de redes sociales horizontalmente */
    .floating-social-bar {
        bottom: 16px;
        right: 16px;
        flex-direction: row;
        gap: 10px;
    }

    .social-float-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .floating-social-bar {
        bottom: 14px;
        right: 14px;
        flex-direction: row;
        gap: 8px;
    }

    .social-float-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* ==========================================================
   ANIMACIÓN DE REVELADO EN SCROLL (EMERGER DE ABAJO A ARRIBA)
   ========================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   BANNER DE ACEPTACIÓN DE COOKIES (COOKIES CONSENT BANNER)
   ========================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 440px;
    width: calc(100% - 48px);
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cookie-banner-header i {
    color: var(--accent-gold);
    font-size: 1.35rem;
}

.cookie-banner-header h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.cookie-banner-body p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.cookie-banner-body p a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn-cookie-accept {
    background-color: var(--accent-gold);
    color: var(--primary-green);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cookie-banner-actions .btn-cookie-accept:hover {
    background-color: #E6C247;
    transform: translateY(-1px);
}

.cookie-banner-actions .btn-cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cookie-banner-actions .btn-cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        width: calc(100% - 32px);
        padding: 18px;
    }
}






