/* Fuentes propias (sin CDN de terceros): Great Vibes y Raleway, subconjunto latino */
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/great-vibes-400.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: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/raleway-variable.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: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/raleway-variable.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: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/raleway-variable.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: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/raleway-variable.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: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/raleway-variable.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;
}

/* ==========================================================================
   Emet Cake Shop
   Colores tomados de light.png (carbón, gris plata, taupe)
   y dark.png (carbón, malva, taupe).
   Tema por defecto: claro. Cada página lleva .tema-claro o .tema-oscuro en .sitio según su carpeta (/l/ o /d/).
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Tokens del tema claro (light.png)
   -------------------------------------------------------------------------- */
.sitio {
  --bg: #f5f3f1;
  --card: #ffffff;
  --ink: #373536;              /* carbón del círculo del logo */
  --ink-soft: #5e5a5b;
  --accent: #817564;           /* taupe del logo, para adornos */
  --accent-ink: #6b5f4e;       /* taupe más oscuro, para texto pequeño */
  --line: #d9d5d2;
  --btn-bg: #373536;
  --btn-ink: #f5f3f1;
  --btn-hover: #817564;
  --panel: #373536;
  --panel-ink: #f5f3f1;
  --panel-accent: #b3a68f;
  --panel-btn-bg: #f5f3f1;
  --panel-btn-ink: #373536;
  --footer-bg: #2b2a2b;
  --footer-ink: #d8d4d1;
  --footer-accent: #b3a68f;
  --shadow: 0 18px 40px -24px rgba(55, 53, 54, 0.45);

  color-scheme: light;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}


/* --------------------------------------------------------------------------
   2. Tokens del tema oscuro (dark.png)
   -------------------------------------------------------------------------- */
.sitio.tema-oscuro {
  --bg: #373536;
  --card: #433f41;
  --ink: #ebe7e4;
  --ink-soft: #c2bcb9;
  --accent: #856067;           /* malva del logo, para adornos */
  --accent-ink: #d4a9b4;       /* malva aclarado, para texto */
  --line: #5b5658;
  --btn-bg: #856067;
  --btn-ink: #fdf8f9;
  --btn-hover: #a06f78;
  --panel: #2c2a2b;
  --panel-ink: #ebe7e4;
  --panel-accent: #d4a9b4;
  --panel-btn-bg: #856067;
  --panel-btn-ink: #fdf8f9;
  --footer-bg: #2c2a2b;
  --footer-ink: #c2bcb9;
  --footer-accent: #d4a9b4;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}


/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: #f5f3f1;
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Lleva el color de fondo también al <body> en el tema oscuro */
body:has(.sitio.tema-oscuro) {
  background: #373536;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 400;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* Tipografía tipo "Emet" del logo */
.script {
  font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: 1.2em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent-ink);
}

.etiqueta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-ink);
}


/* --------------------------------------------------------------------------
   4. Emblema circular (recorta el círculo carbón de cada logo)
   Los porcentajes salen de medir el círculo dentro de cada PNG.
   -------------------------------------------------------------------------- */
.emblema {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #373536;
  box-shadow: var(--shadow);
}

.emblema img {
  position: absolute;
  max-width: none;
  height: auto;
}

.emblema--claro img {
  width: 108.34%;
  left: -6.23%;
  top: -1%;
}

.emblema--oscuro img {
  width: 105.9%;
  left: -1.67%;
  top: -0.44%;
}

/* Muestra solo el logo que corresponde al tema activo */
.emblema--oscuro {
  display: none;
}

.sitio.tema-oscuro .emblema--claro {
  display: none;
}

.sitio.tema-oscuro .emblema--oscuro {
  display: block;
}

.emblema--mini {
  width: 60px;
  box-shadow: none;
}


/* --------------------------------------------------------------------------
   5. Cabecera y selector de tema
   -------------------------------------------------------------------------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.marca {
  display: block;
  flex: none;
  text-decoration: none;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
}

.menu a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.menu a:hover {
  color: var(--accent-ink);
}

.selector-tema {
  display: inline-flex;
  flex: none;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.selector-tema a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.selector-tema svg {
  width: 16px;
  height: 16px;
}

.sitio.tema-claro .selector-tema a[data-tema="claro"],
.sitio.tema-oscuro .selector-tema a[data-tema="oscuro"] {
  background: var(--btn-bg);
  color: var(--btn-ink);
}


/* --------------------------------------------------------------------------
   6. Botones
   -------------------------------------------------------------------------- */
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.acciones--centro {
  justify-content: center;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.boton--principal {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}

.boton--principal:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}

