/* =========================================================
   VARIABLES Y RESET
========================================================= */
:root {
    --navy: #0B1120;
    --card: #111827;
    --cyan: #22D3EE;
    --cyan-dark: #082F49;
    --indigo: #4F46E5;
    --white: #F8FAFC;
    --text: #0F172A;
    --muted: #64748B;
    --dark-muted: #94A3B8;
    --border: #E2E8F0;
    --dark-border: #1E293B;
    --light: #F8FAFC;
    --radius: 18px;
    --shadow: 0 20px 50px rgba(15, 23, 42, .08);
    
    /* Brand Colors */
    --brand-blue: #3A76BB;
    --brand-deep-blue: #1E3F7A;
    --brand-orange: #F58020;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: var(--navy); /* Fondo oscuro por defecto */
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.15;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* =========================================
   NAVBAR ACTUALIZADO (Según referencia)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.95); /* Fondo más sólido */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dark-border);
    display: block; /* explicit: the two rows below MUST stack, never sit side by side */
}

/* Row 1: social bar — deliberately darker + a subtle cyan divider so it
   reads as a clearly distinct strip from the main navigation below it. */
.header-social-bar {
    display: block;
    width: 100%;
    height: 42px;
    background: #0B1120;
    border-bottom: 1px solid rgba(34, 211, 238, .14);
}

.header-social-inner {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 15px;
    color: #64748B;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.social-icon:hover {
    transform: translateY(-1px);
}

.social-linkedin:hover,
.social-github:hover,
.social-email:hover {
    color: var(--cyan);
}

.social-instagram:hover {
    color: #F472B6;
}

.social-tiktok:hover,
.social-x:hover {
    color: #F8FAFC;
}

.social-youtube:hover {
    color: #F87171;
}

.mobile-menu-socials {
    justify-content: center;
    gap: 26px;
    padding-bottom: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(34, 211, 238, .6);
}

.mobile-menu-socials .social-icon {
    width: 20px;
    height: 20px;
    font-size: 17px;
}

/* Row 2: main nav */
.nav-container {
    display: flex;
    width: 100%;
    height: 80px;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

/* Keep anchored sections clear of the fixed two-row header */
section[id],
header[id] {
    scroll-margin-top: 132px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--cyan);
    color: var(--navy);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.desktop-menu a.nav-link {
    color: rgba(34, 211, 238, 0.25);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.desktop-menu a.nav-link:hover {
    color: var(--cyan);
}

/* Selector de Idioma Minimalista ES / EN */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    font-size: 14px;
    font-weight: 700;
}

.language-selector .lang {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    font-family: inherit;
}

.language-selector .lang.active {
    color: var(--cyan);
}

.language-selector .lang:not(.active) {
    color: #64748B;
}

.language-separator {
    color: #64748B;
    font-weight: 400;
}

/* Botón CTA en Navbar */
.desktop-menu .btn-primary {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 999px;
    background: var(--cyan);
    color: var(--navy) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.25);
    transition: all 0.2s ease;
}

.desktop-menu .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
    background: #22D3EE;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Hidden by default on desktop; the <= 900px media query switches this
   to display:flex (position:absolute, animated via opacity/visibility). */
.mobile-menu {
    display: none;
}

/* =========================================================
   BOTONES
========================================================= */
.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.btn-primary {
    background: var(--cyan);
    color: var(--navy) !important;
    box-shadow: 0 8px 25px rgba(34, 211, 238, .18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34, 211, 238, .30);
}

.btn-secondary {
    background: rgba(34, 211, 238, 0.25);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: var(--navy);
}

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

.btn-large {
    padding: 15px 28px;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    padding: 160px 0 100px;
    background: var(--navy);
    color: white;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: center;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--dark-border);
    border-radius: 999px;
    color: var(--dark-muted);
    font-size: 12px;
    margin-bottom: 28px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .1);
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    margin: 0 0 25px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--cyan), #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content > p {
    max-width: 650px;
    color: var(--dark-muted);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 35px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 55px;
}

