/* ============================================================
   MOBILE.CSS — Mobile-first enhancements · Momento360
   Carga después de app.css y fase1.css en main.php
   ============================================================ */

/* ─── Overflow horizontal global ────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ─── HEADER: logo + hamburger ──────────────────────────────── */
.site-brand img {
    max-height: 38px;
    width: auto;
    max-width: clamp(110px, 32vw, 180px);
    object-fit: contain;
}

@media (max-width: 960px) {
    .site-header__inner { gap: 10px; }
    .hamburger {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        touch-action: manipulation;
    }
}

/* ─── MOBILE OVERLAY ─────────────────────────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 22, 0.88);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
@media (max-width: 960px) {
    .mobile-overlay { display: block; }
    .mobile-overlay.open { opacity: 1; pointer-events: auto; }
}

/* ─── MOBILE MENU: drawer lateral desde la derecha ──────────── */
@media (max-width: 960px) {
    .mobile-menu {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(84vw, 340px);
        height: 100dvh;
        padding: 0 !important;
        gap: 0 !important;
        border-radius: 0 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
        z-index: 200;
        pointer-events: none;
        overflow-y: auto;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(105%);
        transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-menu.open {
        transform: translateX(0);
        pointer-events: auto;
    }
}

/* ─── MOBILE MENU: estructura interna ────────────────────────── */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}
.mobile-menu__logo {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}
.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-2);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu__close:hover { background: rgba(255,255,255,0.13); color: #fff; }

/* ─── MOBILE MENU: portal cards (Mi cuenta / Vendedores) ────── */
.mobile-menu__portals {
    display: flex;
    flex-direction: column;
    padding: 18px 16px 8px;
    gap: 10px;
    flex: 1;
}
.mobile-menu__portal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}
.mobile-menu__portal-card:active {
    transform: scale(0.98);
}
.mobile-menu__portal-card--buyer {
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.15);
}
.mobile-menu__portal-card--buyer:hover {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.28);
}
.mobile-menu__portal-card--vendor {
    background: rgba(255, 106, 42, 0.06);
    border-color: rgba(255, 106, 42, 0.15);
}
.mobile-menu__portal-card--vendor:hover {
    background: rgba(255, 106, 42, 0.12);
    border-color: rgba(255, 106, 42, 0.28);
}
.mobile-menu__portal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
}
.mobile-menu__portal-card--buyer .mobile-menu__portal-icon {
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan-2);
}
.mobile-menu__portal-card--vendor .mobile-menu__portal-icon {
    background: rgba(255, 106, 42, 0.12);
    color: #ff7a45;
}
.mobile-menu__portal-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.mobile-menu__portal-label {
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    font-family: var(--font-h);
}
.mobile-menu__portal-sub {
    font-size: 0.78rem;
    color: rgba(160, 180, 210, 0.8);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-menu__portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 200, 30, 0.15);
    border: 1px solid rgba(255, 200, 30, 0.25);
    color: #ffd84d;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    font-family: var(--font-h);
}
.mobile-menu__portal-arrow {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    margin-left: 2px;
}

/* ─── MOBILE MENU: trust strip ──────────────────────────────── */
.mobile-menu__trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-menu__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.04em;
}
.mobile-menu__trust-item svg { color: var(--green); flex-shrink: 0; }

/* ─── HERO ───────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .s-hero__content  { padding: 96px 0 72px; }
    .s-hero__body     { font-size: 0.95rem; max-width: 100%; }
    .s-page-hero      { min-height: 55vh; }
    .s-page-hero__content { padding: 84px 0 56px; }
    .s-ev-hero        { min-height: 58vh; }
    .s-ev-hero__content { padding: 60px 0 48px; }
    .s-cta-video      { padding: 80px 0; }

    /* CTAs apiladas */
    .s-hero__actions,
    .s-page-hero__actions,
    .s-ev-hero__actions,
    .s-cta-video__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .s-hero__actions .btn,
    .s-page-hero__actions .btn,
    .s-ev-hero__actions .btn,
    .s-cta-video__actions .btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 374px) {
    .s-hero__content       { padding: 80px 0 56px; }
    .s-page-hero__content  { padding: 72px 0 48px; }
    .s-ev-hero__content    { padding: 52px 0 40px; }
}

