/* ==========================================================================
   GLOBAL VARIABLES & BRAND DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Color Palette from Brand Manual */
    --primary: #FFCD00;
    --primary-dark: #e0ba00;
    --primary-light: #ffe566;
    
    --secondary: #0077CC;         /* Slate blue/teal */
    --secondary-dark: #005fa3;
    --secondary-light: #3393e0;
    
    --grey-dark: #4D4D4D;         /* Letter color on yellow */
    --grey-light: #E9E9E9;        /* Light grey/off-white */
    
    /* Backgrounds - NO BLACK */
    --bg-dark: #0077CC;           /* Slate blue */
    --bg-dark-card: #005fa3;      /* Darker shade of slate blue */
    --bg-dark-card-hover: #004c85;
    
    --bg-light: #ffffff;
    --bg-light-sec: #f1f5f7;      /* Clean soft blue-grey tint */
    --bg-light-card: #ffffff;
    
    --border-light: #E9E9E9;      /* Brand light grey */
    --border-dark: #3393e0;       /* Lighter shade of slate blue */
    
    /* Text Colors */
    --text-dark-primary: #1A1A1A;
    --text-dark-secondary: #4D4D4D;
    --text-light-primary: #ffffff;
    --text-light-secondary: #E9E9E9;
    
    /* Font Families */
    --font-heading: 'Franklin Gothic Demi Cond', 'Franklin Gothic', 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
    
    /* Layout Tokens */
    --container-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 119, 204, 0.08);
    --shadow-dark: 0 20px 40px rgba(0, 76, 133, 0.25);
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

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

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

ul {
    list-style: none;
}

/* ==========================================================================
   REUSABLE UTILITIES & LAYOUT COMPONENTS
   ========================================================================== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-dark);
    background-color: var(--primary);
    border-radius: 4px;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.section-badge.text-yellow {
    background-color: var(--primary);
    color: var(--grey-dark);
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark-primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-title-sub {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-dark-secondary);
    margin-top: 12px;
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-white {
    color: var(--text-light-primary);
}

.section-lead {
    font-size: 1.25rem;
    color: var(--text-dark-secondary);
    max-width: 700px;
    margin-bottom: 50px;
    font-weight: 300;
}

.section-lead.text-left {
    margin-left: 0;
}

.section-lead.text-gray {
    color: var(--text-light-secondary);
}

.text-highlight {
    color: var(--primary);
    background: linear-gradient(180deg, transparent 65%, var(--primary-light) 65%);
}

.bg-dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--grey-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(254, 204, 14, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 119, 204, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    height: 40px;
    width: auto;
}

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

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light-secondary);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu .btn-nav {
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: 6px;
}

.nav-menu .btn-nav:hover {
    background-color: var(--primary-dark);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(254, 204, 14, 0.25);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light-primary);
    transition: var(--transition);
}

/* ==========================================================================
   BLOCK 1: HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, var(--bg-dark-card) 0%, var(--bg-dark) 60%);
    color: var(--text-light-primary);
    border-bottom: 1px solid var(--border-dark);
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-title .text-highlight {
    background: transparent;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light-secondary);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-subtitle p {
    margin-bottom: 18px;
}

.hero-subtitle p:last-child {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-dark);
    background-color: #12151b;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   BLOCK 2: PROBLEMA + INSIGHT
   ========================================================================== */
