/* =============================================================
   EXEQUIEL MORENO THEME — main.css
   CSS custom extraído de los HTML originales.
   Tailwind se compila aparte (tailwind.config.js → assets/css/tailwind.css).
   ============================================================= */

/* ============================================
   MOTION TOKENS — una sola escala para todo el sitio
   ============================================ */
:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entradas, salidas, hovers con movimiento */
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* movimiento dentro de pantalla */
    --dur-press: 120ms;   /* respuesta al presionar */
    --dur-fast: 200ms;    /* color, bordes, menús */
    --dur-hover: 300ms;   /* hovers con movimiento (tarjeta + imagen + flecha juntos) */
    --dur-reveal: 600ms;  /* aparición al hacer scroll */

    /* ENCUADRE DEL VIDEO DEL INICIO — "horizontal vertical".
       50% 50% = centrado · 50% 0% = arriba · 50% 100% = abajo
       0% 50% = izquierda · 100% 50% = derecha.
       Si se guardan valores en WordPress (TikToks › Video del inicio),
       esos tienen prioridad sobre estos. */
    --hero-encuadre-celular: 50% 50%;
    --hero-encuadre-compu:   50% 50%;
}

/* Textura de fondo */
.texture-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* --- Scroll progress bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #d7c3b0, #f4dfcb, #d7c3b0);
    z-index: 70;
    box-shadow: 0 0 8px rgba(215, 195, 176, 0.6);
    /* scaleX en vez de width: no recalcula layout y sigue al scroll sin retraso */
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* ============================================
   KEYFRAMES
   ============================================ */
/* Entradas: usan las propiedades individuales `translate` / `scale`
   para no pisar el `transform` de los hovers. */
@keyframes revealIn {
    from { opacity: 0; translate: var(--reveal-x, 0) var(--reveal-y, 16px); scale: var(--reveal-scale, 1); }
    to   { opacity: 1; translate: none; scale: none; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1%, -1%); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(12deg) scale(1.5); }
    50%       { transform: translateY(-8px) rotate(12deg) scale(1.5); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 223, 203, 0.55); }
    50%       { box-shadow: 0 0 0 9px rgba(244, 223, 203, 0); }
}
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}
@keyframes ripple-anim {
    to { transform: scale(2.6); opacity: 0; }
}
@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.5) rotate(-6deg); }
    70%  { opacity: 1; transform: scale(1.08) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* --- Page-load entrance ---
   El navbar ya no entra animado: aparece en cada navegación y la animación
   solo retrasaba el acceso al menú. Título y subtítulo entran juntos,
   con 80ms de diferencia, y terminan en ~0.7s. */
.anim-hero-title,
.anim-hero-subtitle {
    animation: revealIn var(--dur-reveal) var(--ease-out) both;
}
.anim-hero-subtitle { animation-delay: 80ms; }
.anim-hero-bg     { animation: kenBurns 18s ease-in-out infinite alternate; }

/* --- Hero accent text (gradiente animado, lento para no distraer) --- */
.hero-accent {
    background: linear-gradient(90deg, #f4dfcb, #ffffff, #f4dfcb);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 10s ease-in-out infinite;
}

/* --- Scroll cue bounce --- */
.scroll-cue { animation: bounceArrow 2.4s ease-in-out infinite; }

/* ============================================
   HERO DEL INICIO (video)
   1. Fondo oscuro → la portada aparece (800ms) mientras todo el bloque
      se asienta de un zoom 1.04 a 1 (1.6s), como una cámara que se acomoda.
   2. Cuando el video realmente se reproduce, se funde encima (900ms):
      no se ve el corte entre foto y video.
   3. La flecha aparece al final, cuando todo se asentó.
   Las clases .poster-ready y .video-ready las pone main.js.
   ============================================ */
.hero-home__media {
    transform: scale(1.04);
    transition: transform 1.6s var(--ease-out);
}
.hero-home__poster,
.hero-home__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-encuadre-celular);
    opacity: 0;
}
@media (min-width: 768px) {
    .hero-home__poster,
    .hero-home__video { object-position: var(--hero-encuadre-compu); }
}
.hero-home__poster { transition: opacity 800ms ease-out; }
.hero-home__video  { transition: opacity 900ms ease; }
.hero-home.poster-ready .hero-home__media  { transform: none; }
.hero-home.poster-ready .hero-home__poster { opacity: 1; }
.hero-home.video-ready  .hero-home__video  { opacity: 1; }