/* ─── SECCIONES: encabezados row → columna en mobile ─────────── */
@media (max-width: 640px) {
    .s-section-head--row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .s-section-head--row > .btn,
    .s-section-head--row > a.btn {
        width: 100%;
        justify-content: center;
    }
    .s-section-sub { margin-bottom: 24px; }
    .s-featured__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .s-featured__head > .btn,
    .s-featured__head > a {
        align-self: flex-start;
    }
}

/* ─── PADDINGS secciones en mobile ───────────────────────────── */
@media (max-width: 414px) {
    .s-featured  { padding: 52px 0 44px; }
    .s-how       { padding: 52px 0; }
    .s-why       { padding: 52px 0; }
    .s-gallery   { padding: 52px 0; }
    .s-affiliate { padding: 52px 0; }
    .s-proof     { padding: 24px 0; }
    .s-points__inner { min-height: auto; }
    .s-points__content { padding: 32px 20px; }
}

/* ─── PROOF STRIP: siempre 4 columnas horizontales en mobile ─── */
@media (max-width: 780px) {
    .s-proof { padding: 18px 0; }

    .s-proof__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .s-proof__item {
        padding: 10px 6px;
        border-right: 1px solid var(--border);
    }

    .s-proof__item:last-child { border-right: none; }

    .s-proof__num {
        font-size: clamp(1.25rem, 5.5vw, 1.7rem);
        letter-spacing: -0.02em;
    }

    .s-proof__label {
        font-size: 0.65rem;
        margin-top: 3px;
        line-height: 1.3;
    }
}

/* ─── HOME: event finder ─────────────────────────────────────── */
@media (max-width: 768px) {
    .home-event-finder {
        margin-top: -18px;
        padding-bottom: 18px;
    }

    .event-finder-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 14px;
        border-radius: 18px;
    }

    .event-finder-card__intro {
        grid-column: 1 / -1;
        padding-bottom: 2px;
    }

    .event-finder-card__intro .s-section-label {
        font-size: 0.67rem;
    }

    .event-finder-card__intro h2 {
        font-size: 1.05rem !important;
        margin: 3px 0 0 !important;
        line-height: 1.2;
    }

    .event-finder-card__intro p { display: none; }

    .event-search-field--wide,
    .event-search-field--full { grid-column: 1 / -1; }

    .event-search-field span { font-size: 0.64rem; }

    .event-search-field input,
    .event-search-field select {
        min-height: 40px;
        border-radius: 10px;
        font-size: 0.84rem;
        padding: 0 11px;
        transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease, transform 200ms ease;
    }

    .event-finder-card > .btn {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 0.88rem;
        padding: 0 20px;
    }
}

/* ─── HOME: city directory ───────────────────────────────────── */
@media (max-width: 560px) {
    .city-directory__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}
@media (max-width: 374px) {
    .city-directory__grid { grid-template-columns: 1fr !important; }
}

/* ─── HOME: slider horizontal snap en mobile ─────────────────── */
@media (max-width: 640px) {
    .home-slider__track {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 8px;
    }
    .home-slider__track::-webkit-scrollbar { display: none; }
    .home-slider__card {
        flex: 0 0 78vw;
        max-width: 300px;
        scroll-snap-align: start;
    }
}

/* ─── HOME: calendar board ───────────────────────────────────── */
@media (max-width: 640px) {
    .calendar-board__grid { grid-template-columns: 1fr !important; }
}

/* ─── HOME: gallery ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .s-gallery__grid { grid-template-columns: 1fr 1fr !important; }
    .s-gallery__card:nth-child(3) { display: none; }
}
@media (max-width: 414px) {
    .s-gallery__grid { grid-template-columns: 1fr !important; }
    .s-gallery__card:not(:first-child) { display: none; }
}

/* ─── TARJETAS FEATURED (home) ───────────────────────────────── */