.boton--secundario {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.boton--secundario:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Botones dentro del panel de pedidos */
.llamado .boton--principal {
  background: var(--panel-btn-bg);
  border-color: var(--panel-btn-bg);
  color: var(--panel-btn-ink);
}

.llamado .boton--principal:hover {
  background: var(--panel-accent);
  border-color: var(--panel-accent);
  color: var(--panel-btn-ink);
}

.llamado .boton--secundario {
  border-color: var(--panel-ink);
  color: var(--panel-ink);
}

.llamado .boton--secundario:hover {
  background: var(--panel-ink);
  color: var(--panel);
}


/* --------------------------------------------------------------------------
   7. Adornos (inspirados en el ornamento del logo)
   -------------------------------------------------------------------------- */
.ornamento {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  color: var(--accent);
}

.ornamento::before,
.ornamento::after {
  content: "";
  width: 72px;
  height: 1px;
  background: currentColor;
}

.ornamento svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* --------------------------------------------------------------------------
   8. Portada
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

.hero-texto .etiqueta {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

.lead {
  max-width: 36ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-logo {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

/* Anillo decorativo alrededor del logo */
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   9. Secciones
   -------------------------------------------------------------------------- */
.seccion {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 24px;
}

.seccion--centro {
  max-width: 760px;
  text-align: center;
}

.seccion--centro h2 {
  margin-top: 16px;
}

.texto-central {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.encabezado {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.encabezado h2 {
  margin-top: 16px;
}

/* Tarjetas con forma de arco, como un guiño a los círculos del logo */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.tarjeta {
  display: flex;
  flex-direction: column;
  padding: 56px 30px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 120px 120px 24px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.tarjeta .numero {
  display: block;
  margin-bottom: 14px;
  font-family: "Great Vibes", "Snell Roundhand", cursive;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-ink);
}

.tarjeta h3 {
  margin-bottom: 12px;
}

.tarjeta p {
  color: var(--ink-soft);
}

/* Pasos */
.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.paso {
  text-align: center;
}

.circulo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  font-family: "Great Vibes", "Snell Roundhand", cursive;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-ink);
}

.paso h3 {
  margin-bottom: 10px;
}

.paso p {
  color: var(--ink-soft);
}

/* Panel de pedidos */
.llamado {
  padding: 72px 40px;
  border-radius: 28px;
  background: var(--panel);
  color: var(--panel-ink);
  text-align: center;
  box-shadow: var(--shadow);
}

.llamado .etiqueta {
  color: var(--panel-accent);
}

.llamado h2 {
  margin: 16px 0 20px;
  color: var(--panel-ink);
}

.llamado .script {
  color: var(--panel-accent);
}

.llamado p:not(.etiqueta) {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--panel-ink);
  opacity: 0.85;
}


/* --------------------------------------------------------------------------
   10. Pie de página
   -------------------------------------------------------------------------- */
.pie {
  padding: 48px 24px 40px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  text-align: center;
}

.pie-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.pie-nombre .script {
  color: var(--footer-accent);
  font-size: 1.6em;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: -0.12em;
}

.pie-slogan {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--footer-accent);
}

.pie-legal {
  margin-top: 28px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.pie-legal a {
  color: inherit;
}


/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
    text-align: center;
  }

  .hero-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-logo {
    order: -1;
    width: min(78vw, 340px);
  }

  .lead {
    margin: 0 auto;
  }

  .acciones {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .cabecera {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .emblema--mini {
    width: 48px;
  }

  .menu {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 6px 22px;
  }

  .menu a {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .seccion {
    padding: 64px 16px;
  }

  .llamado {
    padding: 56px 22px;
  }

  .ornamento::before,
  .ornamento::after {
    width: 40px;
  }

  .tarjeta {
    padding: 48px 26px 30px;
  }
}

@media (max-width: 420px) {
  .acciones .boton {
    width: 100%;
  }
}

/* Versión del sitio (pie de página) */
.pie-version {
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.pie-version a {
  color: inherit;
}

/* Página de versiones */
.versiones {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.versiones h1 {
  margin: 16px 0;
}

.version-entrada {
  margin-top: 40px;
  padding: 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.version-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.version-numero {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.version-fecha {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.version-resumen {
  margin-top: 12px;
  color: var(--ink-soft);
}

.version-entrada ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.version-entrada li + li {
  margin-top: 6px;
}

.volver {
  margin-top: 40px;
  text-align: center;
}
