/* ==========================================================================
   Clínica Veterinaria Vetygestión Utrera — Hoja de estilos
   Mobile-first. Índice:
   0. Tokens · 1. Base · 2. Utilidades · 3. Botones · 4. Header
   5. Hero · 6. Secciones comunes · 7. Servicios · 8. Franja CTA
   9. Nosotros · 10. Por qué elegirnos · 11. Opiniones · 12. Instagram
   13. Contacto · 14. FAQ · 15. Footer · 16. WhatsApp flotante
   17. Cookies · 18. Páginas legales · 19. Móvil y táctil · 20. Animaciones
   ========================================================================== */

/* 0. TOKENS ---------------------------------------------------------------- */
:root {
  --teal: #2F7D73;
  --teal-dark: #24635B;
  --teal-light: #4DB3A6;
  --coral: #E8896A;
  --coral-dark: #B9502F;     /* coral oscuro para texto sobre claro (contraste AA) */
  --cream: #F5F3EC;
  --white: #FBFAF6;
  --ink: #1F3B38;
  --ink-soft: #46625E;
  --line: #E3DFD3;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(31, 59, 56, .22);
  --shadow-lg: 0 24px 50px -20px rgba(31, 59, 56, .35);
  --header-h: 72px;
  --gutter: 16px;
}

/* 1. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--coral); font-weight: 500; }
.section--cream h2 em, .section--white h2 em, .legal h1 em { color: var(--coral-dark); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* 2. UTILIDADES ------------------------------------------------------------ */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.i--lg { width: 2.2rem; height: 2.2rem; }
.link { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Marcador visual para textos pendientes de confirmar. Buscar "[CONFIRMAR" antes de publicar. */
.tbc, .tbc-block { background: #FFF3C4; color: #6B5300; border-radius: 4px; padding: 0 4px; font-size: .92em; }
.tbc-block { display: block; padding: 6px 8px; }

.eyebrow {
  display: inline-block; font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  background: rgba(255,255,255,.18); color: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow--dark { background: rgba(47,125,115,.12); color: var(--teal-dark); }

/* Zigzag entre secciones (máscara CSS; --zz = color de la sección contigua) */
.zigzag { position: absolute; left: 0; right: 0; height: 14px; background: var(--zz); pointer-events: none; }
.zigzag--down { bottom: -13px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%; }
.zigzag--up { top: -13px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%; }

/* Ilustraciones de línea fina */
.deco { position: absolute; color: var(--teal-light); opacity: .55; pointer-events: none; }
.deco--light { color: #fff; opacity: .25; }

/* 3. BOTONES --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
  min-height: 44px; /* área táctil mínima */
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn--small { padding: 9px 18px; font-size: .95rem; min-height: 40px; }
/* Coral con texto oscuro para cumplir contraste AA */
.btn--coral { background: var(--coral); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(232,137,106,.7); }
.btn--coral:hover { background: #EF9A7D; box-shadow: 0 12px 26px -8px rgba(232,137,106,.8); }
.btn--outline { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--teal-dark); }

/* 4. HEADER ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(251,250,246,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(31,59,56,.35); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo__text { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1; color: var(--teal-dark); display: flex; flex-direction: column; }
.logo__text small { font-family: var(--font-body); font-size: .7rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .04em; margin-top: 4px; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text small { color: rgba(255,255,255,.7); }

/* Menú móvil (panel desplegable) */
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--white); padding: 12px var(--gutter) 24px;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0 0 16px; padding: 0; }
.nav__list a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 500; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.nav__list a:hover { color: var(--teal); }
.nav__cta { width: 100%; }

.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav { position: static; display: flex; align-items: center; gap: 28px; padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
  .nav__list { display: flex; gap: 26px; margin: 0; }
  .nav__list a { border: 0; padding: 6px 0; font-size: 1rem; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--coral); transition: right .25s; }
  .nav__list a:hover::after { right: 0; }
  .nav__cta { width: auto; }
  .nav-toggle { display: none; }
}

/* 5. HERO ------------------------------------------------------------------ */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(140deg, var(--teal) 0%, #3E9A8F 55%, var(--teal-light) 100%);
  padding: calc(var(--header-h) + 40px) 0 64px;
  z-index: 1;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.6vw, 4rem); margin-bottom: .4em; }