@media (max-width: 540px) {
    .ev-vcard { border-radius: 20px; }
    .ev-vcard__body { padding: 14px 16px 18px; }
    .ev-vcard__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .ev-vcard__actions .btn,
    .ev-vcard__actions .text-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ─── EVENTS LIST: ev-card ───────────────────────────────────── */
@media (max-width: 560px) {
    .ev-card__actions { flex-direction: column; align-items: stretch; }
    .ev-card__actions .btn { width: 100%; justify-content: center; }
    .ev-card { border-radius: 20px; }
}

/* ─── EVENT FILTERS ──────────────────────────────────────────── */
@media (max-width: 640px) {
    /* Filtros: scroll horizontal en lugar de wrap */
    .ev-filters__pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .ev-filters__pills::-webkit-scrollbar { display: none; }
    .ev-filters__pill { flex-shrink: 0; }

    /* Input de búsqueda: full width */
    .ev-filter-input { min-width: 0; width: 100%; }
    .ev-filters__inner { flex-direction: column; gap: 10px; }
}

/* ─── EVENT META GRID (detalle) ──────────────────────────────── */
@media (max-width: 640px) {
    .ev-meta-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .ev-meta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 320px) {
    .ev-meta-grid { grid-template-columns: 1fr; }
}

/* ─── TIPOS DE TICKET ────────────────────────────────────────── */
@media (max-width: 480px) {
    .ev-ttype-grid { grid-template-columns: 1fr; }
}

/* ─── STICKY EVENT CTA ───────────────────────────────────────── */
@media (max-width: 414px) {
    .ev-sticky-cta { padding: 12px 16px; gap: 10px; }
    .ev-sticky-cta .btn { font-size: 0.82rem; height: 42px; padding: 0 18px; }
}

/* ─── CHECKOUT ───────────────────────────────────────────────── */

/* co-wrap: forzar 1 columna en mobile.
   Usa !important porque form.php tiene un <style> inline con el grid template
   que en el cascada aparece DESPUÉS de los archivos externos del <head>. */
@media (max-width: 820px) {
    .co-wrap {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    /* co-card--sticky: sacar de columna 2 cuando hay solo 1 columna */
    .co-card--sticky {
        position: static !important;
        grid-column: auto !important;
        grid-row: auto !important;
        top: auto !important;
    }
}

@media (max-width: 640px) {
    /* Steps: 2×2 en mobile */
    .co-steps {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .co-step {
        min-height: 54px;
        padding: 10px;
        gap: 8px;
    }
    .co-step span { font-size: 0.68rem; letter-spacing: 0.06em; }
    .co-step strong {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }

    /* Hero card del checkout */
    .co-hero-card { min-height: 150px; }
    .co-hero-card__content { padding: 18px; }
    .co-hero-card__title { font-size: clamp(1.2rem, 4vw, 1.75rem); }
    .co-hero-card__meta { gap: 6px 12px; font-size: 0.85rem; }

    /* Cart */
    .co-cart-shell { padding: 18px; }
    .co-cart-body { padding: 14px 18px 18px; }
    .co-cart-shell h2 { font-size: 1.4rem; }

    /* Resumen total */
    .co-summary__total strong { font-size: 1.25rem; }

    /* Ticket card: precio debajo en mobile */
    .co-ticket-card {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .co-ticket-card__price {
        text-align: left !important;
        min-width: auto !important;
    }

    /* Payment tabs */
    .co-pay-tab { gap: 10px; padding: 14px; }
    .co-pay-tab__icon { font-size: 1.15rem; }

    /* Trust pills */
    .co-cart-trust__pill { white-space: normal; text-align: center; }
}

@media (max-width: 414px) {
    .co-steps { grid-template-columns: repeat(2, 1fr) !important; }
    .co-row-2 { grid-template-columns: 1fr !important; }

    /* Total bar padding ajustado */
    .co-cart-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ─── INPUTS: prevenir zoom en iOS (mínimo 16px) ────────────── */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="password"],
    input[type="number"],
    .co-field input,
    .co-field select,
    .co-field textarea,
    .auth-input,
    .form-input,
    .ev-filter-input,
    .event-search-field input,
    .event-search-field select,
    select,
    textarea {
        font-size: max(16px, 1em) !important;
    }
}

/* ─── BOTONES: touch targets ─────────────────────────────────── */
.btn, .button, .auth-btn, .hamburger {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px) {
    .btn, .button { min-height: 48px; }
}

/* ─── AUTH ───────────────────────────────────────────────────── */
/* buyer-login.php ya tiene @media(max-width:768px) inline.
   Refuerzo para pantallas muy pequeñas. */
@media (max-width: 480px) {
    .auth-form-panel { padding: 24px 16px; min-height: 100vh; }
    .auth-card { gap: 20px; }
    .auth-visual__title { font-size: 1.5rem; }
    .auth-shell { grid-template-columns: 1fr !important; }
    .auth-visual { display: none !important; }
}

/* ─── FOOTER: professional mobile redesign ────────────────────── */

@media (max-width: 768px) {
    /* ── Estructura general ── */
    .site-footer {
        padding: 36px 0 20px;
    }

    .site-footer__grid {
        width: 100%;
        padding: 0 18px;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 16px;
        row-gap: 0;
    }

    /* ── Brand: grid 2-col — logo+social primera fila, desc segunda, sep tercera ── */
    .site-footer__brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 12px;
        align-items: center;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .site-footer__brand img {
        grid-column: 1;
        grid-row: 1;
        height: 32px;
        margin-bottom: 0;
        align-self: center;
    }

    /* Descripción: visible, pequeña, máx 2 líneas, bajo el logo */
    .site-footer__brand-desc {
        grid-column: 1 / -1;
        grid-row: 2;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.74rem;
        line-height: 1.55;
        color: var(--text-3);
        max-width: none;
        margin: 8px 0 14px;
    }

    /* Redes: misma fila que logo, pegadas a la derecha */
    .site-footer__social {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-top: 0;
        gap: 7px;
        flex-shrink: 0;
    }

    .site-footer__social a {
        width: 34px;
        height: 34px;
        /* Dark glass style en lugar de blanco */
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.13) !important;
        color: var(--text-2) !important;
        box-shadow: none !important;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
    }

    .site-footer__social a:hover,
    .site-footer__social a:active {
        background: rgba(34, 211, 238, 0.14) !important;
        border-color: rgba(34, 211, 238, 0.35) !important;
        color: #22d3ee !important;
        transform: scale(1.1) !important;
        box-shadow: 0 0 14px rgba(34, 211, 238, 0.18) !important;
    }

    /* Separador con gradiente antes de las columnas */
    .site-footer__brand::after {
        content: '';
        display: block;
        grid-column: 1 / -1;
        grid-row: 3;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35) 40%, rgba(255, 107, 53, 0.3) 70%, transparent);
        margin: 4px 0 20px;
        align-self: start;
    }

    /* ── Columnas de nav ── */
    .site-footer h2 {
        font-size: 0.62rem;
        letter-spacing: 0.13em;
        margin-bottom: 10px;
        color: #22d3ee;
        opacity: 0.85;
    }

    .site-footer__links { gap: 8px; }

    .site-footer__links a {
        font-size: 0.75rem;
        line-height: 1.45;
        color: var(--text-3);
        display: block;
        transition: color 0.18s ease, transform 0.18s ease;
    }

    .site-footer__links a:hover,
    .site-footer__links a:active {
        color: var(--text-2);
        transform: translateX(3px);
    }

    /* ── Trust: pills oscuras, scroll horizontal ── */
    .site-footer__trust {
        width: 100%;
        margin: 20px 0 0;
        padding: 0 18px;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        grid-template-columns: unset;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .site-footer__trust::-webkit-scrollbar { display: none; }

    .site-footer__trust span {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.74rem;
        font-weight: 700;
        border-radius: 99px;
        /* Oscuro en vez de blanco */
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: var(--text-2) !important;
        box-shadow: none !important;
    }

    /* ── Bottom bar: centrado ── */
    .site-footer__bottom {
        width: 100%;
        margin-top: 20px;
        padding: 18px 18px 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .site-footer__bottom-links {
        justify-content: center;
        gap: 14px;
        flex-wrap: wrap;
    }
}

/* ── ≤ 480px: más compacto ── */
@media (max-width: 480px) {
    .site-footer { padding: 28px 0 16px; }

    .site-footer__grid {
        padding: 0 14px;
        column-gap: 10px;
    }

    .site-footer__brand img { height: 28px; }

    .site-footer__social a {
        width: 30px;
        height: 30px;
    }

    .site-footer h2 {
        font-size: 0.58rem;
        margin-bottom: 8px;
        letter-spacing: 0.11em;
    }

    .site-footer__links { gap: 6px; }
    .site-footer__links a { font-size: 0.68rem; }

    .site-footer__trust {
        padding: 0 14px;
        margin-top: 14px;
    }

    .site-footer__trust span {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.68rem;
    }

    .site-footer__bottom {
        margin-top: 14px;
        padding: 14px 14px 0;
    }
}

/* ─── ORDER STATUS ───────────────────────────────────────────── */
@media (max-width: 560px) {
    .order-header { flex-direction: column; gap: 12px; }
}

/* ─── TABLETS (641px – 1024px) ───────────────────────────────── */
@media (min-width: 641px) and (max-width: 1024px) {
    .s-featured__grid { grid-template-columns: repeat(2, 1fr); }
    .s-why__grid      { grid-template-columns: repeat(2, 1fr); }
    .co-steps { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ─── 320px: escala mínima garantizada ──────────────────────── */
@media (max-width: 320px) {
    .site-brand img    { max-height: 28px; }
    .s-hero__h1        { font-size: 1.6rem; }
    .s-page-hero__h1   { font-size: 1.6rem; }
    .s-ev-hero__h1     { font-size: 1.6rem; }
    .s-section-title   { font-size: 1.4rem; }
    .ev-card__title    { font-size: 1.1rem; }
    .co-hero-card__title { font-size: 1.05rem; }
    .btn, .button      { padding: 0 14px; font-size: 0.82rem; }
}

/* ─── Reducir movimiento (accesibilidad) ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   PROPUESTA 1 — BOTTOM NAVIGATION BAR
   ══════════════════════════════════════════════════════════════ */
@keyframes bn-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(0.88); }
    100% { transform: scale(1); }
}
@keyframes bn-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 780px) {
    body.site-page,
    body.site-home { padding-bottom: 82px; }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 120;
        align-items: center;
        justify-content: space-around;
        padding: 6px 4px;
        border-radius: 22px;
        background: rgba(5, 11, 24, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.13);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0,0,0,0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        animation: bn-slide-up 0.45s cubic-bezier(.22,1,.36,1) 0.2s both;
    }

    .mobile-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        min-height: 52px;
        border-radius: 16px;
        color: rgba(148, 163, 184, 0.72);
        font-family: var(--font-h);
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 180ms ease, background 180ms ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav__item:active {
        animation: bn-pop 0.3s ease forwards;
    }

    .mobile-bottom-nav__item.is-active {
        color: var(--cyan-2);
        background: rgba(34, 211, 238, 0.13);
    }

    .mobile-bottom-nav__item svg {
        transition: transform 180ms ease;
    }

    .mobile-bottom-nav__item.is-active svg {
        filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.55));
    }
}

