/* =========================================================
   GEEK V16.17 - RESPONSIVE MOBILE FIRST
   Esta hoja solo redefine la experiencia en pantallas móviles.
   El diseño de escritorio existente permanece intacto.
   ========================================================= */

.geek-story-mobile,
.mobile-calendly-cta,
.mobile-calendly-note {
    display: none;
}

@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* -----------------------------------------------------
       HEADER MÓVIL
       ----------------------------------------------------- */
    .main-header {
        min-height: var(--header-height);
        padding-left: max(0.85rem, env(safe-area-inset-left));
        padding-right: max(0.85rem, env(safe-area-inset-right));
        gap: 0.55rem;
    }

    .logo-container {
        min-width: 0;
        flex: 1 1 auto;
    }

    .logo-text-wrapper {
        min-width: 0;
    }

    .logo-text-wrapper img {
        max-width: min(38vw, 190px);
        height: auto;
    }

    .theme-controls {
        flex: 0 0 auto;
        gap: 0.25rem;
    }

    .mode-toggle-btn,
    .region-toggle-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .burger-menu {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: 0.85rem;
    }

    .main-nav {
        max-height: 0;
        z-index: 1200;
    }

    .main-nav.open {
        max-height: min(70dvh, 430px);
        overflow-y: auto;
    }

    .main-nav ul {
        padding: 0.65rem 1rem 1rem;
    }

    .main-nav a {
        display: block;
        padding: 0.85rem 0.9rem;
        border-radius: 0.75rem;
        font-size: 0.98rem;
    }

    /* -----------------------------------------------------
       HERO: composición vertical propia para móvil
       ----------------------------------------------------- */
    .geek-hero {
        min-height: auto !important;
        padding: 2.35rem 0 3rem !important;
        overflow: hidden;
    }

    .geek-hero-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1.45rem !important;
        padding-inline: 1rem !important;
    }

    .geek-hero-copy {
        display: contents !important;
    }

    .geek-hero-kicker {
        order: 1;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.72rem 0.9rem !important;
        line-height: 1.35;
        letter-spacing: 0.1em;
        font-size: clamp(0.72rem, 3vw, 0.88rem) !important;
    }

    .geek-hero-title {
        order: 2;
        margin: 0 !important;
        text-align: center;
        font-size: clamp(2.45rem, 11vw, 4rem) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.055em !important;
        text-wrap: balance;
    }

    .geek-hero-description {
        order: 3;
        margin: 0 auto !important;
        max-width: 38rem !important;
        text-align: center;
        font-size: clamp(1rem, 4.5vw, 1.22rem) !important;
        line-height: 1.65 !important;
    }

    .geek-hero-actions {
        order: 4;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
        margin-top: 0.2rem !important;
        width: 100%;
    }

    .geek-hero-btn {
        width: 100%;
        min-height: 54px;
        justify-content: center;
        padding-inline: 1rem !important;
    }

    .geek-hero-image-wrap {
        order: 5;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        border-radius: 1.55rem !important;
        overflow: hidden;
    }

    .geek-hero-image {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-height: min(72vh, 620px);
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center;
    }

    .geek-hero-proof {
        order: 6;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
        margin-top: 0 !important;
        width: 100%;
        max-width: none !important;
    }

    .geek-proof-item {
        min-width: 0;
        padding: 0.75rem 0.35rem !important;
        border-radius: 1rem !important;
        text-align: center;
    }

    .geek-proof-item strong {
        font-size: clamp(1.25rem, 6vw, 1.7rem) !important;
    }

    .geek-proof-item span {
        margin-top: 0.3rem !important;
        font-size: clamp(0.62rem, 2.8vw, 0.78rem) !important;
        line-height: 1.25;
    }

    .geek-hero-orb {
        animation: none !important;
        opacity: 0.45;
    }

    /* -----------------------------------------------------
       STORYTELLING: desactivar experiencia desktop y usar
       carrusel táctil móvil sin sticky/285vh/WebGL.
       ----------------------------------------------------- */
    .geek-services-story-section {
        padding: 0 !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    .geek-story {
        display: none !important;
    }

    .geek-story-mobile {
        display: block;
        position: relative;
        padding: 3.75rem 0 4rem;
        background:
            radial-gradient(circle at 20% 12%, rgba(94, 200, 170, 0.18), transparent 34%),
            linear-gradient(180deg, #f3fcf9 0%, #edf8f5 52%, #f8fbfa 100%);
        overflow: hidden;
    }

    .geek-story-mobile-intro {
        padding: 0 1.15rem;
        max-width: 42rem;
        margin: 0 auto 1.8rem;
    }

    .geek-story-mobile-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        color: #15977f;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        font-weight: 900;
        text-transform: uppercase;
    }

    .geek-story-mobile-eyebrow > span {
        width: 38px;
        height: 1px;
        background: #5ec8aa;
    }

    .geek-story-mobile-intro h3 {
        margin: 1rem 0 1rem;
        color: #0f172a;
        font-size: clamp(2.35rem, 10.5vw, 3.8rem);
        line-height: 0.98;
        letter-spacing: -0.055em;
        font-weight: 900;
        text-wrap: balance;
    }

    .geek-story-mobile-intro > p {
        margin: 0;
        color: #64748b;
        font-size: 1.02rem;
        line-height: 1.7;
    }

    .geek-story-mobile-hint {
        display: inline-block;
        margin-top: 1rem;
        color: #2e5e55;
        font-weight: 800;
        font-size: 0.8rem;
    }

    .geek-story-mobile-track {
        display: flex;
        gap: 1rem;
        width: 100%;
        padding: 0.4rem max(1rem, calc((100vw - 430px) / 2)) 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .geek-story-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .geek-story-mobile-card {
        position: relative;
        flex: 0 0 min(86vw, 390px);
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        min-height: 550px;
        border-radius: 1.7rem;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(46, 94, 85, 0.12);
        box-shadow: 0 22px 55px rgba(15, 23, 42, 0.11);
        color: inherit;
        text-decoration: none;
    }

    .geek-story-mobile-card-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        padding: 1rem 1rem 0.75rem;
    }

    .geek-story-mobile-index {
        display: inline-grid;
        place-items: center;
        min-height: 32px;
        padding: 0.25rem 0.65rem;
        border-radius: 999px;
        background: rgba(94, 200, 170, 0.13);
        color: #15977f;
        font-size: 0.75rem;
        font-weight: 900;
    }

    .geek-story-mobile-card-top small {
        color: #15977f;
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: right;
    }

    .geek-story-mobile-card > img {
        display: block;
        width: calc(100% - 2rem);
        height: 220px;
        margin: 0 1rem;
        border-radius: 1.2rem;
        object-fit: cover;
        object-position: center;
        background: #eef8f5;
    }

    .geek-story-mobile-card-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 1.2rem 1.15rem 1.25rem;
    }

    .geek-story-mobile-card-body h4 {
        margin: 0;
        color: #0f172a;
        font-size: clamp(1.7rem, 7.5vw, 2.25rem);
        line-height: 1.05;
        letter-spacing: -0.035em;
        font-weight: 900;
    }

    .geek-story-mobile-card-body p {
        margin: 0.75rem 0 1rem;
        color: #64748b;
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .geek-story-mobile-card-body > span {
        margin-top: auto;
        color: #2e5e55;
        font-weight: 900;
        font-size: 0.9rem;
    }

    .geek-story-mobile-dots {
        display: flex;
        justify-content: center;
        gap: 0.55rem;
        margin-top: 0.9rem;
    }

    .geek-story-mobile-dots span {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(46, 94, 85, 0.2);
        transition: width 0.25s ease, background 0.25s ease;
    }

    .geek-story-mobile-dots span.is-active {
        width: 28px;
        background: #15977f;
    }

    .geek-story-mobile-swipe {
        margin: 0.75rem 0 0;
        text-align: center;
        color: #64748b;
        font-size: 0.76rem;
        font-weight: 700;
    }

    /* -----------------------------------------------------
       MISIÓN / ECOSISTEMA
       ----------------------------------------------------- */
    #quienes-somos {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    #quienes-somos > div > .text-center h2 {
        font-size: clamp(2.2rem, 9.5vw, 3.25rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.04em;
        text-wrap: balance;
    }

    #quienes-somos > div > .text-center p {
        font-size: clamp(1rem, 4.4vw, 1.2rem) !important;
        line-height: 1.65 !important;
    }

    .mission-growth-board {
        margin-top: 2.25rem !important;
        padding: 1.45rem 0.8rem 1rem !important;
    }

    .mission-growth-head h3 {
        font-size: clamp(2.15rem, 9vw, 3rem) !important;
        line-height: 1 !important;
        text-wrap: balance;
    }

    .mission-growth-head p {
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
    }

    .mission-growth-cards {
        gap: 0.9rem !important;
    }

    .mission-growth-card {
        min-height: 0 !important;
        padding: 1.15rem !important;
        border-radius: 1.4rem !important;
    }

    .mission-growth-chipbar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.6rem !important;
        padding: 0.6rem !important;
        margin-top: 1rem !important;
    }

    .mission-growth-chipbar span {
        min-height: 54px !important;
        justify-content: flex-start !important;
        padding: 0.55rem 0.65rem !important;
        gap: 0.45rem !important;
    }

    .mission-growth-chipbar b {
        flex: 0 0 28px;
    }

    .mission-growth-chipbar em {
        min-width: 0;
        font-size: 0.76rem !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    /* -----------------------------------------------------
       TESTIMONIOS: carrusel horizontal táctil
       ----------------------------------------------------- */
    #resenas {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
        overflow: hidden;
    }

    #resenas .max-w-7xl {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #resenas .text-center {
        padding-inline: 1rem;
    }

    #resenas h2 {
        font-size: clamp(2.4rem, 10vw, 3.6rem) !important;
        line-height: 1 !important;
        letter-spacing: -0.045em;
        text-wrap: balance;
    }

    #resenas .text-center > p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }

    #resenas .testimonials-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 1rem !important;
        margin-top: 2.5rem !important;
        padding: 0.25rem 1rem 1rem !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1rem;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #resenas .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    #resenas .testimonial-grid-card {
        flex: 0 0 min(86vw, 390px) !important;
        scroll-snap-align: center;
        min-height: 520px !important;
        padding: 1.35rem !important;
        border-radius: 1.6rem !important;
        transform: none !important;
    }

    #resenas .testimonial-grid-card:hover {
        transform: none !important;
    }

    #resenas .testimonial-grid-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem !important;
    }

    #resenas .testimonial-grid-profile {
        align-items: center;
    }

    #resenas .testimonial-name {
        font-size: 1.05rem !important;
    }

    #resenas .testimonial-role {
        font-size: 0.9rem !important;
        line-height: 1.35;
    }

    #resenas .testimonials-grid .review-text {
        font-size: 0.98rem !important;
        line-height: 1.65 !important;
        -webkit-line-clamp: 10;
    }

    /* -----------------------------------------------------
       CONTACTO / CALENDLY: CTA simple en móvil
       ----------------------------------------------------- */
    #contactanos {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }

    #contactanos > div {
        padding-inline: 1rem !important;
    }

    #contactanos h2 {
        font-size: clamp(2.45rem, 10vw, 3.65rem) !important;
        line-height: 1 !important;
        letter-spacing: -0.045em;
        text-wrap: balance;
    }

    #contactanos > div > p {
        margin-bottom: 2rem !important;
        font-size: 1.05rem !important;
        line-height: 1.55;
    }

    .contact-card.card-calendly {
        padding: 1.5rem 1.1rem !important;
        border-radius: 1.65rem !important;
    }

    .contact-card.card-calendly h3 {
        margin-bottom: 1rem !important;
        font-size: clamp(2rem, 8vw, 2.7rem) !important;
        line-height: 1.05;
    }

    .contact-card.card-calendly > p {
        margin-bottom: 1.4rem !important;
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .contact-calendly-container {
        display: none !important;
    }

    .mobile-calendly-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 56px;
        padding: 0.85rem 1rem;
        border-radius: 999px;
        background: #2e5e55;
        color: #fff !important;
        font-weight: 900;
        text-decoration: none;
        box-shadow: 0 14px 30px rgba(46, 94, 85, 0.2);
    }

    .mobile-calendly-note {
        display: block;
        margin: 0.75rem 0 0;
        color: #6b7280;
        font-size: 0.78rem;
        text-align: center;
    }

    /* -----------------------------------------------------
       BOTONES FLOTANTES Y SAFE AREA
       ----------------------------------------------------- */
    .whatsapp-fab {
        width: 56px !important;
        height: 56px !important;
        right: max(0.85rem, env(safe-area-inset-right)) !important;
        bottom: calc(0.85rem + env(safe-area-inset-bottom)) !important;
        font-size: 27px !important;
        z-index: 999 !important;
    }

    .byte-launcher {
        width: 52px !important;
        height: 52px !important;
        left: max(0.85rem, env(safe-area-inset-left)) !important;
        bottom: calc(0.85rem + env(safe-area-inset-bottom)) !important;
    }

    .byte-nudge {
        left: 0.85rem !important;
        right: 0.85rem !important;
        bottom: calc(4.9rem + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        max-height: min(58dvh, 440px);
        overflow-y: auto;
    }

    .byte-modal {
        padding:
            max(0.65rem, env(safe-area-inset-top))
            max(0.65rem, env(safe-area-inset-right))
            max(0.65rem, env(safe-area-inset-bottom))
            max(0.65rem, env(safe-area-inset-left)) !important;
    }

    .byte-modal-card {
        width: 100% !important;
        height: min(94dvh, 760px) !important;
        max-height: min(94dvh, 760px) !important;
        border-radius: 1.25rem !important;
    }

    .byte-panel-left {
        padding: 1rem !important;
    }

    .byte-panel-left h2 {
        font-size: 1.5rem !important;
    }

    .byte-panel-right {
        padding: 1.1rem !important;
    }

    /* -----------------------------------------------------
       CATÁLOGO: ajustes generales móviles sin tocar desktop
       ----------------------------------------------------- */
    body[data-page="catalog"] {
        overflow-x: hidden;
    }

    body[data-page="catalog"] main,
    body[data-page="catalog"] .catalog-container,
    body[data-page="catalog"] .catalog-wrapper {
        max-width: 100% !important;
        overflow-x: hidden;
    }

    body[data-page="catalog"] img {
        max-width: 100%;
        height: auto;
    }

    /* -----------------------------------------------------
       REDUCCIÓN DE MOVIMIENTO
       ----------------------------------------------------- */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            scroll-behavior: auto !important;
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Móviles especialmente pequeños */
@media (max-width: 430px) {
    .main-header {
        gap: 0.28rem;
    }

    .logo-text-wrapper img {
        max-width: 36vw;
    }

    .mode-toggle-btn,
    .region-toggle-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.95rem;
    }

    .burger-menu {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .geek-hero-inner {
        padding-inline: 0.85rem !important;
    }

    .geek-hero-title {
        font-size: clamp(2.2rem, 10.5vw, 3.25rem) !important;
    }

    .geek-proof-item {
        padding-inline: 0.2rem !important;
    }

    .geek-proof-item span {
        font-size: 0.58rem !important;
    }

    .mission-growth-chipbar {
        grid-template-columns: 1fr 1fr !important;
    }

    .geek-story-mobile-card,
    #resenas .testimonial-grid-card {
        flex-basis: 88vw !important;
    }
}

