/* Navegación móvil estable */
@media (max-width: 767px) {
    nav {
        width: 100%;
        padding: 0 12px;
    }

    .nav-inner {
        width: 100%;
        min-height: 62px;
        height: auto;
        padding: 8px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
        font-size: clamp(1rem, 4.1vw, 1.25rem);
        white-space: nowrap;
    }

    .nav-links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        gap: 7px;
        margin-left: auto;
    }

    .productos-menu {
        position: relative;
        z-index: 300;
    }

    .productos-trigger,
    .btn-nav,
    .btn-nav-cta {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-family: inherit;
        font-size: clamp(0.68rem, 2.5vw, 0.78rem);
    }

    .productos-trigger {
        gap: 4px;
        padding: 7px 5px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .productos-trigger svg {
        width: 11px;
        height: 11px;
    }

    .btn-nav {
        padding: 7px 5px;
    }

    .nav-links .btn-nav-cta {
        padding: 7px 11px;
        border-radius: 22px;
    }

    .productos-dropdown {
        position: fixed;
        top: 63px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        padding: 10px;
        background: rgba(255, 255, 255, 0.99);
        border: 1px solid var(--borde);
        border-radius: 14px;
        box-shadow: 0 14px 35px rgba(58, 27, 46, 0.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1000;
        pointer-events: none;
    }

    .productos-menu.open .productos-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .productos-dropdown::before {
        padding: 5px 10px 7px;
        font-size: 0.6rem;
    }

    /* Los enlaces del desplegable deben seguir visibles en celular. */
    .nav-links .productos-dropdown a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 10px 11px;
        font-size: 0.78rem;
        touch-action: manipulation;
    }
}

/* Evitar que la cabecera se amontone en celulares angostos */
@media (max-width: 430px) {
    .nav-inner {
        min-height: 58px;
        gap: 5px;
    }

    .nav-links {
        gap: 4px;
    }

    .logo {
        font-size: 0.94rem;
    }

    .productos-trigger,
    .btn-nav,
    .btn-nav-cta {
        font-size: 0.65rem;
    }

    .productos-trigger,
    .btn-nav {
        padding-inline: 3px;
    }

    .nav-links .btn-nav-cta {
        padding-inline: 8px;
    }

    .productos-dropdown {
        top: 59px;
    }
}

/* En pantallas extremadamente angostas se priorizan Productos y Contactar. */
@media (max-width: 360px) {
    .nav-links .btn-nav {
        display: none;
    }
}

/* Ajuste exclusivo de la Preview de Florecer en computadora.
   Quita el espacio rosa sobrante sin achicar los textos. */
@media (min-width: 901px) {
    #florecer-ai.florecer-preview-v3 {
        align-items: start !important;
    }

    #florecer-ai.florecer-preview-v3 .producto-visual.mockup-real {
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 14px !important;
        display: block !important;
        background: linear-gradient(145deg, #f8ece8, #ead6dc 55%, #dfc3cf) !important;
    }

    #florecer-ai.florecer-preview-v3 .producto-visual.mockup-real img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        border-radius: 18px !important;
        box-shadow: 0 16px 36px rgba(58, 27, 46, 0.14) !important;
    }

    #florecer-ai.florecer-preview-v3 .producto-info {
        padding: clamp(2rem, 3.2vw, 3rem) !important;
    }

    #florecer-ai.florecer-preview-v3 .producto-resumen {
        font-size: 0.94rem !important;
        line-height: 1.72 !important;
    }

    #florecer-ai.florecer-preview-v3 .detalle-lista li {
        font-size: 0.76rem !important;
        line-height: 1.55 !important;
    }

    #florecer-ai.florecer-preview-v3 .proposito-card p,
    #florecer-ai.florecer-preview-v3 .florecer-acceso-v3 p {
        font-size: 0.73rem !important;
        line-height: 1.55 !important;
    }
}

/* Nueva prueba: mockup más liviano y editorial en PC.
   No afecta el diseño móvil ni otros productos. */
@media (min-width: 901px) {
    #florecer-ai.florecer-preview-tarjetas {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
        align-items: start !important;
        background: #fff !important;
    }

    #florecer-ai.florecer-preview-tarjetas .florecer-columna-visual {
        padding: 18px 0 18px 18px !important;
        gap: 12px !important;
        background: transparent !important;
    }

    #florecer-ai.florecer-preview-tarjetas .producto-visual.mockup-real {
        width: 100% !important;
        max-width: 650px !important;
        margin: 0 auto !important;
        border: 1px solid rgba(196, 100, 135, 0.16) !important;
        border-radius: 15px !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    #florecer-ai.florecer-preview-tarjetas .producto-visual.mockup-real img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    #florecer-ai.florecer-preview-tarjetas .img-overlay-badge {
        top: 14px !important;
        left: 14px !important;
    }

    #florecer-ai.florecer-preview-tarjetas .florecer-columna-visual .proposito-card,
    #florecer-ai.florecer-preview-tarjetas .florecer-columna-visual .florecer-acceso-v3 {
        max-width: 650px !important;
        width: 100% !important;
        margin-inline: auto !important;
        box-shadow: none !important;
        background: rgba(196, 100, 135, 0.045) !important;
    }

    #florecer-ai.florecer-preview-tarjetas .producto-info {
        padding: clamp(2.35rem, 3.5vw, 3.4rem) !important;
    }
}
