/* ===========================================================
   TCuida Torrevieja — hoja de estilos
   Sistema de diseño: papel cálido · arena · dorado apagado
   Referencia de estilo: retail premium (Zara Home).
   Luz, aire, foto grande, tipografía fina y aristas rectas.
   =========================================================== */

:root {
  /* Fondos, de más claro a más cálido */
  --paper: #fdfcfa;
  --paper-2: #f8f5f0;
  --sand: #f2ede4;
  --sand-2: #e9e1d5;

  /* Líneas */
  --hairline: #e6ded2;
  --stone: #d8cec0;

  /* Texto */
  --ink: #2a2622;
  --ink-soft: #6f665c;
  --ink-mute: #9a9083;

  /* Acento de marca */
  --gold: #b08d57;
  --gold-deep: #8a6c3e;
  --gold-wash: #f4eddf;

  --white: #ffffff;
  --focus: #2f6fed;

  /* Alias heredados: mantienen compatibilidad con el marcado existente */
  --cream: var(--sand);
  --cream-2: var(--sand-2);
  --line: var(--hairline);
  --gold-soft: var(--gold-wash);
  --gold-dark: var(--gold);
  --gold-darker: var(--gold-deep);

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Raleway", "Segoe UI", Arial, sans-serif;

  /* Aristas rectas: el redondeo es lo que abarataba el conjunto */
  --radius: 0;
  --radius-lg: 0;
  --shadow: none;
  --container: 1600px;
  --gutter: 40px;

  color-scheme: light;
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* <picture> es inline por defecto: dentro de un contenedor con proporción fija
   tiene que comportarse como bloque para que la foto lo llene entero. */
.hero-media picture,
.card-media picture,
.split-media picture,
.figure-band picture,
.quote-band > picture {
  display: block;
  width: 100%;
  height: 100%;
}

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1.1em;
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

blockquote {
  margin: 0;
}

/* ---------- Accesibilidad: foco visible ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 0.9em 1.4em;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 104px 0;
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }
}

.section-cream {
  background: var(--sand);
}

.section-paper {
  background: var(--paper-2);
}

.section-header {
  max-width: 760px;
  margin: 0 0 64px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 2.9vw, 3.1rem);
  margin-bottom: 0.45em;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Filete decorativo bajo los titulares centrados */
.section-header.center h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: var(--stone);
  margin: 26px auto 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--stone);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Sobre fondos claros ya no hace falta un botón "para oscuro":
   se mantiene la clase para no romper el marcado existente. */
.btn-outline-light {
  background: transparent;
  border-color: var(--stone);
  color: var(--ink);
}

.btn-outline-light:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.68rem;
}

/* Enlace tipo editorial, con filete bajo el texto */
.link-line {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--stone);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.link-line:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  /* Por encima de la capa oscura (850): el menú movil cuelga de aquí y,
     al crear la cabecera su propio contexto de apilamiento, el z-index
     interno del menú no cuenta frente al resto de la página. */
  z-index: 900;
  background: rgba(253, 252, 250, 0.94);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 961px) {
  .site-header {
    backdrop-filter: saturate(120%) blur(8px);
  }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

/* Logotipo horizontal: alto fijo y ancho proporcional */
.brand img {
  height: 46px;
  width: auto;
  border-radius: 0;
  object-fit: contain;
}

@media (max-width: 480px) {
  .brand img {
    height: 38px;
  }
}

.brand-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.main-nav li.has-children {
  position: relative;
}

.main-nav .submenu {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 961px) {
  .main-nav .submenu {
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 250px;
    background: var(--paper);
    border: 1px solid var(--hairline);
    padding: 10px;
    z-index: 50;
  }

  .main-nav li.has-children:hover .submenu,
  .main-nav li.has-children:focus-within .submenu {
    display: flex;
  }

  .main-nav .submenu a {
    border-bottom: none;
    padding: 10px 12px;
    white-space: nowrap;
    letter-spacing: 0.1em;
  }

  .main-nav .submenu a:hover {
    background: var(--sand);
  }
}

@media (max-width: 960px) {
  .main-nav .submenu {
    display: flex;
    padding-left: 16px;
    margin-bottom: 6px;
  }

  .main-nav .submenu a {
    border-bottom: none;
    padding: 10px 4px;
    font-size: 0.68rem;
    color: var(--ink-soft);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.phone-link svg {
  flex-shrink: 0;
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stone);
  border-radius: 0;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    z-index: 900;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--paper);
    border-left: 1px solid var(--hairline);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 104px 30px 30px;
    overflow-y: auto;
  }

  .main-nav[data-open="true"] {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .phone-link .phone-text {
    display: none;
  }
}

@media (max-width: 620px) {
  .header-actions .btn {
    display: none;
  }
  .brand-text {
    font-size: 1.15rem;
  }
  .brand-text span {
    font-size: 0.52rem;
  }
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 38, 34, 0.28);
  z-index: 850;
}

.nav-backdrop[data-open="true"] {
  display: block;
}