/* Teléfonos en horizontal: priorizar altura útil y evitar bloques gigantes */
@media (max-width: 900px) and (orientation: landscape) {
    .geek-hero {
        padding-top: 1.6rem !important;
    }

    .geek-hero-image {
        max-height: 68vh;
        aspect-ratio: 16 / 8;
    }

    .geek-story-mobile {
        padding-top: 2.5rem;
    }

    .geek-story-mobile-card {
        min-height: 440px;
    }

    .geek-story-mobile-card > img {
        height: 160px;
    }

    .byte-modal-card {
        height: 92dvh !important;
        max-height: 92dvh !important;
    }
}

/* Dark mode móvil */
@media (max-width: 768px) {
    body.dark-mode .geek-story-mobile {
        background:
            radial-gradient(circle at 20% 12%, rgba(94, 200, 170, 0.09), transparent 34%),
            linear-gradient(180deg, #111827 0%, #101b1a 52%, #111827 100%);
    }

    body.dark-mode .geek-story-mobile-intro h3,
    body.dark-mode .geek-story-mobile-card-body h4 {
        color: #f8fafc;
    }

    body.dark-mode .geek-story-mobile-intro > p,
    body.dark-mode .geek-story-mobile-card-body p,
    body.dark-mode .geek-story-mobile-swipe {
        color: #cbd5e1;
    }

    body.dark-mode .geek-story-mobile-card {
        background: rgba(31, 41, 55, 0.94);
        border-color: rgba(94, 200, 170, 0.16);
    }

    body.dark-mode .mobile-calendly-note {
        color: #cbd5e1;
    }
}


/* =========================================================
   GEEK V16.18 - MOBILE WARM / EDITORIAL
   Inspiración: jerarquía visual limpia, contenido resumido,
   espacios intencionales y CTA claros. Solo afecta móvil.
   ========================================================= */
@media (max-width: 768px) {
    /* Fondo base más cálido y separadores estrechos entre bloques,
       evitando "pantallas vacías" accidentales. */
    body {
        background: #f5f5f7;
    }

    main {
        background: #f5f5f7;
    }

    .geek-hero,
    .geek-story-mobile,
    #quienes-somos,
    #resenas,
    #contactanos {
        margin: 0 0 8px !important;
    }

    .geek-story-mobile {
        padding-top: 3rem !important;
        padding-bottom: 2.2rem !important;
    }

    .geek-story-mobile-intro {
        margin-bottom: 1.25rem !important;
    }

    .geek-story-mobile-swipe {
        margin-bottom: 0 !important;
    }

    /* Nuestra misión: ocultamos únicamente la experiencia desktop
       en móvil y reemplazamos por un bloque editorial interactivo. */
    #quienes-somos {
        padding: 3rem 0 2.75rem !important;
        background:
            radial-gradient(circle at 85% 8%, rgba(110, 108, 255, 0.08), transparent 30%),
            radial-gradient(circle at 5% 30%, rgba(94, 200, 170, 0.14), transparent 34%),
            #f5f7f8 !important;
        overflow: hidden;
    }

    #quienes-somos > .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #quienes-somos > div > .text-center {
        max-width: 36rem !important;
    }

    #quienes-somos > div > .text-center h2 {
        margin: 0 !important;
        font-size: clamp(2.35rem, 10.5vw, 3.65rem) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.055em !important;
    }

    #quienes-somos > div > .text-center > p {
        display: none !important;
    }

    #quienes-somos .mission-growth-board {
        display: none !important;
    }

    .mobile-mission-experience {
        display: block;
        max-width: 430px;
        margin: 2rem auto 0;
    }

    .mobile-mission-copy {
        text-align: center;
    }

    .mobile-mission-eyebrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        background: rgba(46, 94, 85, 0.08);
        color: #2e5e55;
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.14em;
    }

    .mobile-mission-copy h3 {
        margin: 1rem auto 0;
        color: #111827;
        font-size: clamp(2rem, 8.8vw, 2.8rem);
        line-height: 1.02;
        letter-spacing: -0.045em;
        font-weight: 900;
        text-wrap: balance;
    }

    .mobile-mission-copy h3 span {
        color: #2e5e55;
    }

    .mobile-mission-copy p {
        max-width: 32rem;
        margin: 1rem auto 0;
        color: #667085;
        font-size: 1rem;
        line-height: 1.6;
    }

    .mobile-mission-visual {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 315px;
        margin: 1.5rem 0 1.15rem;
        border-radius: 2rem;
        overflow: hidden;
        background:
            radial-gradient(circle at center, rgba(94, 200, 170, 0.17) 0 20%, transparent 21%),
            linear-gradient(145deg, #ffffff 0%, #f8fbfa 100%);
        border: 1px solid rgba(46, 94, 85, 0.08);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    }

    .mobile-mission-orbit {
        position: absolute;
        border-radius: 50%;
        border: 1px solid rgba(46, 94, 85, 0.10);
    }

    .mobile-mission-orbit.orbit-a {
        width: 230px;
        height: 230px;
    }

    .mobile-mission-orbit.orbit-b {
        width: 300px;
        height: 300px;
        border-style: dashed;
        border-color: rgba(94, 200, 170, 0.16);
    }

    .mobile-mission-core {
        position: relative;
        z-index: 3;
        width: 138px;
        height: 138px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.8rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 15px 40px rgba(46, 94, 85, 0.14);
        text-align: center;
    }

    .mobile-mission-core img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        object-fit: cover;
    }

    .mobile-mission-core small {
        color: #15977f;
        font-size: 0.62rem;
        font-weight: 900;
        letter-spacing: 0.22em;
    }

    .mobile-mission-core strong {
        color: #111827;
        font-size: 0.85rem;
        line-height: 1.03;
        max-width: 96px;
    }

    .mobile-mission-float {
        position: absolute;
        z-index: 4;
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0.4rem 0.7rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        color: #2e5e55;
        border: 1px solid rgba(46, 94, 85, 0.08);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
        font-size: 0.72rem;
        font-weight: 900;
    }

    .float-strategy {
        top: 58px;
        left: 20px;
    }

    .float-management {
        bottom: 48px;
        left: 26px;
    }

    .float-tech {
        top: 66px;
        right: 20px;
    }

    .mobile-mission-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.3rem;
        border-radius: 999px;
        background: rgba(17, 24, 39, 0.05);
    }

    .mobile-mission-tabs button {
        min-width: 0;
        min-height: 44px;
        padding: 0.55rem 0.35rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #667085;
        font-size: 0.75rem;
        font-weight: 900;
        transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-mission-tabs button.is-active {
        background: #ffffff;
        color: #2e5e55;
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
    }

    .mobile-mission-detail {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 0.85rem;
        align-items: start;
        margin-top: 0.8rem;
        padding: 1.15rem;
        border-radius: 1.5rem;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(46, 94, 85, 0.08);
    }

    .mobile-mission-detail-icon {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: rgba(94, 200, 170, 0.13);
        color: #15977f;
        font-size: 1.25rem;
        font-weight: 900;
    }

    .mobile-mission-detail small {
        display: block;
        color: #15977f;
        font-size: 0.62rem;
        font-weight: 900;
        letter-spacing: 0.09em;
    }

    .mobile-mission-detail h4 {
        margin: 0.3rem 0 0;
        color: #111827;
        font-size: 1.18rem;
        line-height: 1.08;
        letter-spacing: -0.025em;
        font-weight: 900;
    }

    .mobile-mission-detail p {
        margin: 0.55rem 0 0;
        color: #667085;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .mobile-mission-actions {
        display: grid;
        gap: 0.65rem;
        margin-top: 1rem;
    }

    .mobile-mission-actions a {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 900;
    }

    .mobile-mission-primary {
        background: #2e5e55;
        color: #ffffff !important;
    }

    .mobile-mission-secondary {
        background: #ffffff;
        color: #2e5e55 !important;
        border: 1px solid rgba(46, 94, 85, 0.14);
    }

    /* Menos huecos entre misión -> testimonios -> contacto */
    #resenas {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #contactanos {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Carruseles conservados, pero con bloques visualmente más cerrados */
    #resenas .testimonials-grid {
        margin-top: 2rem !important;
    }

    #resenas .testimonial-grid-card {
        min-height: 500px !important;
    }

    /* El contacto funciona como una "feature card" compacta */
    .contact-card.card-calendly {
        box-shadow: none !important;
        border: 1px solid rgba(46, 94, 85, 0.08);
    }
}

