/* ==========================================================================
   Ebre Beauty — styles.css (reconstrucción estática, sin framework)
   ---------------------------------------------------------------------------
   Tokens del Bloque C del Harvest (src/styles.css original), en oklch con
   fallback hex aproximado en la línea anterior (calculado con el algoritmo
   Ottosson; ver scripts/oklch_to_hex.py). Nada de Tailwind: CSS plano.
   ========================================================================== */

/* ---------- Tokens de marca (Bloque C) ---------- */
:root {
  /* Paleta de marca */
  --brand-teal: #7d9fac;
  --brand-teal: oklch(0.683 0.042 223);
  --brand-rose: #deadb9;
  --brand-rose: oklch(0.795 0.06 2);
  --brand-white: #ffffff;
  --brand-white: oklch(1 0 0);
  --brand-teal-deep: #264b57;
  --brand-teal-deep: oklch(0.39 0.047 223);
  --brand-rose-deep: #87465a;
  --brand-rose-deep: oklch(0.48 0.09 2);

  /* Tokens semánticos */
  --color-primary: var(--brand-teal-deep);
  --color-accent: var(--brand-rose);
  --color-accent-foreground: #392027;
  --color-accent-foreground: oklch(0.28 0.04 2);
  --color-secondary: #fbebef;
  --color-secondary: oklch(0.954 0.018 2);
  --color-muted: #ebf4f7;
  --color-muted: oklch(0.961 0.01 223);
  --color-foreground: #1a2c32;
  --color-foreground: oklch(0.28 0.026 223);
  --color-muted-foreground: #475c64;
  --color-muted-foreground: oklch(0.46 0.028 223);
  --color-border: #cedbe0;
  --color-border: oklch(0.883 0.016 223);
  --color-ring: var(--brand-teal);
  --color-fondo: var(--brand-white);

  /* Tipografía (Cormorant Garamond headings 500 · Manrope body) */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Forma y efectos */
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-4xl: 2rem;
  --shadow-soft: 0 20px 50px -20px rgb(38 75 87 / 0.22);

  /* Velo del hero: overlay teal oklch(0.24 0.028 223) = #0f2229, 30% -> 78% */
  --velo-hero: linear-gradient(180deg,
      rgb(15 34 41 / 0.30) 0%,
      rgb(15 34 41 / 0.78) 100%);

  /* Estructura (header h-28 y max-w-6xl del original) */
  --cabecera-alto: 7rem;
  --ancho-contenido: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-foreground);
  background: var(--color-fondo);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: inherit;
}

h1 { font-size: clamp(2.75rem, 3vw + 2rem, 4.5rem); }
h2 { font-size: clamp(2.1rem, 2vw + 1.6rem, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* Enlaces sin color azul genérico ni subrayado por defecto (los estados
   con subrayado se declaran explícitamente donde interesan) */
a { color: inherit; text-decoration: none; }

/* Los anclajes aterran bajo la cabecera fija (scroll-margin-top 7rem original) */
[id] { scroll-margin-top: calc(var(--cabecera-alto) + 1rem); }

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-rose);
  color: var(--color-accent-foreground);
}

/* ---------- Utilidades ---------- */
.contenedor {
  max-width: var(--ancho-contenido);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* eyebrow (utilidad del original; letter-spacing 0.08em como refinamiento
   menor documentado en LANDING_NOTAS.md) */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-rose-deep);
  margin: 0 0 0.75rem;
}
.eyebrow-claro { color: var(--brand-rose); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
              color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--color-accent); color: var(--color-accent-foreground); }
.btn-accent:hover { background: var(--brand-rose-deep); color: #fff; }

.btn-outline-claro { border-color: rgb(255 255 255 / 0.7); color: #fff; background: transparent; }
.btn-outline-claro:hover { background: rgb(255 255 255 / 0.12); }

.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-muted); }

.btn-claro { background: #fff; color: var(--color-primary); }
.btn-claro:hover { background: var(--color-muted); }

.btn-grande { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* Enlace de salto (accesibilidad) */
.salto {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 600;
}
.salto:focus { left: 0; }

/* ---------- Cabecera (fixed, blur 90%, h-28) ---------- */
.cabecera {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.cabecera-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--cabecera-alto);
}
.logo { display: inline-flex; }
/* En móvil se acota para dejar aire al botón hamburguesa (máx. viewport - 8rem) */
.logo img { width: min(13rem, calc(100vw - 8rem)); height: auto; }

.boton-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
}
.boton-menu .icono-cerrar { display: none; }
.boton-menu[aria-expanded="true"] .icono-abrir { display: none; }
.boton-menu[aria-expanded="true"] .icono-cerrar { display: block; }

.navegacion {
  position: fixed;
  top: var(--cabecera-alto);
  left: 0;
  right: 0;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  display: none;
}
.navegacion.abierto { display: block; }
.navegacion ul { display: flex; flex-direction: column; gap: 0.25rem; }
.navegacion a {
  display: block;
  padding: 0.7rem 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.navegacion a:hover { background: var(--color-muted); color: var(--color-primary); }

/* ---------- Hero (100vh, foto + velo teal 30->78%) ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-velo { position: absolute; inset: 0; background: var(--velo-hero); }
.hero-contenido {
  position: relative;
  padding-block: calc(var(--cabecera-alto) + 3rem) 4rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.2rem;
  color: rgb(255 255 255 / 0.92);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Secciones genéricas (py-24) ---------- */
.seccion { padding-block: 6rem; }
.seccion-cabecera {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}

/* ---------- Nosotros (grid 2 col; foto spa redondeada 2rem) ---------- */
.nosotros-grid { display: grid; gap: 3rem; align-items: center; }
.nosotros-foto {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-4xl);
  box-shadow: var(--shadow-soft);
}
.nosotros-texto { font-size: 1.05rem; color: var(--color-muted-foreground); }
.cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  text-align: center;
}
.cifra-numero {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--color-primary);
}
.cifra-etiqueta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted-foreground);
}

