/* ─────────────────────────────────────────────────────────────────────
   Eduardo Alessandro — Mobile-first redesign
   Optimizado para iPhone Safari (375px / 390px / 430px).
   Replantea por completo cada sección, no solo encoge el desktop.

   Breakpoints:
   - Tablet (≤1100px) — colapso suave a 1 columna
   - Mobile (≤768px)  — REDISEÑO completo
   - Small  (≤390px)  — afinaciones para iPhone
   ───────────────────────────────────────────────────────────────────── */

/* ===== Globales que aplican siempre ================================== */
html, body { overflow-x: hidden; }
body { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; }

/* iOS safe areas */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}


/* ===== TABLET (≤1100px) ============================================== */
@media (max-width: 1100px) {
  nav, header, section, footer { padding-left: 32px !important; padding-right: 32px !important; }

  [style*="grid-template-columns: 7fr 5fr"],
  [style*="gridTemplateColumns: '7fr 5fr'"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 1.6fr 1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 5fr 7fr"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns: 200px 1fr"],
  [style*="grid-template-columns: 140px 1fr"],
  [style*="grid-template-columns: 180px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  h1[style] { font-size: clamp(56px, 10vw, 110px) !important; }
  [style*="font-size: 80"], [style*="fontSize: 80"] { font-size: clamp(44px, 7vw, 64px) !important; }
  [style*="font-size: 200"], [style*="fontSize: 200"] { font-size: 96px !important; }

  [style*="column-count: 3"], [style*="columnCount: 3"] { column-count: 2 !important; }
}


/* ===== MOBILE (≤768px) — REDISEÑO COMPLETO =========================== */
@media (max-width: 768px) {

  /* ── Reset general ─────────────────────────────────────────────── */
  body { font-size: 16px; line-height: 1.6; }
  nav, header, section, footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Todos los grids → 1 columna */
  [style*="display: grid"],
  [style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  [style*="column-count"], [style*="columnCount"] { column-count: 1 !important; column-gap: 0 !important; }

  /* Flex space-between → permitir wrap centrado */
  [style*="justify-content: space-between"],
  [style*="justifyContent: 'space-between'"] {
    flex-wrap: wrap !important;
    gap: 14px !important;
  }

  /* Quitar hovers que confunden en touch */
  .ea-thumb:hover, .ea-card:hover { transform: none !important; }
  #testimonios:hover .ea-card { opacity: 1 !important; }
  #testimonios .ea-card:hover {
    transform: none !important; background: transparent !important;
    box-shadow: none !important; border-color: rgba(244,237,224,0.15) !important;
  }

  /* Inputs cómodos en touch (16px evita el zoom de iOS) */
  input, textarea, select { font-size: 16px !important; }


  /* ── Tipografía móvil — editorial pero legible ────────────────── */
  h1[style] {
    font-size: clamp(54px, 16vw, 84px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.025em !important;
  }
  h2[class*="ea-display"] {
    font-size: clamp(40px, 11vw, 56px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.02em !important;
  }
  h3[class*="ea-display"] { font-size: clamp(22px, 6vw, 30px) !important; }

  /* Tamaños inline grandes */
  [style*="font-size: 168"], [style*="fontSize: 168"] { font-size: 64px !important; }
  [style*="font-size: 96"],  [style*="fontSize: 96"]  { font-size: 44px !important; }
  [style*="font-size: 80"],  [style*="fontSize: 80"]  { font-size: 40px !important; }
  [style*="font-size: 72"],  [style*="fontSize: 72"]  { font-size: 38px !important; }
  [style*="font-size: 64"],  [style*="fontSize: 64"]  { font-size: 36px !important; }
  [style*="font-size: 55"],  [style*="fontSize: 55"]  { font-size: 32px !important; }
  [style*="font-size: 52"],  [style*="fontSize: '52"] { font-size: 32px !important; }
  [style*="font-size: 48"],  [style*="fontSize: 48"]  { font-size: 30px !important; }
  [style*="font-size: 44"],  [style*="fontSize: 44"]  { font-size: 28px !important; }
  [style*="font-size: 36"],  [style*="fontSize: 36"]  { font-size: 24px !important; }
  [style*="font-size: 32"],  [style*="fontSize: 32"]  { font-size: 22px !important; }
  [style*="font-size: 28"],  [style*="fontSize: 28"]  { font-size: 20px !important; }
  [style*="font-size: 24"],  [style*="fontSize: 24"]  { font-size: 18px !important; }
  [style*="font-size: 22"],  [style*="fontSize: 22"]  { font-size: 17px !important; }
  [style*="font-size: 18"],  [style*="fontSize: 18"]  { font-size: 16px !important; }
  [style*="font-size: 17"],  [style*="fontSize: 17"]  { font-size: 16px !important; }
  [style*="font-size: 16"],  [style*="fontSize: 16"]  { font-size: 15px !important; }
  [style*="font-size: 15"],  [style*="fontSize: 15"]  { font-size: 14.5px !important; }
  [style*="font-size: 14"],  [style*="fontSize: 14"]  { font-size: 14px !important; }
  [style*="font-size: 13"],  [style*="fontSize: 13"]  { font-size: 13.5px !important; }

  /* Quote decorativo gigante de la carta del editor */
  [style*="font-size: 200"], [style*="fontSize: 200"] {
    font-size: 120px !important; top: 0 !important; right: 12px !important; opacity: 0.06 !important;
  }


  /* ── Espaciado vertical de secciones ──────────────────────────── */
  [style*="padding: 120px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  [style*="padding: 88px"]  { padding-top: 56px !important; padding-bottom: 56px !important; }
  [style*="padding: 80px"]  { padding-top: 52px !important; padding-bottom: 52px !important; }
  [style*="padding: 64px"]  { padding-top: 44px !important; padding-bottom: 44px !important; }
  [style*="padding: 56px"]  { padding-top: 36px !important; padding-bottom: 36px !important; }

  [style*="margin-bottom: 64"], [style*="marginBottom: 64"] { margin-bottom: 32px !important; }
  [style*="margin-bottom: 56"], [style*="marginBottom: 56"] { margin-bottom: 28px !important; }
  [style*="margin-bottom: 48"], [style*="marginBottom: 48"] { margin-bottom: 24px !important; }
  [style*="margin-top: 56"],   [style*="marginTop: 56"]   { margin-top: 28px !important; }
  [style*="gap: 80"]  { gap: 32px !important; }
  [style*="gap: 64"]  { gap: 28px !important; }
  [style*="gap: 56"]  { gap: 24px !important; }
  [style*="gap: 48"]  { gap: 22px !important; }
  [style*="gap: 40"]  { gap: 20px !important; }


  /* ── HEADER: solo logo centrado ───────────────────────────────── */
  header[style*="grid-template-columns: 1fr auto 1fr"] {
    display: flex !important; flex-direction: column !important;
    gap: 0 !important; padding: 16px 20px 12px !important;
    text-align: center !important;
    border-bottom: 0 !important;
  }
  /* Ocultar issue # y fecha — pesan visualmente sin aportar */
  header[style*="grid-template-columns: 1fr auto 1fr"] > div:first-child,
  header[style*="grid-template-columns: 1fr auto 1fr"] > div:last-child {
    display: none !important;
  }
  header[style*="grid-template-columns: 1fr auto 1fr"] img {
    height: 198px !important; width: auto !important;
  }


  /* ── STICKY NAV: ocultar links largos, dejar solo idioma ──────── */
  nav[style*="position: sticky"] {
    padding: 8px 16px !important;
    border-bottom: 1px solid rgba(244,237,224,0.12) !important;
    justify-content: center !important;
    background: rgba(20,17,14,0.92) !important;
  }
  nav[style*="position: sticky"] > div:first-child {
    /* Anchor de scroll horizontal con los links — aún navegable */
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    gap: 18px !important;
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    flex-wrap: nowrap !important;
    max-width: calc(100vw - 90px);
    padding-right: 8px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  }
  nav[style*="position: sticky"] > div:first-child::-webkit-scrollbar { display: none; }
  nav[style*="position: sticky"] > div:first-child a {
    flex-shrink: 0 !important;
    white-space: nowrap;
  }
  nav[style*="position: sticky"] > div:last-child { flex-shrink: 0 !important; }


  /* ── HERO (Cover): vertical cinematográfico ───────────────────── */
  #cover {
    height: 100svh !important;
    min-height: 640px !important;
    max-height: 900px !important;
  }
  /* Gradiente superior + inferior más fuerte para legibilidad */
  #cover > div[style*="linear-gradient"] {
    background: linear-gradient(
      180deg,
      rgba(14,11,9,0.65) 0%,
      rgba(14,11,9,0.15) 22%,
      rgba(14,11,9,0.15) 42%,
      rgba(14,11,9,0.85) 78%,
      rgba(14,11,9,0.98) 100%
    ) !important;
  }
  /* Top labels (VOL XV / EDITORIAL DESDE 2009) */
  #cover > div[style*="top: 32"] {
    top: 18px !important; left: 20px !important; right: 20px !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: center !important;
    text-align: center !important;
    font-size: 9px !important;
  }
  #cover > div[style*="top: 32"] > div { font-size: 9px !important; letter-spacing: 0.22em !important; text-align: center !important; }
  #cover > div[style*="top: 32"] > div:last-child { display: none !important; }

  /* Bottom block: contenedor del título + CTA */
  #cover > div[style*="bottom: 56"] {
    bottom: 28px !important; left: 20px !important; right: 20px !important;
  }
  #cover > div[style*="bottom: 56"] > div:first-child {
    /* "DENTRO DE ESTE NÚMERO" label */
    margin-bottom: 14px !important;
    text-align: center !important;
    font-size: 9px !important; letter-spacing: 0.28em !important;
  }
  #cover h1 {
    font-size: clamp(64px, 19vw, 100px) !important;
    line-height: 0.86 !important;
    text-align: center !important;
    letter-spacing: -0.03em !important;
  }

  /* La grid 1.6fr 1fr 1fr (descripción + index + CTA) → reordenar */
  #cover > div[style*="bottom: 56"] > div[style*="display: grid"],
  #cover [style*="grid-template-columns: 1.6fr 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 28px !important;
    align-items: stretch !important;
  }
  /* Index P.001 — ocultarlo en móvil, ya está la nav */
  #cover [style*="grid-template-columns: 1.6fr 1fr 1fr"] > div.ea-mono {
    display: none !important;
  }
  /* Texto descriptivo más legible */
  #cover [style*="grid-template-columns: 1.6fr 1fr 1fr"] > p {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    opacity: 0.92;
  }
  /* CTA Reservar Fecha — ancho completo en móvil */
  #cover a[href="#contact"] {
    width: 100% !important;
    padding: 18px 24px !important;
    font-size: 12px !important;
    letter-spacing: 0.22em !important;
    text-align: center !important;
    justify-self: stretch !important;
    margin-top: 4px !important;
  }


  /* ── EDITOR LETTER (Carta del editor) ─────────────────────────── */
  #letter {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  /* Alinear todo a la izquierda — más editorial en móvil */
  #letter, #letter h2, #letter p, #letter .ea-mono { text-align: left !important; }
  #letter h2 {
    font-size: 44px !important;
    line-height: 1 !important;
    margin-top: 8px !important;
  }
  /* Pull quote (display 24px italic) */
  #letter p.ea-display {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-bottom: 24px !important;
  }
  /* Cuerpo en 1 columna, leading cómodo */
  #letter [style*="column-count: 2"], #letter [style*="columnCount: 2"] {
    column-count: 1 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
  #letter [style*="column-count: 2"] p, #letter [style*="columnCount: 2"] p { margin: 0 0 18px !important; }
  /* Footer "Si tienes una historia / GUADALAJARA · MMXXV" */
  #letter [style*="margin-top: 32"][style*="border-top"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  #letter [style*="margin-top: 32"][style*="border-top"] .ea-display {
    font-size: 19px !important;
  }


  /* ── STORIES: hero foto + thumbs apilados ─────────────────────── */
  #stories { padding-top: 64px !important; padding-bottom: 64px !important; }
  /* Header (P.012 + título + ver galería) */
  #stories > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 32px !important;
    gap: 16px !important;
  }
  #stories h2 { font-size: 44px !important; line-height: 1 !important; }
  /* La grid 7fr 5fr → 1 col */
  #stories > div[style*="display: grid"] {
    gap: 32px !important;
  }
  /* Bloque info debajo de la foto principal */
  #stories > div[style*="display: grid"] > div:first-child > div[style*="margin-top: 24"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  #stories h3 { font-size: 26px !important; line-height: 1.15 !important; }
  /* Thumbnails de "otras historias" — convertir cada uno a card horizontal limpia */
  #stories .ea-thumb {
    grid-template-columns: 110px 1fr !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 12px !important;
    margin: 0 -12px !important;
    border-radius: 4px;
  }
  #stories .ea-thumb:active { background: rgba(244,237,224,0.04); }
  #stories .ea-thumb .ea-display { font-size: 19px !important; margin: 4px 0 !important; }
  #stories .ea-thumb .ea-sans { font-size: 13px !important; }


  /* ── GALLERY: 1 columna instagram ─────────────────────────────── */
  #gallery { padding-top: 64px !important; padding-bottom: 64px !important; }
  /* Header */
  #gallery > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
  }
  #gallery h2 { font-size: 44px !important; line-height: 1 !important; }

  /* Filter chips — scroll horizontal, no wrap */
  #gallery > div[style*="flex-wrap: wrap"] {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    margin: 0 -20px 32px !important;
    padding: 0 20px 16px !important;
    border-bottom: 1px solid rgba(244,237,224,0.12) !important;
    gap: 8px !important;
  }
  #gallery > div[style*="flex-wrap: wrap"]::-webkit-scrollbar { display: none; }
  #gallery > div[style*="flex-wrap: wrap"] button {
    flex-shrink: 0 !important;
    padding: 9px 16px !important;
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    border-radius: 999px !important;
  }

  /* Grid masonry → stack vertical full-bleed */
  #gallery > div[style*="column-count"] {
    column-count: 1 !important;
    margin: 0 -20px !important;  /* edge-to-edge */
  }
  #gallery > div[style*="column-count"] > a {
    margin: 0 0 32px !important;
    display: block !important;
  }
  #gallery > div[style*="column-count"] figcaption {
    padding: 0 20px !important;
    margin-top: 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
  }
  /* CTA "Ver más historias" */
  #gallery a[href="galeria.html"][style*="background"] {
    width: calc(100% - 0px) !important;
    text-align: center !important;
    padding: 18px 24px !important;
  }
  #gallery > div[style*="margin-top: 48"] { margin-top: 32px !important; }


  /* ── ABOUT: foto edge-to-edge + texto ─────────────────────────── */
  #about { padding-top: 64px !important; padding-bottom: 64px !important; }
  #about h2 {
    font-size: 42px !important;
    line-height: 1 !important;
    margin-bottom: 36px !important;
  }
  /* Grid 5fr 7fr → 1 col, foto primero edge-to-edge */
  #about > div[style*="display: grid"] {
    margin: 0 -20px !important;
    gap: 32px !important;
  }
  #about > div[style*="display: grid"] > div:first-child {
    padding: 0 20px;
  }
  #about > div[style*="display: grid"] > div:first-child > .ea-mono {
    margin-top: 12px !important;
  }
  #about > div[style*="display: grid"] > div:last-child {
    padding: 0 20px;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
  #about p { margin-bottom: 14px !important; }
  /* Stats grid: 4 col → 2x2 */
  #about [style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
  }
  #about [style*="repeat(4"] [style*="font-size: 64"] {
    font-size: 44px !important;
  }


  /* ── SERVICES: cards verticales con hairline rojo ─────────────── */
  #services { padding-top: 64px !important; padding-bottom: 64px !important; }
  #services h2 {
    font-size: 42px !important;
    line-height: 1 !important;
    margin-bottom: 32px !important;
  }
  #services > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  /* Cada servicio: padding generoso, número grande, arrow grande */
  #services a.ea-link {
    grid-template-columns: 44px 1fr 24px !important;
    padding: 24px 0 !important;
    align-items: center !important;
    gap: 16px !important;
  }
  #services a.ea-link h3 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  #services a.ea-link h3 > span:last-child {
    font-size: 14px !important;
    color: #e21e26 !important;
  }
  #services a.ea-link p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin: 6px 0 0 !important;
    opacity: 0.7 !important;
  }
  /* Arrow indicador a la derecha */
  #services a.ea-link::after {
    content: '→';
    color: #e21e26;
    font-size: 18px;
    opacity: 0.7;
  }


  /* ── PRESS / RECONOCIMIENTOS: 2x3 grid limpio ────────────────── */
  section:not([id]) [style*="repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  section:not([id]) [style*="repeat(5"] > div .ea-display {
    font-size: 18px !important;
  }
  section:not([id]) [style*="repeat(5"] > div .ea-mono {
    font-size: 9px !important; line-height: 1.4 !important;
  }


  /* ── REVIEWS / TESTIMONIOS ───────────────────────────────────── */
  #testimonios { padding-top: 60px !important; padding-bottom: 60px !important; }
  #testimonios h2 { font-size: 42px !important; line-height: 1 !important; }
  /* Grid 2 col → 1 col, sin bordes laterales */
  #testimonios [style*="repeat(2"] { grid-template-columns: 1fr !important; }
  #testimonios blockquote {
    padding: 28px 0 28px !important;
    border-right: 0 !important;
    padding-left: 0 !important;
  }
  #testimonios blockquote p.ea-display {
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }
  #testimonios blockquote .ea-display[style*="font-size: 64"] {
    font-size: 44px !important;
    margin-bottom: 8px !important;
  }
  /* Reviews expandidas (componente custom) */
  #testimonios .ea-card {
    padding: 22px !important;
  }


  /* ── FAQ ──────────────────────────────────────────────────────── */
  #faq { padding-top: 56px !important; padding-bottom: 56px !important; }
  #faq h2 { font-size: 38px !important; line-height: 1 !important; margin-bottom: 24px !important; }
  #faq button.ea-display {
    font-size: 16.5px !important;
    padding: 16px 0 !important;
    line-height: 1.35 !important;
  }
  #faq button.ea-display > span:last-child { font-size: 22px !important; }
  #faq p.ea-sans {
    font-size: 14px !important;
    line-height: 1.65 !important;
    padding: 0 0 18px !important;
  }


  /* ── CONTACT ──────────────────────────────────────────────────── */
  #contact { padding-top: 60px !important; padding-bottom: 60px !important; }
  #contact h2 {
    font-size: clamp(56px, 16vw, 84px) !important;
    line-height: 0.92 !important;
    margin-bottom: 18px !important;
  }
  #contact > p.ea-sans { font-size: 15px !important; line-height: 1.6 !important; margin-bottom: 36px !important; }
  /* Grid 7fr 5fr → 1 col */
  #contact > div[style*="display: grid"] { gap: 36px !important; }
  /* Form: cada par de inputs apila */
  #contact form > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #contact form { gap: 22px !important; }
  /* Botón submit ancho completo */
  #contact button[type="submit"] {
    width: 100% !important;
    padding: 18px 24px !important;
    text-align: center !important;
    justify-content: center !important;
  }
  #contact form > div[style*="display: flex"][style*="flex-wrap: wrap"]:last-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  #contact form > div[style*="display: flex"][style*="flex-wrap: wrap"]:last-child > span {
    text-align: center !important;
  }
  /* Aside contacto directo */
  #contact aside { gap: 28px !important; }
  #contact aside .ea-display[style*="font-size: 28"] { font-size: 22px !important; }
  #contact aside .ea-display[style*="font-size: 22"] { font-size: 18px !important; }


  /* ── FOOTER ───────────────────────────────────────────────────── */
  footer { padding: 48px 20px 32px !important; }
  footer img { width: 80% !important; max-width: 320px !important; }
  footer .ea-mono {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
    text-align: center !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
  }


  /* ── WHATSAPP FLOTANTE: solo icono circular ──────────────────── */
  a[href*="api.whatsapp.com"][style*="position: fixed"] {
    bottom: 20px !important;
    right: 16px !important;
    padding: 0 !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 8px rgba(37,211,102,0.4) !important;
    gap: 0 !important;
    font-size: 0 !important; /* esconder texto */
    transition: transform .25s ease, box-shadow .25s ease !important;
  }
  a[href*="api.whatsapp.com"][style*="position: fixed"]:active {
    transform: scale(0.94) !important;
  }
  a[href*="api.whatsapp.com"][style*="position: fixed"] svg {
    width: 26px !important;
    height: 26px !important;
    color: #fff !important;
  }
  /* Pulse sutil para llamar la atención sin ser molesto */
  @keyframes ea-wa-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 8px rgba(37,211,102,0.4); }
    50%      { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 16px rgba(37,211,102,0.7); }
  }
  a[href*="api.whatsapp.com"][style*="position: fixed"] {
    animation: ea-wa-pulse 2.4s ease-in-out infinite;
  }


  /* ── PHOTO PLACEHOLDERS — aspect más alto en móvil ────────────── */
  /* No imponer max-height arbitrario: las fotos deben ser protagonistas */
  [style*="aspect-ratio: 4/5"], [style*="aspectRatio: '4/5'"] { max-height: none !important; }
  [style*="aspect-ratio: 3/4"], [style*="aspectRatio: '3/4'"] { max-height: none !important; }


  /* ── Page-specific: galeria.html / post.html / servicio.html ──── */
  /* Pagination */
  [style*="display: flex"][style*="margin-top: 56"] button.ea-mono {
    padding: 10px 12px !important;
    font-size: 10px !important;
    min-width: 36px !important;
  }

  /* post.html — sticky topbar de 3 columnas */
  header[style*="position: sticky"][style*="justify-content: space-between"] {
    padding: 12px 16px !important;
    gap: 8px !important;
  }
  header[style*="position: sticky"][style*="justify-content: space-between"] > a {
    font-size: 10px !important;
    letter-spacing: 0.16em !important;
  }
  header[style*="position: sticky"][style*="justify-content: space-between"] > div.ea-display {
    font-size: 14px !important;
  }
  /* post.html body */
  .post-body { padding: 0 20px 60px !important; gap: 32px !important; }
  .post-photos { gap: 14px !important; }
  .post-text { padding-right: 0 !important; }
  /* post.html prev/next */
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px 20px 56px !important;
  }
  .grid-2col a[style*="text-align: right"] {
    text-align: left !important;
  }
  .grid-2col .ea-display { font-size: 24px !important; }

  /* Lightbox: posiciones más compactas */
  .lb-close { top: 14px !important; right: 16px !important; font-size: 28px !important; }
  .lb-prev, .lb-next { padding: 14px !important; font-size: 28px !important; }
  .lb-prev { left: 4px !important; }
  .lb-next { right: 4px !important; }
}