@media (min-width: 769px) {
    .mobile-mission-experience {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .mobile-mission-visual {
        min-height: 290px;
    }

    .mobile-mission-orbit.orbit-a {
        width: 210px;
        height: 210px;
    }

    .mobile-mission-orbit.orbit-b {
        width: 270px;
        height: 270px;
    }

    .mobile-mission-float {
        font-size: 0.66rem;
    }

    .float-strategy {
        left: 12px;
    }

    .float-management {
        left: 14px;
    }

    .float-tech {
        right: 12px;
    }
}

/* Dark mode móvil para el bloque nuevo */
@media (max-width: 768px) {
    body.dark-mode #quienes-somos {
        background:
            radial-gradient(circle at 85% 8%, rgba(110, 108, 255, 0.08), transparent 30%),
            radial-gradient(circle at 5% 30%, rgba(94, 200, 170, 0.08), transparent 34%),
            #111827 !important;
    }

    body.dark-mode .mobile-mission-copy h3,
    body.dark-mode .mobile-mission-detail h4,
    body.dark-mode .mobile-mission-core strong {
        color: #f8fafc;
    }

    body.dark-mode .mobile-mission-copy p,
    body.dark-mode .mobile-mission-detail p {
        color: #cbd5e1;
    }

    body.dark-mode .mobile-mission-visual,
    body.dark-mode .mobile-mission-detail,
    body.dark-mode .mobile-mission-tabs button.is-active,
    body.dark-mode .mobile-mission-secondary {
        background: rgba(31, 41, 55, 0.94);
    }

    body.dark-mode .mobile-mission-float {
        background: rgba(31, 41, 55, 0.96);
        color: #d1fae5;
    }

    body.dark-mode .mobile-mission-tabs {
        background: rgba(255, 255, 255, 0.06);
    }
}