/* ---------- Servicios (banda secondary/50, tarjetas 2xl) ---------- */
.seccion-servicios {
  background: #fdf4f7;
  background: color-mix(in srgb, var(--color-secondary) 50%, #fff);
}
.servicios-grid { display: grid; gap: 2rem; }
.tarjeta-servicio {
  background: #fff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.tarjeta-servicio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tarjeta-cuerpo {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.tarjeta-cuerpo h3 { margin: 0; }
.tarjeta-cuerpo p { margin: 0; color: var(--color-muted-foreground); flex: 1; }
.precio {
  align-self: flex-start;
  margin: 0.25rem 0 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-rose-deep);
  background: var(--color-secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.chips li {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

/* ---------- Agenda (CTA hacia la SPA de reservas /agenda/) ---------- */
.agenda-bloque { text-align: center; max-width: 40rem; }
.agenda-texto {
  font-size: 1.1rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}
.agenda-alt {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-muted-foreground);
}

/* ---------- Contacto (banda teal profundo, texto blanco) ---------- */
.seccion-contacto { background: var(--color-primary); color: #fff; }
.contacto-grid { display: grid; gap: 2.5rem; }
.contacto-lista { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.contacto-lista li { display: flex; align-items: flex-start; gap: 0.9rem; }
.contacto-lista svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--brand-rose);
}
.contacto-lista a { color: #fff; }

/* Mapa: se carga solo con consentimiento (RGPD; ver legal/cookies.html) */
.mapa {
  display: grid;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 18rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.25);
}
.mapa-aviso { place-self: center; text-align: center; padding: 2rem; }
.mapa-aviso p { color: rgb(255 255 255 / 0.85); font-size: 0.95rem; }
.mapa-aviso .btn { margin-top: 0.75rem; }
.mapa-marco { height: 100%; }
.mapa-marco iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
}

/* ---------- Redes (botones circulares h-14 w-14) ---------- */
.redes-bloque { text-align: center; }
.social { display: flex; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.social-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--color-muted);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-boton:hover {
  background: var(--color-secondary);
  color: var(--brand-rose-deep);
  transform: translateY(-2px);
}
.social-tt { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }

/* ---------- Pie (una línea © + enlaces legales, fix Bloque H) ---------- */
.pie { border-top: 1px solid var(--color-border); padding-block: 2rem; }
.pie-fila {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.pie p { margin: 0; font-size: 0.9rem; color: var(--color-muted-foreground); }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.pie-legal a {
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
}
.pie-legal a:hover { color: var(--color-primary); text-decoration: underline; }

/* ---------- Banner de cookies (antes ausente; Bloque H) ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 90;
  width: min(46rem, calc(100% - 2rem));
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-texto {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  flex: 1 1 24rem;
}
.cookie-texto a { color: var(--color-primary); font-weight: 600; }
.cookie-acciones { display: flex; gap: 0.75rem; flex: none; }

/* ---------- Marcas de contenido pendiente del cliente ----------
   Subrayado punteado (datos) y contorno discontinuo (imágenes) para que
   el contenido del checklist del Harvest sea localizable de un vistazo.
   Quitables con un solo grep cuando lleguen los datos reales. */
.dato-pendiente {
  border-bottom: 2px dotted var(--brand-rose-deep);
  cursor: help;
  text-decoration: none;
}
img.pendiente-img {
  outline: 2px dashed var(--brand-rose-deep);
  outline-offset: -2px;
}

/* ---------- Páginas de error (404/500) ---------- */
body.pagina-error {
  display: grid;
  min-height: 100vh;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--color-muted);
}
.error-contenido { max-width: 40rem; }
.error-logo { display: inline-block; margin-bottom: 2.5rem; }
.error-logo img { width: 13rem; height: auto; }
.error-codigo {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(5rem, 18vw, 8.5rem);
  line-height: 1;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}
.pagina-error h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.error-texto {
  color: var(--color-muted-foreground);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.error-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Páginas legales ---------- */
.legal-cabecera { border-bottom: 1px solid var(--color-border); }
.legal-cabecera .contenedor {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
}
.legal-logo img { width: 11rem; height: auto; }
.legal-articulo {
  max-width: 46rem;
  padding-block: 3.5rem 4.5rem;
}
.legal-articulo h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal-articulo h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 2.5rem;
}
.legal-nota {
  background: var(--color-muted);
  border-left: 4px solid var(--color-primary);
  padding: 0.9rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}
.bloque-pendiente {
  border: 2px dashed var(--brand-rose-deep);
  border-radius: var(--radius-lg);
  background: var(--color-secondary);
  padding: 1.25rem 1.5rem;
}
.bloque-pendiente p { margin: 0; font-weight: 500; }

/* ---------- Responsive (breakpoint md = 768px, como el original) ---------- */
@media (min-width: 768px) {
  .boton-menu { display: none; }
  .navegacion {
    position: static;
    background: none;
    border: 0;
    padding: 0;
    display: block;
  }
  .navegacion ul { flex-direction: row; gap: 1.5rem; }
  .navegacion a { padding: 0.5rem 0.25rem; background: none; }
  .navegacion a:hover { background: none; color: var(--color-primary); }
  .logo img { width: 20rem; }

  .nosotros-grid { grid-template-columns: 1fr 1fr; }
  .nosotros-foto { max-width: 30rem; }

  .servicios-grid { grid-template-columns: repeat(3, 1fr); }

  .contacto-grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .pie-fila { flex-direction: row; justify-content: space-between; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