.hero-home .scroll-cue { opacity: 0; }
.hero-home.poster-ready .scroll-cue {
    animation: fadeIn 600ms ease-out 900ms both,
               bounceArrow 2.4s ease-in-out 1.5s infinite;
}

/* --- Float decorative watermark --- */
.float-decor { animation: floatSlow 9s ease-in-out infinite; }

/* ============================================
   SCROLL REVEAL
   Se anima con `animation` (no con `transition`) para que no choque con
   las transiciones de hover de cada tarjeta ni con las clases de Tailwind.
   El escalonado lo calcula main.js según qué elementos entran juntos.
   ============================================ */
.reveal:not(.in-view) { opacity: 0; }
.reveal.in-view {
    animation: revealIn var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms) both;
}
.reveal.reveal-left  { --reveal-x: -20px; --reveal-y: 0px; }
.reveal.reveal-right { --reveal-x: 20px;  --reveal-y: 0px; }
.reveal.reveal-scale { --reveal-y: 0px;   --reveal-scale: 0.96; }
/* El footer es lo último de la página: si se desplaza al entrar, agranda el
   alto del documento y en mobile el scroll "rebota" al llegar al fondo.
   Por eso entra solo con fundido. */
footer.reveal { --reveal-y: 0px; }
/* Elementos que se pasaron de largo en un scroll rápido: aparecen sin animar. */
.reveal.reveal-instant { animation: none; opacity: 1; }

/* ============================================
   TARJETAS — un solo lenguaje de hover para todas.
   Tarjeta, imagen, badge y flecha usan la misma duración y la misma curva
   para moverse como una sola pieza.
   ============================================ */
.news-card,
.gallery-card,
.media-card,
.dept-card,
.contact-channel,
.testimony-card,
.stat-card {
    transition: transform var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out),
                border-color var(--dur-fast) ease;
}
.card-img {
    transition: transform var(--dur-hover) var(--ease-out);
}
.read-more-arrow {
    display: inline-block;
    transition: transform var(--dur-hover) var(--ease-out);
}
.card-badge,
.channel-icon,
.dept-icon,
.play-btn {
    transition: transform var(--dur-hover) var(--ease-out),
                background-color var(--dur-fast) ease,
                color var(--dur-fast) ease;
}
/* Subrayado que engrosa sin mover el layout (reemplaza border-b-2) */
.link-underline {
    transition: box-shadow var(--dur-fast) ease;
}

/* Hovers con movimiento solo en dispositivos con mouse:
   en táctil el "hover" queda pegado después de tocar. */
@media (hover: hover) and (pointer: fine) {
    .news-card:hover,
    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 32px -18px rgba(27, 28, 28, 0.35);
    }
    .media-card:hover,
    .dept-card:hover,
    .testimony-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px -16px rgba(27, 28, 28, 0.3);
    }
    .contact-channel:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 28px -14px rgba(27, 28, 28, 0.25);
    }
    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px -10px rgba(69, 77, 58, 0.3);
    }
    .group:hover .card-img          { transform: scale(1.04); }
    .group:hover .read-more-arrow,
    .news-card:hover .read-more-arrow,
    .gallery-card:hover .read-more-arrow { transform: translateX(4px); }
    .group:hover .link-underline,
    .link-underline:hover           { box-shadow: 0 1px 0 0 currentColor; }
    .contact-channel:hover .channel-icon,
    .dept-card:hover .dept-icon     { transform: scale(1.06); }
    .media-card:hover .play-btn     { transform: scale(1.06); }
}
/* Cambios de color de hover: valen también en táctil */
.contact-channel:hover { border-color: #454d3a; }
.contact-channel:hover .channel-icon,
.dept-card:hover .dept-icon {
    background-color: #454d3a;
    color: #fff;
}
.media-card:hover,
.dept-card:hover { border-color: #454d3a; }
.media-card:hover .play-btn { background-color: #454d3a; }

/* ============================================
   BOTONES
   Hover: sube 2px. Press: se hunde rápido (120ms) y
   vuelve con la curva normal → respuesta asimétrica, firme.
   ============================================ */
.btn-spectacular {
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out),
                opacity var(--dur-fast) ease,
                background-color var(--dur-fast) ease,
                color var(--dur-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
    .btn-spectacular:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px -10px rgba(0,0,0,0.35);
    }
}
.btn-spectacular:active {
    transform: translateY(0) scale(0.97);
    transition-duration: var(--dur-press);
}
.btn-glow-pulse { animation: pulseGlow 2.6s ease-out infinite; }

.ripple-span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0.1);
    pointer-events: none;
    animation: ripple-anim 600ms var(--ease-out) forwards;
}