/* ===== iPhone (≤430px) — afinaciones finales ========================= */
@media (max-width: 430px) {
  nav, header, section, footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body { font-size: 15.5px; }

  /* Header: logo un pelín menos para dejar más aire al hero */
  header[style*="grid-template-columns: 1fr auto 1fr"] img {
    height: 171px !important;
  }

  /* Hero title: que entre cómodo */
  #cover h1 { font-size: clamp(56px, 18vw, 88px) !important; }

  /* H2 secciones */
  #stories h2, #gallery h2, #about h2, #services h2, #testimonios h2 {
    font-size: 38px !important;
  }
  #faq h2 { font-size: 34px !important; }
  #contact h2 { font-size: clamp(50px, 16vw, 76px) !important; }

  /* Editor letter pull-quote */
  #letter h2 { font-size: 38px !important; }
  #letter p.ea-display { font-size: 20px !important; }

  /* Cuerpo de párrafo más reposado */
  #letter [style*="column-count: 2"], #letter [style*="columnCount: 2"] {
    font-size: 14.5px !important;
  }

  /* Stats 2x2 en pantallas chicas */
  #about [style*="repeat(4"] [style*="font-size: 64"] { font-size: 38px !important; }
}


/* ===== iPhone SE / pantallas muy pequeñas (≤360px) =================== */
@media (max-width: 360px) {
  nav, header, section, footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  header[style*="grid-template-columns: 1fr auto 1fr"] img { height: 64px !important; }
  #cover h1 { font-size: clamp(48px, 17vw, 72px) !important; }
}