.hero-stats strong {
    display: block;
    color: white;
    font-size: 22px;
}

.hero-stats span {
    display: block;
    color: var(--dark-muted);
    font-size: 11px;
}

.stat-divider {
    height: 40px;
    width: 1px;
    background: var(--dark-border);
}

.hero-image {
    position: relative;
}

.image-frame {
    max-width: 440px;
    margin: auto;
    border-radius: 25px;
    padding: 10px;
    background: linear-gradient(145deg, var(--cyan), transparent);
}

.image-frame img {
    display: block;
    width: 100%;
    border-radius: 18px;
    background: rgba(34, 211, 238, 0.22);
}

.tech-card {
    position: absolute;
    bottom: -25px;
    left: 5%;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--dark-border);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tech-card-title {
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.tech-tags span {
    background: var(--cyan-dark);
    color: var(--cyan);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 10px;
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
.section,
.result-section,
.diagnostic-section,
.booking-section {
    padding: 100px 0;
    background: #0B1120;
    color: var(--white);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.eyebrow {
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 800;
}

.section-heading h2,
.assessment-header h2,
.booking-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 10px 0 18px;
    color: var(--white);
}

.section-heading p,
.problem-card p,
.about-grid p,
.booking-header p,
.service-card p {
    color: var(--dark-muted);
    font-size: 17px;
}

/* =========================================================
   PROBLEMAS
========================================================= */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.problem-card {
    padding: 32px;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    background: var(--card);
    transition: .25s;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(34, 211, 238, .35);
}

.icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--cyan-dark);
    color: var(--cyan);
    font-size: 20px;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--white);
}

/* =========================================================
   ASSESSMENT (CUESTIONARIO)
========================================================= */
.assessment-section {
    padding: 110px 0;
    background: var(--navy);
    color: white;
}

.assessment-header {
    max-width: 750px;
    text-align: center;
    margin: 0 auto 50px;
}

.assessment-header .eyebrow {
    color: var(--cyan);
}

.assessment-box {
    max-width: 820px;
    margin: auto;
    padding: 45px;
    background: var(--card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
}

.assessment-progress {
    margin-bottom: 40px;
}

.assessment-progress span {
    color: var(--dark-muted);
    font-size: 12px;
}

.progress-track {
    width: 100%;
    height: 5px;
    margin-top: 10px;
    background: rgba(34, 211, 238, 0.22);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar {
    width: 10%;
    height: 100%;
    background: var(--cyan);
    transition: width .4s ease;
}

.question-title {
    font-size: 25px;
    margin-bottom: 25px;
    color: var(--white);
}

.question-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -14px 0 18px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(248, 113, 113, .1);
    border: 1px solid rgba(248, 113, 113, .35);
    color: #FCA5A5;
    font-size: 13px;
}

#question-container.shake {
    animation: question-shake .35s ease;
}

@keyframes question-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.answer-option {
    width: 100%;
    padding: 17px;
    margin-bottom: 10px;
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    background: transparent;
    color: #CBD5E1;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

.answer-option:hover,
.answer-option.selected {
    border-color: var(--cyan);
    background: var(--cyan-dark);
    color: white;
}

.assessment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
}

/* =========================================================
   RESULTADOS / LEAD GATE
========================================================= */
.hidden {
    display: none !important;
}

.result-card {
    max-width: 720px;
    margin: auto;
    padding: 55px;
    background: var(--card);
    border: 1px solid var(--dark-border);
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
}

.result-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cyan-dark);
    color: var(--cyan);
    font-size: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
    margin-top: 30px;
}