/* ---------- Hero: texto a la izquierda, foto a sangre a la derecha ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: stretch;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.hero-copy {
  display: flex;
  align-items: center;
  padding: clamp(56px, 7vw, 104px) clamp(28px, 5vw, 72px) clamp(56px, 7vw, 104px)
    max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.hero-copy-inner {
  max-width: 38rem;
}

/* Con la página a 1600 px hay que frenar la longitud de línea a mano */
.split p,
.two-col p,
.two-col li {
  max-width: 62ch;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 4.1rem);
  line-height: 1.12;
  margin-bottom: 0.5em;
}

.hero .lede {
  font-size: 1.06rem;
  max-width: 46ch;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 52px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
}

.hero-stats > div {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--hairline);
}

.hero-stats > div:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-media {
  position: relative;
  min-height: clamp(360px, 62vh, 680px);
  background: var(--sand);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    order: 2;
    padding: 48px var(--gutter) 56px;
  }
  .hero-media {
    order: 1;
    min-height: 58vw;
  }
  .hero-stats > div {
    padding-right: 22px;
    margin-right: 22px;
  }
}

/* ---------- Franja de garantías bajo el hero ---------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 34px 30px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.trust-item h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
}

.trust-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-item {
    padding: 26px 22px;
    border-bottom: 1px solid var(--hairline);
  }
  .trust-item:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }
  .trust-item:nth-child(2n + 1) {
    padding-left: 0;
  }
  .trust-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-item {
    padding: 22px 0;
    border-right: 0;
  }
  .trust-item:last-child {
    border-bottom: 0;
  }
}

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  background: var(--sand);
  border-bottom: 1px solid var(--hairline);
  padding: 64px 0 60px;
}

.page-hero .eyebrow {
  color: var(--gold-deep);
}

.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  max-width: 20ch;
}

.page-hero .lede {
  color: var(--ink-soft);
  max-width: 62ch;
}

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--stone);
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold-deep);
}

/* Banda de imagen a sangre (cabecera de categoría, separadores) */
.figure-band {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 21 / 7;
}

.figure-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .figure-band {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Tarjetas de categoría con foto ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 36px;
}

@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: none;
}

.category-card:hover {
  transform: none;
  box-shadow: none;
  color: var(--ink);
}

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
  margin-bottom: 22px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover .card-media img,
.category-card:focus-visible .card-media img {
  transform: scale(1.045);
}

.category-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.category-card .card-link {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--stone);
  align-self: flex-start;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.category-card:hover .card-link {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* Icono heredado dentro de tarjeta (por si alguna no lleva foto) */
.category-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--gold-wash);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* ---------- Listado de tratamientos ---------- */
.treatment-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.treatment {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  padding: 32px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  align-items: start;
}

.treatment .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.treatment h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.treatment p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 0.98rem;
  max-width: 72ch;
}

@media (max-width: 560px) {
  .treatment {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------- Bloque partido: texto + foto ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.split-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}

.split-media.wide {
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-media {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Franja sensorial con cita ---------- */
.quote-band {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--sand);
  min-height: clamp(340px, 46vw, 520px);
  display: grid;
}

.quote-band > picture,
.quote-band > img {
  grid-area: 1 / 1;
}

.quote-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-band .quote-inner {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px var(--gutter);
  background: rgba(253, 252, 250, 0.72);
}

.quote-band blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  max-width: 22ch;
  color: var(--ink);
}

.quote-band cite {
  display: block;
  margin-top: 22px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Franja "por qué elegirnos" ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 36px;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item h3 {
  font-size: 1.12rem;
  margin-bottom: 0;
}

.why-item p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ---------- Ubicaciones ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

/* Un único centro: la ficha no debe estirarse a todo el ancho */
.locations-grid.single {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

.location-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 34px 30px;
}

.location-card h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.location-card address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.location-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.location-card a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--stone);
  padding-bottom: 3px;
}

.location-card a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.tag-soon {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  background: var(--sand);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: 0;
  margin-top: 6px;
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--paper);
  border: 1px solid var(--stone);
  color: var(--ink);
  border-radius: 0;
  padding: clamp(38px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--ink-soft);
  margin-bottom: 0;
  max-width: 48ch;
}

/* ---------- Formulario ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field .required {
  color: var(--gold-deep);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--stone);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: 10px;
}

.alert {
  padding: 18px 22px;
  border-radius: 0;
  margin-bottom: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-success {
  background: #eef3ea;
  color: #3c5c34;
  border: 1px solid #cfdec7;
}

.alert-error {
  background: #f8ece8;
  color: #8a4436;
  border: 1px solid #e8cabf;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Info de contacto ---------- */
.contact-info-list {
  list-style: none;
  display: grid;
  gap: 26px;
}

.contact-info-list li {
  display: flex;
  gap: 18px;
}

.contact-info-list .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.contact-info-list p,
.contact-info-list a {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.map-frame {
  border: 1px solid var(--hairline);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sand);
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding: 76px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--stone);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  border-radius: 0;
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.site-footer p {
  font-size: 0.93rem;
  max-width: 40ch;
}

.site-footer h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 0.93rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
}

.site-footer a:hover {
  color: var(--gold-deep);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-row a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
}