/* ══════════════════════════════════════════════════════════════
   PROPUESTA 5 — FLOATING WHATSAPP CTA
   ══════════════════════════════════════════════════════════════ */
@keyframes wa-pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(37, 211, 102, 0.55); }
    50%  { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(37, 211, 102, 0); }
}
@keyframes wa-ring {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

.wa-fab {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 119;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px 13px 14px;
    border-radius: 50px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-h);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
    animation: wa-pulse 3.2s ease-in-out 2s infinite;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.wa-fab:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.6);
    animation: none;
}

.wa-fab__ring {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: wa-ring 3.2s ease-out 2s infinite;
    pointer-events: none;
}

.wa-fab__icon { flex-shrink: 0; }
.wa-fab__label { white-space: nowrap; }

/* En desktop: solo ícono (sin label) */
@media (min-width: 781px) {
    .wa-fab {
        bottom: 24px;
        padding: 14px;
        border-radius: 50%;
    }
    .wa-fab__label { display: none; }
}

/* En mobile con bottom nav */
@media (max-width: 780px) {
    .wa-fab { bottom: 82px; right: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   PROPUESTA 3 + 6 — SCROLL-REVEAL & STAGGER ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes sr-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes sr-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Estado inicial: oculto hasta que JS activa la clase */
.sr-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(.22,1,.36,1),
                transform 0.55s cubic-bezier(.22,1,.36,1);
}
.sr-hidden.sr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   PROPUESTA 4 — HERO MOBILE MEJORADO
   ══════════════════════════════════════════════════════════════ */
@keyframes badge-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

@media (max-width: 560px) {
    /* Badge pulsante */
    .s-hero__badge {
        animation: badge-blink 2.8s ease-in-out infinite;
    }

    /* H1 más impactante */
    .s-hero__h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
        line-height: 1.05 !important;
    }

    /* Scroll indicator más visible */
    .s-hero__scroll {
        opacity: 0.9;
        font-size: 0.78rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   PROPUESTA 6 — COUNT-UP NÚMEROS (vía JS)
   ══════════════════════════════════════════════════════════════ */
.s-proof__num[data-target] {
    transition: none;
}

/* ══════════════════════════════════════════════════════════════
   HOME v3 (hm-*) — pulido mobile
   ══════════════════════════════════════════════════════════════ */

/* Botones hero: apilados en pantallas muy pequeñas */
@media (max-width: 480px) {
    .hm-hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
    .hm-hero__ctas .hm-btn { justify-content: center; width: 100%; }
    .hm-cta-video__actions { flex-direction: column; align-items: center; gap: 10px; }
}

/* Proof strip: en mobile muy pequeño, reducir padding */
@media (max-width: 414px) {
    .hm-proof-content { padding: 10px 12px; }
    .hm-proof-num     { font-size: 1.6rem; }
    .hm-proof-lbl     { font-size: 0.7rem; }
}

/* Platform cards: gap reducido en xs */
@media (max-width: 414px) {
    .hm-platform-grid { gap: 10px; }
    .hm-platform-card { padding: 22px 18px; }
}

/* Gallery: asegurar que no desborde en xs */
@media (max-width: 380px) {
    .hm-gallery-grid { gap: 6px; }
}

/* How-items: padding más compacto */
@media (max-width: 414px) {
    .hm-how-item { padding: 24px 16px; }
    .hm-how-item__num { font-size: 2.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   EMBAJADORES360 landing (emb-*) — pulido mobile
   ══════════════════════════════════════════════════════════════ */

/* CTA buttons: ancho completo en xs */
@media (max-width: 480px) {
    .emb-hero__cta,
    .emb-cta-inline {
        width: 100%;
        justify-content: center;
        padding-left: 24px;
        padding-right: 24px;
    }
    .emb-final [style*="display:flex"] {
        flex-direction: column;
        align-items: stretch;
    }
    .emb-cta-ghost { justify-content: center; }
}

/* Steps: reducir padding */
@media (max-width: 414px) {
    .emb-step { padding: 28px 20px; }
    .emb-step__num { font-size: 2.8rem; }
}

/* Earn stats: compact */
@media (max-width: 414px) {
    .emb-stat-row { padding: 14px 16px; gap: 12px; }
    .emb-stat-row__val { font-size: 1.5rem; min-width: 48px; }
}

/* Niveles: en xs extremo, 1 columna */
@media (max-width: 340px) {
    .emb-levels { grid-template-columns: 1fr; }
    .emb-level:last-child { grid-column: auto; }
}

/* ── Touch targets mínimos (44px) para botones nuevos ─────────── */
.emb-hero__cta,
.emb-cta-inline,
.emb-cta-ghost {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.hm-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