.form-field:last-child {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.form-field input {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    outline: none;
    background: #0B1120;
    color: var(--white);
}

.form-field input:focus {
    border-color: var(--cyan);
}

.consent {
    display: flex;
    gap: 10px;
    text-align: left;
    margin: 20px 0;
    color: var(--dark-muted);
    font-size: 12px;
}

/* =========================================================
   DIAGNOSTIC (Oculto pero estilizado)
========================================================= */
.diagnostic-section {
    padding: 100px 0;
    background: var(--navy);
}

.diagnostic-header {
    text-align: center;
    margin-bottom: 50px;
}

.diagnostic-header .eyebrow {
    color: var(--cyan);
}

.diagnostic-header h2 {
    color: var(--white);
}

.diagnostic-grid {
    display: grid;
    grid-template-columns: .35fr .65fr;
    gap: 30px;
}

.score-card {
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--dark-border);
    color: white;
    border-radius: 20px;
    text-align: center;
}

.score-card strong {
    display: inline-block;
    font-size: 65px;
    color: var(--cyan);
    margin-top: 15px;
}

.score-card small {
    color: var(--dark-muted);
}

.score-bar {
    height: 7px;
    margin-top: 20px;
    background: var(--dark-border);
    border-radius: 99px;
    overflow: hidden;
}

.score-bar div {
    height: 100%;
    background: var(--cyan);
    width: 0;
    transition: 1s;
}

#diagnostic-level {
    color: var(--dark-muted);
    font-size: 14px;
}

.diagnostic-content {
    padding: 35px;
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    background: var(--card);
}

.diagnostic-problem {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--dark-border);
}

.diagnostic-problem i {
    color: var(--cyan);
}

.recommendation-card {
    margin-top: 30px;
    padding: 35px;
    background: var(--cyan-dark);
    border-radius: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.recommendation-card h3 {
    margin: 8px 0 10px;
    color: var(--white);
}

.recommendation-card p {
    color: rgba(34, 211, 238, 0.85);
}

/* =========================================================
   SERVICIOS
========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 30px;
    border: 1px solid var(--dark-border);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: var(--card);
}

.service-card > span {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 55px;
    font-weight: 800;
    color: var(--dark-border);
}

.service-card i {
    color: var(--cyan);
    font-size: 25px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 19px;
    color: var(--white);
}

/* =========================================================
   EXPERIENCIA (Timeline)
========================================================= */
.dark-section {
    background: var(--navy);
    color: white;
}

.dark-section .section-heading h2 {
    color: white;
}

.dark-section .eyebrow {
    color: var(--cyan);
}

.timeline {
    max-width: 800px;
    margin: auto;
    border-left: 1px solid var(--dark-border);
}

.timeline-item {
    padding: 0 0 55px 35px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
}

.timeline-item span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
}

.timeline-item h3 {
    margin: 8px 0 4px;
    color: var(--white);
}

.timeline-item h4 {
    color: var(--dark-muted);
    margin: 0 0 10px;
}

.timeline-item p {
    color: var(--dark-muted);
}

/* =========================================================
   SOBRE MÍ
========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 430px;
    border-radius: 22px;
}

.about-grid h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 10px 0 25px;
    color: var(--white);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.skill-tags span {
    padding: 7px 12px;
    background: var(--cyan-dark);
    color: #22D3EE;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 1px solid var(--dark-border);
    color: white;
    border-radius: 50%;
}

/* =========================================================
   BOOKING / CONTACTO
========================================================= */
.booking-contact-cta {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    margin: 0 auto 28px;
    max-width: 760px;
}