.problem-section {
    background-color: var(--bg-light-sec);
    border-bottom: 1px solid var(--border-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.problem-card {
    background-color: var(--bg-light-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(254, 204, 14, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark-primary);
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
}

.problem-outro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-dark-primary);
    font-weight: 300;
}

.insight-banner {
    background-color: var(--bg-dark);
    color: var(--text-light-primary);
    padding: 65px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.insight-content {
    position: relative;
    z-index: 2;
}

.insight-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.insight-banner h3 {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.insight-banner p {
    font-size: 1.25rem;
    color: var(--text-light-secondary);
    font-weight: 300;
}

/* ==========================================================================
   BLOCK 3: VÍDEO SECTION
   ========================================================================== */
.video-section {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
}

.video-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-block-visual {
    display: flex;
    justify-content: center;
}

.vertical-video-wrapper {
    width: 100%;
    max-width: 380px; /* Increased from 320px to 380px */
    aspect-ratio: 9/16;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(254, 204, 14, 0.15); /* added custom shadow focus */
    border: 3px solid var(--primary); /* subtle gold accent border for more visual focus */
    background-color: #000;
}

.vertical-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-block-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.video-caption-box {
    margin-top: 15px;
    font-size: 1.15rem;
    color: var(--text-light-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.video-caption-box p {
    margin-bottom: 15px;
}

.video-caption-box strong {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   BLOCK 4: ERROR SECTION
   ========================================================================== */
.error-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.error-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.error-card {
    background-color: var(--bg-light-sec);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.error-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    font-weight: 700;
    line-height: 1;
}

.error-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--text-dark-primary);
    position: relative;
    z-index: 2;
}

.error-card p {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    position: relative;
    z-index: 2;
}

.error-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0 auto;
    font-size: 1.25rem;
    color: var(--text-dark-primary);
    font-weight: 300;
}

.error-conclusion strong {
    font-weight: 600;
    color: var(--text-dark-primary);
}

/* ==========================================================================
   BLOCK 5: CAMBIO DE MARCO
   ========================================================================== */
.framework-section {
    background-color: var(--bg-dark);
    color: var(--text-light-primary);
    border-bottom: 1px solid var(--border-dark);
}

.framework-section .section-container {
    padding: 120px 24px;
}

.framework-slide {
    background: linear-gradient(135deg, var(--bg-dark-card) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 60px 80px;
    box-shadow: var(--shadow-dark);
}

.slide-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--bg-dark);
    background-color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.framework-slide h2 {
    font-size: 2.6rem;
    margin-bottom: 40px;
    max-width: 800px;
}

.slide-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.slide-left {
    border-right: 1px solid var(--border-dark);
    padding-right: 40px;
}

.slide-statement {
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-light-primary);
    font-weight: 300;
}

.slide-right {
    padding-left: 10px;
}

.slide-solution {
    font-size: 1.15rem;
    color: var(--text-light-secondary);
}

.slide-solution strong {
    color: var(--primary);
}

/* ==========================================================================
   BLOCK 6: AUTORIDAD
   ========================================================================== */
.authority-section {
    background-color: var(--bg-light-sec);
    border-bottom: 1px solid var(--border-light);
}

.authority-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.authority-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light-card);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 119, 204, 0.12);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark-secondary);
    margin-top: 5px;
    font-weight: 600;
}

.authority-subhead {
    font-size: 1.45rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    letter-spacing: 0.02em;
    line-height: 1.3;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.authority-intro-text {
    font-size: 1.25rem;
    color: var(--text-dark-primary);
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.5;
}

.authority-intro-text p {
    margin-bottom: 12px;
}

.authority-intro-text p:last-child {
    margin-bottom: 0;
}

.authority-text-block {
    font-size: 1.1rem;
    color: var(--text-dark-secondary);
    margin-bottom: 25px;
}

.authority-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-auth-link {
    font-size: 0.9rem;
    padding: 10px 20px;
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    color: var(--text-dark-primary);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.btn-auth-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(254, 204, 14, 0.25);
}

.authority-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.auth-logo {
    height: 55px; /* Enlarge logos! */
    width: auto;
    filter: none; /* Show full color! */
    opacity: 0.95;
    transition: var(--transition);
}

.auth-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.authority-visual {
    display: flex;
    flex-direction: column;
}

.signature-figure {
    background-color: var(--bg-light-card);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.signature-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.signature-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-dark-secondary);
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   BLOCK 7: QUÉ ES + CÓMO FUNCIONA
   ========================================================================== */
.method-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.phases-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
    position: relative;
}

.phase-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.phase-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    background-color: var(--bg-dark);
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.phase-step h3 {
    font-size: 1.25rem;
    color: var(--text-dark-primary);
    margin-bottom: 10px;
}

.phase-step p {
    font-size: 0.9rem;
    color: var(--text-dark-secondary);
}

.levels-container {
    background-color: var(--bg-light-sec);
    padding: 50px;
    border-radius: var(--border-radius);
    margin-top: 80px;
    border: 1px solid var(--border-light);
}