.footer-bottom a {
  color: var(--ink-mute);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

/* ---------- Utilidades ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--ink-soft);
  padding: 7px 15px;
  border-radius: 0;
}

.prose {
  max-width: 78ch;
  margin-inline: auto;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-top: 1.6em;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.4em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 600;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(37, 211, 102, 0.75);
  transition: background 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover {
  background: #1da851;
  color: #ffffff;
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* El WhatsApp de la cabecera, en verde para distinguirlo del fijo */
.whatsapp-link svg {
  color: #25d366;
}

/* Con dos teléfonos la cabecera se aprieta antes: el texto cae en tablet */
@media (max-width: 1120px) {
  .header-actions {
    gap: 12px;
  }
  .whatsapp-link .phone-text {
    display: none;
  }
}

/* ---------- Equipo ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 28px;
}

/* Seis fichas en una sola fila en escritorio; si no caben, las que
   bajen quedan centradas en vez de alineadas a la izquierda. */
.team-card {
  margin: 0;
  flex: 0 1 calc((100% - 5 * 28px) / 6);
  min-width: 180px;
}

@media (max-width: 1200px) {
  .team-card {
    flex-basis: calc((100% - 2 * 28px) / 3);
  }
}

@media (max-width: 620px) {
  .team-card {
    flex-basis: calc((100% - 28px) / 2);
    min-width: 140px;
  }
}

.team-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand-2);
  margin-bottom: 18px;
}

.team-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.12rem;
  margin-bottom: 2px;
}

.team-card p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Galería deslizable del centro ---------- */
.gallery {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
  padding-bottom: 16px;
}

.gallery:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.gallery::-webkit-scrollbar {
  height: 4px;
}

.gallery::-webkit-scrollbar-thumb {
  background: var(--stone);
}

/* El carrusel arranca alineado con el contenedor y se va a sangre por la derecha */
.gallery-track {
  display: flex;
  gap: 18px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  width: max-content;
}

.gallery-item {
  flex: 0 0 clamp(240px, 20vw, 330px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand-2);
  scroll-snap-align: start;
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-hint {
  display: none;
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* En móvil la foto ocupa casi toda la pantalla y asoma la siguiente,
   para que se vea de un vistazo que la galería se desliza. */
@media (max-width: 760px) {
  .gallery-item {
    flex-basis: 74vw;
  }
  .gallery-track {
    gap: 12px;
  }
  .gallery-hint {
    display: block;
  }
}

/* ===========================================================
   Consentimiento de cookies
   =========================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -14px 40px -22px rgba(42, 38, 34, 0.5);
  animation: cookie-sube 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookie-sube {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-banner-texto h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.cookie-banner-texto p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 74ch;
}

.cookie-banner-legal {
  margin-top: 6px !important;
  font-size: 0.8rem !important;
}

.cookie-banner-botones {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Botón de texto, para "Configurar" y "Gestionar cookies" del pie */
.cookie-link {
  background: none;
  border: 0;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--stone);
  cursor: pointer;
}

.cookie-link:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.footer-bottom .cookie-link {
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
  border-bottom-color: transparent;
}

@media (max-width: 900px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px var(--gutter);
    max-height: 82vh;
    overflow-y: auto;
  }
  .cookie-banner-botones {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-botones .btn {
    width: 100%;
  }
}

/* ---------- Panel de preferencias ---------- */
.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-panel[hidden] {
  display: none;
}

.cookie-panel-fondo {
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 34, 0.5);
}

.cookie-panel-caja {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--stone);
  width: min(640px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 44px);
}

.cookie-panel-caja h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.cookie-panel-caja .lede {
  font-size: 0.98rem;
  margin-bottom: 28px;
}

.cookie-grupo {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
}

.cookie-grupo-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.cookie-grupo h3 {
  font-size: 1.05rem;
  margin: 0;
}

.cookie-grupo h3 label {
  cursor: pointer;
}

.cookie-grupo p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cookie-fijo {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  white-space: nowrap;
}

/* Interruptor */
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-switch-pista {
  width: 52px;
  height: 28px;
  border: 1px solid var(--stone);
  background: var(--sand);
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cookie-switch-pista::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--stone);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-switch input:checked + .cookie-switch-pista {
  background: var(--gold);
  border-color: var(--gold-deep);
}

.cookie-switch input:checked + .cookie-switch-pista::after {
  transform: translateX(24px);
  border-color: var(--gold-deep);
}

.cookie-switch input:focus-visible + .cookie-switch-pista {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.cookie-panel-botones {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
}

@media (max-width: 560px) {
  .cookie-panel-botones {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-panel-botones .btn {
    width: 100%;
  }
}

/* ---------- Página de política de cookies ---------- */
.cookie-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 18px;
}

.tabla-scroll {
  overflow-x: auto;
  margin-bottom: 26px;
}

.tabla-cookies {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 540px;
}

.tabla-cookies th,
.tabla-cookies td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink-soft);
}

.tabla-cookies th {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom-color: var(--stone);
}

.tabla-cookies code {
  font-size: 0.86rem;
  color: var(--ink);
}
