@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(cormorant-garamond.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(figtree.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

    :root {
      color-scheme: light;
      --crema: #f4ece1;
      --marfil: #fffbf2;
      --trigo: #e6d1b2;
      --cacao: #36281f;
      --cafe: #402d26;
      --acento: #735e4b;
      --contorno: #decbb5;
      --borde-foco: #815437;
      font-family: Figtree, 'Segoe UI', sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }

    body {
      min-height: 100svh;
      margin: 0;
      color: var(--cacao);
      background: radial-gradient(ellipse at 25% 8%, var(--crema), var(--trigo));
      padding: clamp(12px, 5.75vw, 31px) 16px;
    }

    .pagina {
      width: min(100%, 440px);
      margin-inline: auto;
      padding: 23px clamp(16px, 5.5vw, 28px) 20px;
      background: var(--crema);
      border: 1px solid var(--marfil);
      border-radius: 29px;
      box-shadow: 0 18px 55px rgb(64 45 38 / 15%);
      animation: aparecer .62s cubic-bezier(.2, .75, .3, 1) both;
    }

    @keyframes aparecer {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .marca {
      width: clamp(126px, 34vw, 150px);
      margin: 0 auto 13px;
      animation: entrar-marca .65s cubic-bezier(.2, .75, .3, 1) both;
    }
    .marca svg { display: block; width: 100%; height: auto; }
    .marca #marca { fill: var(--cacao); }
    .marca-destello { animation: destello 4s .34s ease-out infinite both; }

    @keyframes entrar-marca {
      from { opacity: 0; transform: translateY(6px) scale(.92); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes destello {
      0% { opacity: 0; transform: translateX(55px) skewX(-18deg); }
      5%, 18% { opacity: .9; }
      24%, 100% { opacity: 0; transform: translateX(1360px) skewX(-18deg); }
    }

    header h1, .lema, [data-carousel], .acciones, .pie {
      animation: aparecer .55s var(--entrada, .12s) cubic-bezier(.2, .75, .3, 1) both;
    }

    .lema { --entrada: .19s; }
    [data-carousel] { --entrada: .25s; }
    .acciones { --entrada: .33s; }
    .pie { --entrada: .4s; }

    h1 {
      margin: 0;
      text-align: center;
      font: 600 clamp(34px, 10.6vw, 51px)/.92 'Cormorant Garamond', Georgia, serif;
      letter-spacing: -.045em;
    }

    h1 span { display: block; color: var(--acento); }
    .lema { margin: 12px 0 19px; color: var(--acento); font-size: 14px; line-height: 1.45; text-align: center; }

    .marco-fotos {
      position: relative;
      overflow: hidden;
      aspect-ratio: 382 / 223;
      border: 1px solid rgb(115 94 75 / 12%);
      border-radius: clamp(19px, 5.5vw, 24px);
      background: var(--crema);
      touch-action: pan-y;
    }

    .marco-fotos::after {
      position: absolute;
      z-index: 2;
      inset: 0;
      border-radius: inherit;
      box-shadow: inset 0 0 7px 1px rgb(244 236 225 / 55%);
      pointer-events: none;
      content: '';
    }

    .foto { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
    .foto.is-active { opacity: 1; z-index: 1; }
    .foto img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.025); transition: transform 1.15s cubic-bezier(.2, .75, .3, 1); }
    .foto.is-active img { transform: scale(1); }

    .acciones {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
      margin-top: 16px;
    }

    .boton {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 54px;
      padding: 8px 5px;
      border: 1px solid var(--contorno);
      border-radius: 10px;
      color: var(--cacao);
      background: var(--marfil);
      text-align: center;
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.2;
      transition: color .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    }

    .boton svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--acento); }

    .principal {
      position: relative;
      grid-column: 1 / -1;
      min-height: 54px;
      padding-inline: 38px;
      border-color: var(--cafe);
      color: var(--marfil);
      background: var(--cafe);
      font-size: 16px;
    }

    .principal svg { width: 20px; height: 20px; color: inherit; }
    .principal .flecha { position: absolute; right: 16px; width: 17px; height: 17px; opacity: .82; }

    @media (hover: hover) {
      .boton:hover { transform: translateY(-2px); background: #fdf5e8; box-shadow: 0 4px 12px rgb(64 45 38 / 12%); }
      .principal:hover { background: #50382d; }
    }

    .boton:active { transform: translateY(1px); }
    :focus-visible { outline: 2px solid var(--borde-foco); outline-offset: 2px; }

    .presentacion {
      margin-top: 14px;
      color: var(--acento);
      text-align: center;
      font-size: 13px;
      line-height: 1.5;
    }

    .presentacion p { margin: 0; }

    .pie {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      text-align: center;
      gap: 5px 12px;
      margin-top: 14px;
      padding-top: 13px;
      border-top: 1px solid var(--contorno);
      color: var(--acento);
      font-size: 12.5px;
      line-height: 1.35;
    }

    .direccion { flex-basis: 100%; }
    .credito { font-size: 11.5px; }
    .credito a { color: var(--cacao); font-weight: 700; text-underline-offset: 2px; }

    .solo-lectores {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 425px) {
      .boton:not(.principal) { flex-direction: column; gap: 4px; font-size: 12.5px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .pagina, .marca, header h1, .lema, [data-carousel], .acciones, .pie { animation: none; }
      .marca-destello { display: none; }
      .foto, .foto img, .boton { transition: none; }
      .boton, .boton:hover, .boton:active { transform: none; }
    }