.levels-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 40px;
}

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

.level-card {
    background-color: var(--bg-light-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: var(--shadow);
}

.level-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
}

.level-card h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.level-card p {
    font-size: 0.9rem;
    color: var(--text-dark-secondary);
}

/* ==========================================================================
   BLOCK 8: CREDENCIALES + RESULTADOS + CTA
   ========================================================================== */
.credentials-section {
    background-color: var(--bg-dark);
    color: var(--text-light-primary);
    border-bottom: 1px solid var(--border-dark);
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
}

.cred-block, .results-block {
    background-color: var(--bg-dark-card);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-dark);
}

.block-mini-badge {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
}

.cred-block h3, .results-block h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cred-block p, .results-block p {
    color: var(--text-light-secondary);
    margin-bottom: 30px;
}

.cred-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 1rem;
}

.cred-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    border-left: 3px solid var(--primary);
    padding-left: 20px;
}

.result-item h4 {
    font-size: 1.15rem;
    color: var(--text-light-primary);
    margin-bottom: 5px;
}

.result-item p {
    font-size: 0.9rem;
    color: var(--text-light-secondary);
    margin-bottom: 0;
}

/* Final CTA and Contact Form */
.final-cta-block {
    background: radial-gradient(circle at top left, var(--bg-dark-card) 0%, var(--bg-dark) 70%);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: var(--shadow-dark);
}

.cta-text-wrapper h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.cta-message {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 300;
}

.cta-description {
    font-size: 1.05rem;
    color: var(--text-light-secondary);
}

.cta-description p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-description p:last-child {
    margin-bottom: 0;
}

.cta-form-wrapper {
    background-color: var(--bg-dark-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-dark);
}

.booking-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.booking-form label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light-secondary);
    margin-bottom: 8px;
}

.booking-form input, .booking-form textarea {
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: var(--text-light-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.booking-form input:focus, .booking-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(254, 204, 14, 0.15);
}

.booking-form textarea {
    resize: vertical;
}

.booking-form button {
    margin-top: 10px;
}

.booking-form button.btn-primary {
    font-size: 1.15rem;
    padding: 16px 32px;
    background-color: var(--primary);
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: 0 4px 15px rgba(254, 204, 14, 0.25);
    margin-top: 20px;
}

.booking-form button.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.booking-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem !important;
    padding: 16px 32px !important;
    background-color: var(--primary) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(254, 204, 14, 0.25) !important;
    text-decoration: none !important;
    width: 100% !important;
    height: auto !important;
    transition: var(--transition) !important;
}

.booking-btn-link:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-3px) !important;
}

.form-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light-secondary);
    margin-top: 12px;
    text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #004c85;
    color: var(--text-light-secondary);
    border-top: 1px solid var(--border-dark);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-info p {
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 400px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    margin-top: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   FORM LOPD & CHECKBOX STYLING
   ========================================================================== */
.form-group-checkbox {
    margin-bottom: 12px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-light-secondary);
}

.checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--text-light-primary);
}