.hero h1 em { color: #FFC3AE; } /* coral claro: contraste AA sobre verde */
.hero__lead { font-size: 1.1rem; max-width: 36em; color: rgba(255,255,255,.92); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; border-radius: 999px; }
.chip--status { color: #fff; text-decoration: none; font-weight: 500; transition: background .2s; }
.chip--status:hover { background: rgba(255,255,255,.24); }
.chip--status .dot { width: 9px; height: 9px; border-radius: 50%; background: #FFC3AE; box-shadow: 0 0 0 3px rgba(255,195,174,.3); }
.chip--status.is-open .dot { background: #8CF0B9; box-shadow: 0 0 0 3px rgba(140,240,185,.3); }

.hero__media { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.hero__blob {
  position: relative; aspect-ratio: 9 / 10.5; overflow: hidden;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 50% 40%, #6FC7BB, var(--teal-dark));
  box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.25);
}
.hero__blob img { width: 100%; height: 100%; object-fit: cover; }
.rating-badge {
  position: absolute; left: -6px; bottom: 18px; display: grid; gap: 2px; text-decoration: none;
  background: var(--white); color: var(--ink); padding: 14px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.rating-badge:hover { transform: translateY(-3px) rotate(-1deg); }
.rating-badge__stars { color: #E9A23B; letter-spacing: 2px; }
.rating-badge strong { font-family: var(--font-head); font-size: 1.15rem; }
.rating-badge small { color: var(--ink-soft); }
.hero__deco1 { width: 110px; top: 110px; right: 4%; }
.hero__deco2 { width: 90px; bottom: 50px; left: 2%; opacity: .35; }

@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 72px) 0 110px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .rating-badge { left: -40px; }
}

/* 6. SECCIONES COMUNES ----------------------------------------------------- */
.section { position: relative; padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section__head p { color: var(--ink-soft); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.section--white .card { background: #fff; }

@media (min-width: 900px) { .section { padding: 110px 0; } }

/* 7. SERVICIOS ------------------------------------------------------------- */
.services { display: grid; gap: 18px; grid-template-columns: 1fr; }
.service { padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(47,125,115,.25); }
.service h3 { margin: 18px 0 6px; font-size: 1.2rem; }
.service p { color: var(--ink-soft); font-size: .98rem; flex-grow: 1; }
.service__icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px;
  background: rgba(77,179,166,.16); color: var(--teal); transition: background .25s, color .25s;
}
.service__icon svg { width: 28px; height: 28px; }
.service:hover .service__icon { background: var(--teal); color: #fff; }
.service:nth-child(even) .service__icon { background: rgba(232,137,106,.16); color: var(--coral-dark); }
.service:nth-child(even):hover .service__icon { background: var(--coral); color: var(--ink); }
/* Tarjeta final de llamada a la acción */
.service--cta { background: var(--teal); color: #fff; }
.service--cta p { color: rgba(255,255,255,.88); }
.service--cta .service__icon, .service--cta:hover .service__icon { background: rgba(255,255,255,.16); color: #fff; }

@media (min-width: 600px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* 8. FRANJA CTA ------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; background: var(--teal); color: #fff; padding: 56px 0; }
.cta-band__inner { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { margin-bottom: .25em; }
.cta-band h2 em { color: #FFC3AE; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__deco { width: 200px; right: -30px; top: -30px; transform: rotate(18deg); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* 9. NOSOTROS -------------------------------------------------------------- */
.about { display: grid; gap: 48px; align-items: center; }
.about__media { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.about__media::before { /* bloque de color detrás de la foto */
  content: ""; position: absolute; inset: 24px -14px -14px 24px; background: var(--coral); border-radius: var(--radius); opacity: .9;
}
.about__media img { position: relative; border-radius: var(--radius); width: 100%; aspect-ratio: 9 / 10; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__deco { width: 90px; left: -24px; top: -30px; color: var(--teal); opacity: .5; }
.about__text p { color: var(--ink-soft); }
.about__text strong { color: var(--ink); }
.motto {
  margin: 0 0 8px; padding: 14px 20px; border-left: 4px solid var(--coral);
  background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--teal-dark);
}
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; background: var(--cream); padding: 12px 16px; border-radius: var(--radius-sm); }
.checks .i { color: var(--teal); width: 1.4em; height: 1.4em; }
@media (min-width: 600px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

/* 10. POR QUÉ ELEGIRNOS ---------------------------------------------------- */
.why { display: grid; gap: 18px; }
.why__item { text-align: center; padding: 32px 24px; background: var(--white); border-radius: var(--radius); border: 1px dashed rgba(47,125,115,.35); transition: transform .25s, background .25s; }
.why__item:hover { transform: translateY(-4px); background: #fff; }
.why__item p { color: var(--ink-soft); margin: 0; }
.why__icon { width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; }
.why__icon svg { width: 32px; height: 32px; }
@media (min-width: 600px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(4, 1fr); } }

/* 11. OPINIONES ------------------------------------------------------------ */
.reviews { display: grid; gap: 40px; align-items: center; }
.reviews__summary { text-align: center; }
.big-rating { display: inline-flex; align-items: center; gap: 16px; margin: 4px 0 24px; }
.big-rating strong { font-family: var(--font-head); font-size: 4.5rem; line-height: 1; color: var(--teal-dark); }
.big-rating div { display: grid; text-align: left; }
.big-rating small { color: var(--ink-soft); }
.stars { color: #E9A23B; letter-spacing: 3px; font-size: 1.15rem; }

.carousel { min-width: 0; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 4px 24px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 1.02rem; flex-grow: 1; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-family: var(--font-head); }
.carousel__controls { display: flex; align-items: center; gap: 10px; justify-content: center; }
.carousel__dots { display: flex; justify-content: center; min-width: 0; }
.carousel__dot { width: 18px; height: 32px; flex-shrink: 1; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #C9C4B5; transition: width .25s, background .25s; }
.carousel__dot[aria-selected="true"]::before { width: 16px; background: var(--teal); }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--teal); background: transparent; color: var(--teal); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.carousel__btn:hover { background: var(--teal); color: #fff; }
.carousel__btn svg { width: 22px; height: 22px; }

@media (min-width: 700px) { .carousel__track { grid-auto-columns: calc(50% - 8px); } }
@media (min-width: 1040px) {
  .reviews { grid-template-columns: 340px 1fr; gap: 56px; }
  .reviews__summary { text-align: left; }
  .carousel__controls { justify-content: flex-start; }
}

/* 12. INSTAGRAM ------------------------------------------------------------ */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ig-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1; background: var(--teal-light); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.ig-grid a::after { /* icono IG al pasar el ratón */
  content: ""; position: absolute; inset: 0; background: rgba(47,125,115,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6' fill='white'/%3E%3C/svg%3E") center / 36px no-repeat;
  opacity: 0; transition: opacity .3s;
}
.ig-grid a:hover img, .ig-grid a:focus-visible img { transform: scale(1.06); }
.ig-grid a:hover::after, .ig-grid a:focus-visible::after { opacity: 1; }
@media (min-width: 700px) { .ig-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* 13. CONTACTO ------------------------------------------------------------- */
.contact { display: grid; gap: 20px; }
.contact__cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 20px; text-decoration: none;
  background: var(--cream); border-radius: var(--radius-sm); transition: transform .2s, box-shadow .2s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card > .i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--teal); color: #fff; }
.contact-card > span { display: grid; flex: 1 1 160px; color: var(--ink-soft); font-size: .95rem; }
.contact-card strong { color: var(--ink); font-size: 1.05rem; }
.contact-card--wa > .i { background: #25D366; color: #0B3D1E; }

.hours { padding: 26px; }
.hours__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hours__head h3 { margin: 0; }
.status { font-weight: 700; font-size: .9rem; padding: 5px 12px; border-radius: 999px; background: var(--line); }
.status--open { background: #D7F0E7; color: #155D3A; }
.status--closed { background: #FBE1D8; color: #8E3517; }
.status::before { content: "● "; }
.hours__table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours__table th, .hours__table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.hours__table th { font-weight: 600; }
.hours__table td { text-align: right; color: var(--ink-soft); }
.hours__table tr.is-today { background: rgba(77,179,166,.14); }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--teal-dark); font-weight: 700; }
.hours__table tr.is-today th::after { content: " · Hoy"; font-weight: 500; font-size: .85em; }

.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--cream); position: relative; }
.map iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px;
  background: repeating-linear-gradient(45deg, rgba(47,125,115,.05) 0 12px, transparent 12px 24px), var(--cream);
  color: var(--ink-soft);
}
.map__placeholder .i { color: var(--teal); }
.map__placeholder p { max-width: 30em; margin: 0 0 6px; font-size: .95rem; }
.map__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; min-height: 380px; }
}
@media (min-width: 1100px) {
  .contact { grid-template-columns: 1fr 1fr 1.2fr; }
  .map { grid-column: auto; }
}

/* 14. FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 4px 16px -10px rgba(31,59,56,.3); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(47,125,115,.12); color: var(--teal-dark); font-size: 1.3rem; transition: transform .25s, background .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--coral); color: var(--ink); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* 15. FOOTER --------------------------------------------------------------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.82); padding: 64px 0 24px; font-size: .97rem; }
.footer__grid { display: grid; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.footer__claim { margin-top: 16px; max-width: 26em; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer .tbc { color: #6B5300; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.footer__legal p { margin: 0; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; color: #fff; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }

/* 16. WHATSAPP FLOTANTE ---------------------------------------------------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.6); transition: transform .2s;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { /* pulso suave */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
body.has-cookie-banner .wa-float { bottom: var(--banner-h, 16px); }

/* 17. AVISO DE COOKIES (pequeño, esquina inferior) ------------------------ */
.cookie-banner {
  position: fixed; z-index: 200;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 14px; font-size: .9rem; line-height: 1.4;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 12px 34px -12px rgba(31,59,56,.45);
  animation: banner-in .35s ease-out;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 220px; color: var(--ink-soft); }
.cookie-banner a { color: var(--teal-dark); font-weight: 600; }
.cookie-banner__btns { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-banner .btn { padding: 7px 16px; min-height: 40px; font-size: .9rem; }
@keyframes banner-in { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 700px) {
  .cookie-banner { left: 20px; right: auto; bottom: 20px; max-width: 460px; }
}
.consent-msg { display: inline-block; margin-left: 12px; color: var(--teal-dark); font-weight: 600; }

/* 18. PÁGINAS LEGALES ------------------------------------------------------ */
.legal { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--white); }
.legal .back { display: inline-flex; margin-bottom: 24px; }
.legal-header .header__inner { justify-content: space-between; }

/* 19. AJUSTES PARA MÓVIL Y PANTALLAS TÁCTILES ------------------------------ */
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }

/* En pantallas táctiles no hay "hover": evitamos que las tarjetas se queden
   levantadas después de tocarlas */
@media (hover: none) {
  .btn:hover, .service:hover, .why__item:hover, a.contact-card:hover,
  .rating-badge:hover, .wa-float:hover { transform: none; }
  .service:hover { box-shadow: var(--shadow); }
  .ig-grid a:hover img { transform: none; }
  .ig-grid a:hover::after { opacity: 0; }
}

/* Móviles (< 600px) */
@media (max-width: 599px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__text { font-size: 1.15rem; }

  .hero { padding: calc(var(--header-h) + 28px) 0 56px; }
  .hero h1 { font-size: clamp(2rem, 1.2rem + 5vw, 2.6rem); }
  .hero__lead { font-size: 1rem; }
  .hero__ctas { margin: 22px 0 18px; }
  .hero__ctas .btn { flex: 1 1 100%; }          /* botones a todo el ancho, fáciles de pulsar */
  .hero__media { max-width: 320px; }
  .hero__deco1, .hero__deco2, .cta-band__deco { display: none; }
  .rating-badge { padding: 10px 14px; left: -4px; bottom: 10px; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .service { padding: 22px 20px; }
  .cta-band { padding: 44px 0; }
  .cta-band__btns .btn { flex: 1 1 100%; }
  .about { gap: 36px; }
  .about__media { max-width: 360px; }
  .about__deco { display: none; }
  .big-rating strong { font-size: 3.6rem; }
  .review { padding: 22px; }
  .hours { padding: 20px 16px; }
  .hours__head { flex-wrap: wrap; }
  .hours__table th, .hours__table td { padding: 9px 4px; font-size: .93rem; }
  .map { min-height: 280px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } /* hueco para el botón de WhatsApp */
  .wa-float { width: 56px; height: 56px; right: 14px; }
  .legal { padding-top: calc(var(--header-h) + 32px); }
}

/* 20. ANIMACIONES (scroll reveal) ----------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .carousel__track { scroll-behavior: auto; }
}