.booking-contact-item {
    min-width: 250px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    background: var(--card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    transition: border-color .2s ease, transform .2s ease;
}

.booking-contact-item:hover {
    border-color: rgba(34, 211, 238, .55);
    transform: translateY(-2px);
}

.booking-contact-item i {
    grid-row: 1 / span 2;
    color: var(--cyan);
    font-size: 22px;
}

.booking-contact-item span {
    font-weight: 700;
}

.booking-contact-item small {
    color: var(--dark-muted);
    font-size: 12px;
}

.calendly-wrapper {
    max-width: 900px;
    margin: auto;
    background: var(--card);
    border: 1px solid var(--dark-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 760px;
}

#calendly-embed {
    width: 100%;
    min-width: 320px;
    min-height: 760px;
}

.calendly-fallback {
    padding: 28px;
    text-align: center;
    border-top: 1px solid var(--dark-border);
    color: var(--dark-muted);
}

.calendly-fallback a {
    display: inline-block;
    margin-top: 8px;
    color: var(--brand-blue);
    font-weight: 700;
}

/* =========================================
   FOOTER ACTUALIZADO (Según referencia)
========================================= */
footer {
    padding: 24px 0;
    background: #0B1120;
    color: #64748B;
    border-top: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1180px, 92%);
    margin: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-monogram {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #22D3EE;
    color: #0B1120;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.5px;
    overflow: hidden;
}

.footer-monogram img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand-name {
    color: #F8FAFC;
    font-size: 16px;
    font-weight: 700;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-socials .social-icon {
    width: 20px;
    height: 20px;
    font-size: 17px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
}

.footer-meta a {
    color: #94A3B8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-meta a:hover {
    color: #22D3EE;
}

/* Responsive Footer & Navbar */
@media (max-width: 1024px) {
    .desktop-menu { display: none; }
    .mobile-toggle { display: block; }
    .nav-container { padding: 0 20px; }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-socials { order: 2; }
    .footer-meta { flex-direction: column; gap: 4px; }
}

/* =========================================================
   MODAL BOOTSTRAP (Dark Theme, redesigned)
========================================================= */
#assessmentSuccessModal .modal-dialog {
    max-width: 440px;
}

#assessmentSuccessModal .modal-content {
    background: linear-gradient(180deg, #0B1120 0%, var(--card) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 22px;
    color: var(--white);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(34, 211, 238, .06);
    overflow: hidden;
}

#assessmentSuccessModal.fade .modal-dialog {
    transform: scale(.92) translateY(12px);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}

#assessmentSuccessModal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

#assessmentSuccessModal .modal-header {
    border: 0;
    padding: 24px 24px 0;
}