.form-lopd-info {
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-lopd-info p {
    margin: 0 !important;
}

.form-lopd-info a {
    color: var(--primary);
    text-decoration: underline;
}

.form-lopd-info a:hover {
    color: var(--text-light-primary);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STYLING)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .slide-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .slide-left {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .authority-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .authority-content {
        order: 1;
    }
    
    .authority-visual {
        order: 2;
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .final-cta-block {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }

    .video-block-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .video-block-content {
        align-items: center;
        text-align: center;
    }

    .vertical-video-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-title-sub {
        font-size: 1.4rem;
        margin-top: 8px;
    }
    
    .main-header {
        padding: 5px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        gap: 24px;
        transition: var(--transition);
        border-top: 1px solid var(--border-dark);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .error-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .phases-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .framework-slide {
        padding: 40px;
    }
    
    .framework-slide h2 {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   MINIMALIST COOKIE BANNER STYLES
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 540px;
    margin: 0 auto;
    z-index: 10000;
    background: rgba(0, 76, 133, 0.96);
    border: 1px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    color: var(--text-light-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.cookie-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cookie-text-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light-secondary);
    margin: 0;
    font-weight: 300;
}

.cookie-text-box a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-btn-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.btn-cookie-main {
    background-color: var(--primary);
    color: #000000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-main:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-cookie-sec {
    background-color: transparent;
    color: var(--text-light-primary);
    border: 1px solid var(--border-dark);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-sec:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 16px;
    }
    .cookie-btn-group {
        flex-direction: column-reverse;
        width: 100%;
    }
    .btn-cookie-main, .btn-cookie-sec {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================================
   BLOQUE PERSONALIZACIÓN PROGRAMA UNIVERSITARIO & FORMULARIO DE DISEÑO
   ========================================================================== */
.custom-program-section {
    background: linear-gradient(135deg, #f0f7fc 0%, #e2f0fb 100%);
    border-top: 4px solid var(--secondary);
    border-bottom: 4px solid var(--secondary);
    position: relative;
}

.custom-program-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px auto;
}

.custom-program-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.custom-program-intro {
    font-size: 1.15rem;
    color: var(--text-dark-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 400;
}

.custom-program-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 30px;
    background: #ffffff;
    padding: 30px 36px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 119, 204, 0.15);
}

.custom-program-item {
    font-size: 1.05rem;
    color: var(--text-dark-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-program-item::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #000000;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.endorsement-note {
    text-align: center;
    font-size: 1.05rem;
    color: var(--secondary-dark);
    font-weight: 600;
    margin-bottom: 25px;
}

.highlight-box-custom {
    background: var(--secondary);
    color: #ffffff;
    padding: 24px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    border-left: 6px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0, 119, 204, 0.2);
    margin-bottom: 60px;
}

/* Configurador 5 Decisiones */
.configurator-block {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 44px 36px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    border: 1px solid var(--border-light);
}

.configurator-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 35px;
}

.decisions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.decision-card {
    background: var(--bg-light-sec);
    padding: 24px 16px;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.decision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 119, 204, 0.15);
}

.decision-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.decision-card h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.decision-card span {
    font-size: 0.85rem;
    color: var(--text-dark-secondary);
    font-weight: 500;
}

.configurator-note {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-dark-secondary);
    font-weight: 500;
}

/* Formulario de Diseño */
.design-form-container {
    max-width: 820px;
    margin: 0 auto;
    background: var(--secondary);
    color: #ffffff;
    border-radius: var(--border-radius);
    padding: 50px 44px;
    box-shadow: 0 20px 45px rgba(0, 119, 204, 0.3);
    border: 2px solid var(--primary);
}

.design-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.design-form-header h3 {
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.design-form-header p {
    font-size: 1.1rem;
    color: var(--text-light-secondary);
    font-weight: 300;
}

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

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

.design-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.design-form input[type="text"],
.design-form input[type="email"],
.design-form input[type="number"],
.design-form select,
.design-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.design-form input:focus,
.design-form select:focus,
.design-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.3);
    background: #ffffff;
}

.btn-design-submit {
    grid-column: span 2;
    background-color: var(--primary) !important;
    color: #000000 !important;
    font-family: var(--font-heading) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    padding: 18px 36px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    box-shadow: 0 8px 25px rgba(255, 205, 0, 0.35) !important;
    margin-top: 10px !important;
    transition: var(--transition) !important;
    width: 100%;
}

.btn-design-submit:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4) !important;
}

.micro-copy-note {
    grid-column: span 2;
    text-align: center;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 12px;
}

.form-response-msg {
    grid-column: span 2;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.form-response-msg.success {
    background-color: #28a745;
    color: #ffffff;
}

.form-response-msg.error {
    background-color: #dc3545;
    color: #ffffff;
}

@media (max-width: 992px) {
    .decisions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .custom-program-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .design-form {
        grid-template-columns: 1fr;
    }
    .design-form .form-group-full,
    .btn-design-submit,
    .micro-copy-note,
    .form-response-msg {
        grid-column: span 1;
    }
    .decisions-grid {
        grid-template-columns: 1fr 1fr;
    }
    .design-form-container {
        padding: 36px 20px;
    }
}


/* ==========================================================================
   HEADER ACADEMIC SUBLOGOS & WHATSAPP FLOATING BUTTON
   ========================================================================== */
.logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
}