/* ============================================
   NAV LINK ANIMATED UNDERLINE (scaleX, sin layout)
   ============================================ */
.nav-link-anim { position: relative; }
.nav-link-anim::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--dur-hover) var(--ease-out);
}
.nav-link-anim:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}
/* El link activo ya tiene su borde: no duplicar la línea */
.nav-link-anim[aria-current="page"]::after { display: none; }

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-anim {
    transition: transform var(--dur-hover) var(--ease-out),
                background-color var(--dur-fast) ease,
                color var(--dur-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
    .social-anim:hover { transform: translateY(-3px); }
}
.social-anim:active { transform: scale(0.94); transition-duration: var(--dur-press); }

/* ============================================
   FORM INPUT ANIMATION (sin desplazar el campo)
   ============================================ */
.input-anim {
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.input-anim:focus {
    box-shadow: 0 4px 12px -4px rgba(69,77,58,0.2);
    outline: none;
}

/* ============================================
   SHEEN WRAP (transform en vez de left)
   ============================================ */
.sheen-wrap { position: relative; overflow: hidden; }
.sheen-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: translateX(-150%) skewX(-20deg);
    transition: transform 0.9s var(--ease-out);
    pointer-events: none;
}
.sheen-wrap:hover::after { transform: translateX(250%) skewX(-20deg); }

/* ============================================
   FILTER BUTTONS (diputados)
   ============================================ */
.filter-btn { transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.filter-btn.active { background-color: #454d3a; color: #ffffff; }

/* ============================================
   DECORATIVE GROWING LINES
   ============================================ */
.grow-line {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.8s var(--ease-out);
}
.grow-line.in-view { transform: scaleY(1); }

/* ============================================
   PRESS LOGOS (medios)
   ============================================ */
.press-logo {
    filter: grayscale(100%) opacity(0.5);
    transition: filter var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out);
}
.press-logo:hover { filter: grayscale(0%) opacity(1); }
@media (hover: hover) and (pointer: fine) {
    .press-logo:hover { transform: scale(1.04); }
}

/* ============================================
   MENÚ MOBILE (lo anima main.js; esto es solo el ícono)
   ============================================ */
#mobile-menu-btn .material-symbols-outlined { display: inline-block; }

/* ============================================
   TIMELINE (interior)
   ============================================ */
.timeline-item { position: relative; padding-left: 2rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 10px; height: 10px;
    background: #454d3a;
    border-radius: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px; top: 18px;
    width: 2px;
    height: calc(100% + 1.5rem);
    background: #c6c7bd;
}
.timeline-item:last-child::after { display: none; }

/* ============================================
   SINGLE POST
   ============================================ */
.post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #1b1c1c; }
.post-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0 0.5rem; color: #1b1c1c; }
.post-content p  { margin-bottom: 1.25rem; line-height: 1.7; }
.post-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content a  { color: #454d3a; text-decoration: underline; }
.post-content blockquote {
    border-left: 4px solid #f4dfcb;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #454840;
}
.post-content img { max-width: 100%; height: auto; margin: 1rem 0; }

/* ============================================
   TIKTOK — tarjetas con portada (inc/tiktok.php)
   ============================================ */
.tt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
}
@media (min-width: 768px) {
    .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tt-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 325px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #454d3a;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}
.tt-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tt-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(160deg, #5d6551, #2f3527);
}
.tt-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}
.tt-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.tt-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.tt-card__user {
    font-weight: 700;
    font-size: 0.875rem;
}
.tt-card__desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
@media (hover: hover) {
    .tt-card:hover .tt-card__img { transform: scale(1.04); }
    .tt-card:hover .tt-card__play { transform: scale(1.08); background: rgba(0, 0, 0, 0.6); }
}
.tt-card:focus-visible {
    outline: 3px solid #d7c3b0;
    outline-offset: 3px;
}


/* ============================================
   PAGINACIÓN (paginate_links type=list)
   ============================================ */
.exequiel-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.exequiel-pagination .page-numbers li > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #c6c7bd;
    color: #454d3a;
    font-weight: 700;
    font-size: 14px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.exequiel-pagination a.page-numbers:hover,
.exequiel-pagination a.page-numbers:focus-visible {
    border-color: #454d3a;
    background-color: #454d3a;
    color: #ffffff;
}
.exequiel-pagination .page-numbers.current {
    background-color: #454d3a;
    border-color: #454d3a;
    color: #ffffff;
}
.exequiel-pagination .page-numbers.dots { border-color: transparent; }

/* Formulario de búsqueda nativo de WP */
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-form .search-field {
    width: 100%;
    border: 1px solid #c6c7bd;
    background: #fcf9f8;
    padding: 0.75rem 1rem;
}
.search-form .search-submit {
    background: #454d3a;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 0 1.5rem;
    cursor: pointer;
}

/* ============================================
   SUBSCRIBE MODAL (popup de suscripción)
   ============================================ */
.sub-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sub-modal[hidden] { display: none; }
.sub-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 28, 28, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease both;
}
.sub-modal__card {
    width: 100%;
    max-width: 30rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
    animation: subModalIn 0.45s cubic-bezier(.22,1,.36,1) both;
}
.sub-modal__card:focus { outline: none; }
.sub-modal__icon { animation: popIn 0.6s cubic-bezier(.22,1,.36,1) 0.15s both; }
.sub-modal.is-closing .sub-modal__backdrop { animation: fadeIn 0.2s ease reverse both; }
.sub-modal.is-closing .sub-modal__card { animation: subModalOut 0.2s ease both; }
@keyframes subModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes subModalOut {
    to { opacity: 0; transform: translateY(12px) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
    .sub-modal__backdrop, .sub-modal__card, .sub-modal__icon,
    .sub-modal.is-closing .sub-modal__backdrop, .sub-modal.is-closing .sub-modal__card { animation: none; }
}

/* ============================================
   EXPERIENCIA MOBILE
   Solo cambia cómo se usa el sitio en el celular, no cómo se ve.
   ============================================ */

/* Saltos a secciones (#redes-sociales, #suscripcion): el título no queda
   tapado por el menú fijo, y el salto es suave. */
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Toque inmediato: sin la espera de "doble toque para zoom". */
a, button, [role="button"], label, input, select, textarea, summary {
    touch-action: manipulation;
}
/* Mantener presionado un control no selecciona su texto (el contenido sí). */
button, .btn-spectacular, .social-anim, .gallery-card, #mobile-menu-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Áreas táctiles de 44px sin cambiar el tamaño visible */
.social-anim { position: relative; }
.social-anim::before {
    content: '';
    position: absolute;
    inset: -3px;
}

@media (max-width: 767px) {
    /* Logo del menú: 28px de alto en celular (36px en computadora,
       igual que los botones de redes). */
    nav .site-logo { height: 28px; }

    /* Botón hamburguesa: de 53×28 a 48×48 de área táctil */
    #mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 48px;
        margin: -10px -12px -10px 0;
    }
    /* Links del menú mobile: 44px de alto; el espacio entre links pasa a
       ser parte del área táctil, así el menú mide casi lo mismo. */
    #mobile-menu > a {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
        margin-top: 0 !important;
    }
    #mobile-menu > a:first-child { margin-top: -0.5rem !important; }
    /* Links del pie: de 17px a ~41px de área táctil */
    footer nav a {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
        margin-top: 0 !important;
    }
    footer nav a::after { bottom: 0.7rem; }

    /* Menú superior que se esconde al bajar y vuelve al subir (main.js) */
    .anim-nav {
        transition: transform 280ms var(--ease-out);
    }
    .anim-nav.nav-hidden { transform: translateY(-100%); }

    /* ---- Carruseles del inicio (Novedades y TikTok) ----
       Se desliza de costado, cada tarjeta se acomoda sola, y se ve un
       pedazo de la siguiente para que se entienda que hay más. */
    /* "main" sube la prioridad por encima de la clase .grid de Tailwind */
    main .m-carousel {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2rem;
        overscroll-behavior-x: contain;
        margin-inline: -2rem;          /* de borde a borde de la pantalla */
        padding-inline: 2rem;
        padding-bottom: 0.25rem;       /* que no se corte la sombra */
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .m-carousel::-webkit-scrollbar { display: none; }
    .m-carousel > * {
        flex: 0 0 84%;
        scroll-snap-align: start;
        min-width: 0;
    }
    .m-carousel > *:only-child { flex-basis: 100%; }
    .m-carousel.tt-grid { justify-items: initial; }
    .m-carousel.tt-grid > .tt-card {
        flex-basis: 72%;
        max-width: none;
    }
    .m-carousel > .col-span-full { flex-basis: 100%; }
}

/* Respuesta al tocar tarjetas en pantallas táctiles (sin hover) */
@media (hover: none) {
    .news-card, .gallery-card, .tt-card {
        transition: transform 160ms var(--ease-out);
    }
    .news-card:active, .gallery-card:active, .tt-card:active {
        transform: scale(0.98);
        transition-duration: var(--dur-press);
    }
}

/* Visor de fotos (Cerca): en celular la foto usa todo el ancho y las
   flechas quedan encima. */
@media (max-width: 767px) {
    #lb-img { max-width: 100% !important; }
    #lightbox .lb-swipe-area { touch-action: pan-y; }
}

/* Mail y dirección de Contacto: se pueden tocar, se ven igual que antes */
.contact-link {
    color: inherit;
    text-decoration: none;
}
.contact-link:active { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
    .contact-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ============================================
   REDUCED MOTION
   Menos movimiento, no cero: se quitan desplazamientos, zooms y loops,
   pero se mantienen los fundidos y los cambios de color.
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal.in-view,
    .anim-hero-title,
    .anim-hero-subtitle {
        animation-name: fadeIn;
        animation-duration: 300ms;
        animation-timing-function: ease;
    }
    .anim-hero-bg,
    .hero-accent,
    .scroll-cue,
    .float-decor,
    .btn-glow-pulse { animation: none; }
    .ripple-span { display: none; }
    .news-card:hover, .gallery-card:hover, .media-card:hover, .dept-card:hover,
    .contact-channel:hover, .testimony-card:hover, .stat-card:hover,
    .btn-spectacular:hover, .btn-spectacular:active, .social-anim:hover, .social-anim:active,
    .group:hover .card-img, .group:hover .read-more-arrow,
    .news-card:hover .read-more-arrow, .gallery-card:hover .read-more-arrow,
    .contact-channel:hover .channel-icon, .dept-card:hover .dept-icon,
    .media-card:hover .play-btn, .press-logo:hover,
    .tt-card:hover .tt-card__img, .tt-card:hover .tt-card__play { transform: none; }
    .sheen-wrap::after { display: none; }
    .hero-home__media { transform: none; transition: none; }
    .news-card:active, .gallery-card:active, .tt-card:active { transform: none; }
    .anim-nav { transition: none; }
    .hero-home.poster-ready .scroll-cue { animation: fadeIn 300ms ease both; }
    .grow-line { transform: none; transition: none; }
}