#assessmentSuccessModal .modal-header .modal-title {
    /* Kept in the DOM (for aria-labelledby) but visually replaced by the
       heading inside the body — hidden via clip, not display:none, so
       screen readers still announce it. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#assessmentSuccessModal .btn-close {
    filter: invert(1);
    opacity: .55;
    transition: opacity .2s ease;
}

#assessmentSuccessModal .btn-close:hover {
    opacity: 1;
}

#assessmentSuccessModal .modal-body {
    padding: 6px 32px 28px;
}

#assessmentSuccessModal .success-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(34, 211, 238, .35), var(--cyan-dark) 70%);
    color: var(--cyan);
    font-size: 30px;
    box-shadow: 0 0 0 8px rgba(34, 211, 238, .06);
}

#assessmentSuccessModal .modal-body h2,
#assessmentSuccessModal #assessmentSuccessModalLabel {
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--white);
}

#assessmentSuccessModal .modal-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #CBD5E1;
    margin: 0 0 8px;
}

#assessmentSuccessModal .modal-body p.text-muted {
    font-size: 13px;
    color: var(--dark-muted) !important;
    margin: 0;
}

#assessmentSuccessModal .modal-footer {
    border: 0;
    padding: 4px 32px 30px;
}

#assessmentSuccessModal .modal-footer .btn-primary {
    padding: 13px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .5);
}

.modal-backdrop.show {
    backdrop-filter: blur(3px);
    opacity: .72;
}

/* =========================================================
   FORM STATES & HONEYPOT
========================================================= */
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-status {
    min-height: 22px;
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.form-status.success { color: #0f766e; }
.form-status.warning { color: #b45309; }
.form-status.error { color: #b91c1c; }

.form-field input.invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

/* =========================================================
   SOLUCIÓN DEFINITIVA MENÚ MÓVIL
   Reemplaza TODO tu bloque @media (max-width: 900px) con esto
========================================================= */

@media (max-width: 900px) {
    
    /* 1. Asegurar que el Navbar sea fijo y tenga prioridad */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background: rgba(11, 17, 32, 0.98); /* Un poco más opaco para evitar transparencias raras */
    }

    /* 2. Ocultar menú desktop forzosamente */
    .desktop-menu {
        display: none !important;
    }

    /* 3. Mostrar botón hamburguesa */
    .mobile-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        color: white;
        cursor: pointer;
        z-index: 1002; /* Por encima del menú desplegable */
    }

    /* 4. ESTILOS DEL MENÚ DESPLEGABLE (La clave del arreglo) */
    .mobile-menu {
        /* Usamos absolute para que se ancle al navbar */
        position: absolute !important; 
        
        /* Altura exacta: Barra Social (48px) + Nav Principal (76px) = 124px */
        top: 124px !important; 
        left: 0 !important;
        right: 0 !important;
        
        /* Layout interno */
        display: flex !important; 
        flex-direction: column;
        align-items: stretch;
        
        padding: 25px;
        background: #0B1120; /* Fondo sólido igual al body */
        border-top: 1px solid rgba(34, 211, 238, 0.22);
        
        /* Scroll interno si la pantalla es muy bajita */
        max-height: calc(100vh - 124px);
        overflow-y: auto;
        
        /* Capas: Debe estar sobre el contenido de la web */
        z-index: 1001 !important;
        
        /* ESTADO CERRADO: Usamos visibility y opacity para animar */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none; /* Evita clicks fantasma cuando está cerrado */
        
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }

    /* 5. ESTADO ABIERTO */
    .mobile-menu.open {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    /* 6. Estilos de los enlaces internos */
    .mobile-menu a {
        display: block;
        width: 100%;
        color: #CBD5E1;
        text-decoration: none;
        padding: 16px 0;
        font-size: 16px;
        font-weight: 600;
        border-bottom: 1px solid rgba(34, 211, 238, 0.5);
        transition: color 0.2s;
    }

    .mobile-menu a:hover {
        color: #22D3EE;
    }

    /* Botón CTA dentro del menú */
    .mobile-menu .mobile-cta {
        margin-top: 20px;
        text-align: center;
        background: #22D3EE;
        color: #0B1120 !important;
        border-radius: 50px;
        padding: 14px;
        border: none;
        font-weight: 800;
    }

    /* Selector de idioma */
    .mobile-language {
        display: flex;
        align-items: center;
        gap: 15px;
        padding-top: 20px;
        margin-top: 10px;
        border-top: 1px solid rgba(34, 211, 238, 0.22);
    }
    
    .mobile-language button {
        background: none;
        border: none;
        color: #64748B;
        font-weight: bold;
        cursor: pointer;
        font-size: 14px;
    }
    
    .mobile-language button.active {
        color: #22D3EE;
    }

    /* Ajustes generales de layout para móvil */
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Los dos CTA del hero no deben empujar el ancho de la página:
       se apilan en vez de quedar en una sola fila que desborda. */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        max-width: 100%;
        margin-top: 20px;
    }

    /* En mobile el tech-card no debe flotar en absoluto sobre el hero:
       pasa a fluir debajo de la foto para no superponerse con el texto. */
    .tech-card {
        position: static;
        margin: -25px auto 0;
        width: 90%;
        left: auto;
        bottom: auto;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Una columna en móvil para mejor lectura */
    }
    
    .header-social-inner {
        justify-content: center;
        gap: 16px;
    }

    /* Las tarjetas de WhatsApp / Email suman más de 500px de ancho mínimo
       combinado: en mobile se apilan a ancho completo en vez de quedar
       recortadas en los bordes de la pantalla. */
    .booking-contact-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .booking-contact-item {
        min-width: 0;
        width: 100%;
    }

    /* Botones Anterior/Siguiente del assessment: apilados en mobile,
       "Anterior" arriba y "Siguiente" abajo (mismo orden que el DOM),
       ambos a ancho completo. */
    .assessment-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .assessment-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}