.header-academic-endorsement {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.endorsement-label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.endorsement-logos {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sublogo-img {
    height: 18px;
    width: auto;
    /* filter removed for native transparent white PNG */
    opacity: 0.9;
    transition: var(--transition);
}

.logo-link:hover .sublogo-img {
    opacity: 1;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #20ba5a;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
    color: #ffffff;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background-color: var(--secondary);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 85px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    .whatsapp-tooltip {
        display: none;
    }
    .endorsement-label {
        display: none;
    }
    .sublogo-img {
        height: 15px;
    }
}


/* ==========================================================================
   HEADER BRAND GROUP & EQUAL-SIZE PARTNER LOGOS
   ========================================================================== */
.header-brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-main {
    height: 38px;
    width: auto;
    display: block;
}

.header-logo-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.35);
    display: inline-block;
}

.header-academic-logos {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-partner {
    height: 38px;
    width: auto;
    /* filter removed for native transparent white PNG */
    opacity: 0.95;
    transition: var(--transition);
}

.brand-logo-partner:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .brand-logo-main {
        height: 32px;
    }
    .brand-logo-partner {
        height: 32px;
    }
    .header-logo-divider {
        height: 22px;
    }
}

@media (max-width: 768px) {
    .header-brand-group {
        gap: 10px;
    }
    .brand-logo-main {
        height: 26px;
    }
    .brand-logo-partner {
        height: 26px;
    }
    .header-logo-divider {
        height: 18px;
    }
}


/* ==========================================================================
   HEADER LOGOS VERTICAL STACK & NAV MENU SPACING (v5.0)
   ========================================================================== */
.header-brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo-main {
    height: 40px;
    width: auto;
    display: block;
}

.header-logo-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.35);
    display: inline-block;
}

.header-academic-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
}

.brand-logo-partner {
    height: 18px;
    width: auto;
    /* filter removed for native transparent white PNG */
    opacity: 0.95;
    display: block;
    transition: var(--transition);
}

.brand-logo-partner:hover {
    opacity: 1;
}

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

.nav-menu a {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .nav-menu {
        gap: 14px;
        font-size: 0.9rem;
    }
    .brand-logo-main {
        height: 34px;
    }
    .brand-logo-partner {
        height: 15px;
    }
    .header-logo-divider {
        height: 30px;
    }
}

@media (max-width: 992px) {
    .header-brand-group {
        gap: 10px;
    }
    .brand-logo-main {
        height: 30px;
    }
    .brand-logo-partner {
        height: 14px;
    }
}


/* ==========================================================================
   HEADER V6.0: LARGER LOGOS, CENTERED NAV MENU & 3-COLUMN GRID
   ========================================================================== */
.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.header-brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.brand-logo-main {
    height: 48px;
    width: auto;
    display: block;
}

.header-logo-divider {
    width: 1px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.35);
    display: inline-block;
}

.header-academic-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}

.brand-logo-partner {
    height: 22px;
    width: auto;
    /* filter removed for native transparent white PNG */
    opacity: 0.95;
    display: block;
    transition: var(--transition);
}

.brand-logo-partner:hover {
    opacity: 1;
}

/* Centered Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 0 auto;
}

.nav-menu a {
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-nav {
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .header-container {
        gap: 16px;
        padding: 10px 16px;
    }
    .nav-menu {
        gap: 16px;
        font-size: 0.88rem;
    }
    .brand-logo-main {
        height: 40px;
    }
    .brand-logo-partner {
        height: 19px;
    }
    .header-logo-divider {
        height: 36px;
    }
}

@media (max-width: 992px) {
    .header-container {
        display: flex;
        justify-content: space-between;
    }
}


/* ==========================================================================
   CUSTOM PROGRAM LIST ALIGNMENT FIX (v8.0)
   ========================================================================== */
.custom-program-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 36px;
    background: #ffffff;
    padding: 32px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 119, 204, 0.15);
    text-align: left !important;
}

.custom-program-item {
    font-size: 1.05rem;
    color: var(--text-dark-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left !important;
    line-height: 1.4;
}

.custom-program-item::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #000000;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .custom-program-list-grid {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 16px;
    }
}