/* =========================================================
   GEEK V16.19 - MOBILE REFINEMENT
   Ajustes solicitados: misión más limpia, 4 nodos y CTAs compactos.
   Solo afecta pantallas móviles.
   ========================================================= */
@media (max-width: 768px) {
    /* ---------------------------------------------
       HERO: botones compactos tipo Apple
       --------------------------------------------- */
    .geek-hero-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.65rem !important;
        width: 100%;
        margin-top: 0.15rem !important;
    }

    .geek-hero-btn {
        width: auto !important;
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 0.62rem 1.05rem !important;
        border-radius: 999px !important;
        font-size: 0.82rem !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    /* ---------------------------------------------
       MISIÓN: eliminar capa textual redundante
       --------------------------------------------- */
    .mobile-mission-experience {
        margin-top: 0.85rem !important;
    }

    .mobile-mission-copy {
        margin-top: 0 !important;
    }

    .mobile-mission-eyebrow,
    .mobile-mission-copy h3 {
        display: none !important;
    }

    .mobile-mission-copy p {
        max-width: 32rem !important;
        margin: 0.8rem auto 0 !important;
        padding: 0 0.35rem;
        color: #667085;
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
        text-align: center;
    }

    /* Visual con cuatro nodos alrededor del núcleo Geek */
    .mobile-mission-visual {
        min-height: 315px;
        margin-top: 1.35rem !important;
        margin-bottom: 0.95rem !important;
    }

    .float-strategy {
        top: 54px !important;
        left: 18px !important;
    }

    .float-tech {
        top: 54px !important;
        right: 18px !important;
    }

    .float-management {
        bottom: 48px !important;
        left: 18px !important;
    }

    .float-measurement {
        bottom: 48px;
        right: 18px;
    }

    /* Ya no existe el bloque de tabs/detalle.
       Estas reglas quedan como salvaguarda visual. */
    .mobile-mission-tabs,
    .mobile-mission-detail {
        display: none !important;
    }

    /* CTAs compactos tipo Apple */
    .mobile-mission-actions {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.65rem !important;
        margin-top: 0.85rem !important;
    }

    .mobile-mission-actions a {
        width: auto !important;
        min-height: 42px !important;
        padding: 0.62rem 1.05rem !important;
        border-radius: 999px !important;
        font-size: 0.8rem !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    .mobile-mission-primary {
        min-width: 0 !important;
    }

    .mobile-mission-secondary {
        min-width: 0 !important;
    }
}

@media (max-width: 390px) {
    .geek-hero-actions,
    .mobile-mission-actions {
        gap: 0.5rem !important;
    }

    .geek-hero-btn,
    .mobile-mission-actions a {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
        font-size: 0.76rem !important;
    }

    .mobile-mission-float {
        font-size: 0.62rem !important;
        padding-inline: 0.58rem !important;
    }

    .float-strategy,
    .float-management {
        left: 10px !important;
    }

    .float-tech,
    .float-measurement {
        right: 10px !important;
    }
}


/* =========================================================
   GEEK V16.20 - MOBILE HERO + CALENDLY
   Solo afecta pantallas móviles.
   ========================================================= */
@media (max-width: 768px) {
    /* Botones del Hero en una sola fila, estilo compacto */
    .geek-hero-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .geek-hero-actions .geek-hero-btn {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 0.62rem 1rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* Restaurar Calendly embebido en móvil como en la versión inicial */
    .mobile-calendly-cta,
    .mobile-calendly-note {
        display: none !important;
    }

    .contact-calendly-container {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 720px !important;
        min-height: 720px !important;
        overflow: hidden !important;
        border-radius: 1.2rem;
    }

    .contact-calendly-container iframe {
        width: 100% !important;
        min-width: 0 !important;
        height: 720px !important;
        min-height: 720px !important;
    }
}

@media (max-width: 390px) {
    .geek-hero-actions {
        gap: 0.5rem !important;
    }

    .geek-hero-actions .geek-hero-btn {
        padding-left: 0.82rem !important;
        padding-right: 0.82rem !important;
        font-size: 0.74rem !important;
    }

    .contact-calendly-container,
    .contact-calendly-container iframe {
        height: 700px !important;
        min-height: 700px !important;
    }
}


/* =========================================================
   GEEK V16.21 - DARK MODE MOBILE MISSION CORE
   Corrige contraste del nodo central de Geek en modo oscuro.
   Solo afecta la experiencia móvil.
   ========================================================= */
@media (max-width: 768px) {
    body.dark-mode .mobile-mission-core {
        background: rgba(31, 41, 55, 0.98) !important;
        border: 1px solid rgba(94, 200, 170, 0.18) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28) !important;
    }

    body.dark-mode .mobile-mission-core small {
        color: #5ec8aa !important;
    }

    body.dark-mode .mobile-mission-core strong {
        color: #f8fafc !important;
    }

    body.dark-mode .mobile-mission-core img {
        background: #ffffff;
        border-radius: 10px;
    }

    body.dark-mode .mobile-mission-orbit {
        border-color: rgba(94, 200, 170, 0.14) !important;
    }

    body.dark-mode .mobile-mission-orbit.orbit-b {
        border-color: rgba(94, 200, 170, 0.20) !important;
    }
}


/* =========================================================
   GEEK V16.22 - MOBILE HERO IMAGE
   Imagen principal más horizontal y compacta en celulares.
   Solo afecta pantallas móviles.
   ========================================================= */
@media (max-width: 768px) {
    .geek-hero-image-wrap {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 1.45rem !important;
        overflow: hidden !important;
    }

    .geek-hero-image {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: center 46% !important;
        border-radius: inherit !important;
    }
}

@media (max-width: 430px) {
    .geek-hero-image-wrap {
        aspect-ratio: 3 / 2 !important;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .geek-hero-image-wrap {
        aspect-ratio: 16 / 7 !important;
    }

    .geek-hero-image {
        max-height: none !important;
    }
}


/* =========================================================
   GEEK V16.23 - MOBILE HERO IMAGE FLOW FIX
   Muestra la fotografía completa y la devuelve al flujo normal
   del documento para eliminar el espacio vacío superior.
   Solo afecta pantallas móviles.
   ========================================================= */
@media (max-width: 768px) {
    .geek-hero-image-wrap {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;

        display: block !important;
        position: relative !important;

        padding: 0 !important;
        margin: 0 !important;

        border-radius: 1.45rem !important;
        overflow: hidden !important;
        line-height: 0 !important;
    }

    .geek-hero-image {
        display: block !important;
        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        inset: auto !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;

        transform: none !important;
        border-radius: inherit !important;
    }
}