/* ===== Mobile: galería del home → solo 3 fotos ======================= */
@media (max-width: 768px) {
  .ea-gallery-home .ea-card:nth-child(n+4) { display: none !important; }
}


/* ===== Mobile: fotos más pequeñas (override) ========================= */
/* User feedback: las fotos en móvil dominan demasiado. */
/* Las reducimos a un tamaño "magazine inset" centrado. */
@media (max-width: 768px) {
  /* Cover hero: bajar la altura para que no domine la viewport */
  #cover { height: 70vh !important; min-height: 480px !important; }

  /* Photo placeholders en single-column: 78% ancho centrado */
  #stories [style*="aspect-ratio: 4/5"],
  #stories [style*="aspectRatio: '4/5'"],
  #gallery [style*="aspect-ratio: 4/5"],
  #gallery [style*="aspectRatio: '4/5'"],
  #gallery [style*="aspect-ratio: 3/4"],
  #gallery [style*="aspectRatio: '3/4'"],
  #about [style*="aspect-ratio: 4/5"],
  #about [style*="aspectRatio: '4/5'"] {
    max-width: 78% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-height: 60vh !important;
  }

  /* Stories thumbnails (140px en grid) → reducir a 96px en móvil */
  #stories [style*="grid-template-columns: 140px 1fr"],
  #stories [style*="gridTemplateColumns: '140px 1fr'"] {
    grid-template-columns: 96px 1fr !important;
    gap: 12px !important;
  }
  #stories [style*="grid-template-columns: 140px 1fr"] [style*="aspect-ratio: 4/5"],
  #stories [style*="grid-template-columns: 140px 1fr"] [style*="aspectRatio: '4/5'"],
  #stories [style*="gridTemplateColumns: '140px 1fr'"] [style*="aspect-ratio: 4/5"],
  #stories [style*="gridTemplateColumns: '140px 1fr'"] [style*="aspectRatio: '4/5'"] {
    max-width: 100% !important;  /* dentro del thumbnail respeta el grid */
  }

  /* Post photos (página de detalle) — un poco más reposadas */
  .post-photos .post-photo-figure { max-width: 92% !important; margin-left: auto !important; margin-right: auto !important; }
}

@media (max-width: 430px) {
  #cover { height: 60vh !important; min-height: 420px !important; }
  #stories [style*="aspect-ratio: 4/5"],
  #stories [style*="aspectRatio: '4/5'"],
  #gallery [style*="aspect-ratio: 4/5"],
  #gallery [style*="aspectRatio: '4/5'"],
  #about [style*="aspect-ratio: 4/5"],
  #about [style*="aspectRatio: '4/5'"] {
    max-width: 82% !important;
    max-height: 58vh !important;
  }
}


/* ===== Pantallas muy grandes ========================================= */
@media (min-width: 1600px) {
  body { font-size: 17px; }
}
