/* ==========================================================================
   Restaurante DeCasa · Riaza (Segovia)
   Hoja de estilos principal (se apoya en Bootstrap 5.3)
   ========================================================================== */

:root {
  /* Colores de marca (extraídos del logotipo) */
  --dc-terracota: #c95e3e;
  --dc-terracota-oscuro: #a9492b;
  --dc-terracota-claro: #f6e3da;
  --dc-salvia: #798d86;
  --dc-salvia-oscuro: #4f625b;
  --dc-salvia-claro: #e5ebe8;
  --dc-crema: #faf6f0;
  --dc-crema-2: #f2e9dd;
  --dc-tinta: #2b2522;
  --dc-tinta-suave: #5c534e;
  --dc-linea: #e4d8c9;
  --dc-blanco: #fff;

  --dc-font-titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --dc-font-texto: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dc-font-mano: "Caveat", "Segoe Print", cursive;

  --dc-radio: 14px;
  --dc-radio-lg: 24px;
  --dc-sombra: 0 10px 30px -12px rgba(43, 37, 34, .25);
  --dc-sombra-lg: 0 24px 60px -20px rgba(43, 37, 34, .35);
  --dc-nav-alto: 76px;

  /* Integración con Bootstrap */
  --bs-body-font-family: var(--dc-font-texto);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: var(--dc-tinta);
  --bs-body-bg: var(--dc-crema);
  --bs-link-color: var(--dc-terracota-oscuro);
  --bs-link-color-rgb: 169, 73, 43;
  --bs-link-hover-color: var(--dc-tinta);
  --bs-link-hover-color-rgb: 43, 37, 34;
  --bs-border-color: var(--dc-linea);
  --bs-emphasis-color: var(--dc-tinta);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--dc-nav-alto) + 12px); }
body { background: var(--dc-crema); color: var(--dc-tinta); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, .display-title {
  font-family: var(--dc-font-titulos);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--dc-tinta);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--dc-terracota-oscuro); }

p { margin-bottom: 1.1rem; }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--dc-tinta-suave); }
strong { font-weight: 700; }
::selection { background: var(--dc-terracota); color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--dc-font-mano);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--dc-terracota);
  margin-bottom: .5rem;
  transform: rotate(-2deg);
}
.eyebrow--light { color: #ffd6c4; }

.text-terracota { color: var(--dc-terracota-oscuro) !important; }
.text-salvia { color: var(--dc-salvia-oscuro) !important; }
.text-suave { color: var(--dc-tinta-suave) !important; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--dc-tinta); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--dc-terracota); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn { --bs-btn-font-weight: 700; --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .8rem; --bs-btn-border-radius: 999px; letter-spacing: .01em; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { --bs-btn-padding-x: 2rem; --bs-btn-padding-y: 1rem; --bs-btn-font-size: 1.08rem; }
.btn-sm { --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .5rem; }
.btn-dc {
  --bs-btn-color: #fff; --bs-btn-bg: var(--dc-terracota-oscuro); --bs-btn-border-color: var(--dc-terracota-oscuro);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #8f3c22; --bs-btn-hover-border-color: #8f3c22;
  --bs-btn-active-bg: #7b331c; --bs-btn-active-border-color: #7b331c; --bs-btn-active-color: #fff;
  box-shadow: 0 8px 20px -8px rgba(169, 73, 43, .65);
}
.btn-dc-outline {
  --bs-btn-color: var(--dc-tinta); --bs-btn-border-color: var(--dc-tinta); --bs-btn-bg: transparent;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--dc-tinta); --bs-btn-hover-border-color: var(--dc-tinta);
  --bs-btn-active-bg: var(--dc-tinta); --bs-btn-active-color: #fff;
}
.btn-dc-light {
  --bs-btn-color: var(--dc-tinta); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--dc-tinta); --bs-btn-hover-bg: var(--dc-crema-2); --bs-btn-hover-border-color: var(--dc-crema-2);
}
.btn-dc-ghost {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.75); --bs-btn-bg: rgba(255,255,255,.06);
  --bs-btn-hover-color: var(--dc-tinta); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
  backdrop-filter: blur(4px);
}
.btn .bi { margin-right: .45rem; }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--dc-tinta); color: #eadfd4; font-size: .9rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffc3a8; }
.topbar .bi { color: #f0a283; margin-right: .35rem; }
.topbar-social a { font-size: 1.05rem; margin-left: .9rem; }

/* ---------- Navegación ---------- */
.site-nav {
  background: rgba(250, 246, 240, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  min-height: var(--dc-nav-alto);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-nav.is-scrolled { box-shadow: 0 6px 24px -14px rgba(43,37,34,.45); border-bottom-color: var(--dc-linea); }
.site-nav .navbar-brand img { height: 52px; width: auto; transition: height .25s ease; }
.site-nav.is-scrolled .navbar-brand img { height: 44px; }
.site-nav .nav-link {
  font-weight: 700; color: var(--dc-tinta); padding: .5rem .95rem !important; position: relative; font-size: 1rem;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .2rem; height: 2px;
  background: var(--dc-terracota); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--dc-terracota-oscuro); }
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .bi { font-size: 2rem; color: var(--dc-tinta); }
.nav-call { color: var(--dc-tinta); font-size: 1.4rem; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .75rem 0 1.25rem; }
  .site-nav .nav-link { padding: .75rem 0 !important; border-bottom: 1px solid var(--dc-linea); font-size: 1.1rem; }
  .site-nav .nav-link::after { display: none; }
}

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 860px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--dc-tinta);
}
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides { z-index: -2; }
.hero-slides img { object-fit: cover; opacity: 0; animation: hero-fade 28s infinite; }
.hero-slides img:nth-child(1) { animation-delay: 0s; opacity: 1; }
.hero-slides img:nth-child(2) { animation-delay: 7s; }
.hero-slides img:nth-child(3) { animation-delay: 14s; }
.hero-slides img:nth-child(4) { animation-delay: 21s; }
@keyframes hero-fade {
  0% { opacity: 0; transform: scale(1.06); }
  4% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.hero-slides img:nth-child(1) { animation-name: hero-fade-first; }
@keyframes hero-fade-first {
  0% { opacity: 1; transform: scale(1.06); }
  25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1); }
  96% { opacity: 0; }
  100% { opacity: 1; transform: scale(1.06); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,16,14,.35) 0%, rgba(20,16,14,0) 30%),
    linear-gradient(0deg, rgba(20,16,14,.88) 0%, rgba(20,16,14,.55) 40%, rgba(20,16,14,.1) 75%);
}
.hero-content { padding: 7rem 0 4.5rem; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { color: #ffc3a8; }
.hero .lead { color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 620px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: .4rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
}
.hero-badges .bi { color: #ffc3a8; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: 7.5rem 0 3.5rem; background: var(--dc-tinta);
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20,16,14,.85) 0%, rgba(20,16,14,.45) 55%, rgba(20,16,14,.3) 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: .75rem; }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 680px; margin-bottom: 0; }
.page-hero--simple { padding: 4rem 0 2.5rem; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); font-size: .92rem; margin-bottom: 1rem; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-sm { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section-alt { background: var(--dc-crema-2); }
.section-salvia { background: var(--dc-salvia-claro); }
.section-dark { background: var(--dc-tinta); color: #eadfd4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .text-suave { color: #cfc3b8 !important; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .lead { margin-bottom: 0; }

.divider-wave { display: block; width: 100%; height: 40px; color: var(--dc-crema-2); }

/* ---------- Bloques de imagen ---------- */
.img-rounded { border-radius: var(--dc-radio-lg); box-shadow: var(--dc-sombra); object-fit: cover; width: 100%; }
.collage { position: relative; padding: 0 0 12% 12%; }
.collage .collage-main { border-radius: var(--dc-radio-lg); box-shadow: var(--dc-sombra-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage .collage-small {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--dc-radio-lg); border: 6px solid var(--dc-crema); box-shadow: var(--dc-sombra);
}
.collage .collage-note {
  position: absolute; right: -6px; bottom: 6%; background: #fff; border-radius: 16px; box-shadow: var(--dc-sombra);
  padding: .85rem 1.1rem; font-family: var(--dc-font-mano); font-size: 1.45rem; line-height: 1.1; color: var(--dc-terracota-oscuro);
  transform: rotate(3deg); max-width: 210px;
}
.section-alt .collage .collage-small { border-color: var(--dc-crema-2); }

/* ---------- Tarjetas de valores ---------- */
.feature {
  height: 100%; background: #fff; border: 1px solid var(--dc-linea); border-radius: var(--dc-radio);
  padding: 1.75rem 1.5rem; transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--dc-sombra); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dc-terracota-claro); color: var(--dc-terracota-oscuro); font-size: 1.5rem; margin-bottom: 1rem;
}
.feature:nth-child(even) .feature-icon, .col:nth-child(even) .feature .feature-icon { background: var(--dc-salvia-claro); color: var(--dc-salvia-oscuro); }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { margin: 0; color: var(--dc-tinta-suave); font-size: .98rem; }

/* ---------- Platos ---------- */
.dish { position: relative; border-radius: var(--dc-radio-lg); overflow: hidden; background: var(--dc-tinta); box-shadow: var(--dc-sombra); margin: 0; height: 100%; }
.dish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease, opacity .3s ease; opacity: .95; }
.dish:hover img { transform: scale(1.05); opacity: 1; }
.dish figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.1rem; color: #fff;
  background: linear-gradient(0deg, rgba(20,16,14,.9), rgba(20,16,14,0));
}
.dish figcaption strong { display: block; font-family: var(--dc-font-titulos); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.dish figcaption span { font-size: .92rem; color: rgba(255,255,255,.82); }
.dish--wide img { aspect-ratio: 16 / 10; }

/* ---------- Carta ---------- */
.menu-block { background: #fff; border-radius: var(--dc-radio-lg); padding: 2rem 1.75rem; border: 1px solid var(--dc-linea); height: 100%; }
.menu-block h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; margin-bottom: 1.2rem; }
.menu-block h3 .bi { color: var(--dc-terracota); font-size: 1.2rem; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { padding: .75rem 0; border-bottom: 1px dashed var(--dc-linea); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list strong { display: block; font-family: var(--dc-font-titulos); font-weight: 600; font-size: 1.1rem; }
.menu-list span { color: var(--dc-tinta-suave); font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; background: var(--dc-salvia-claro); color: var(--dc-salvia-oscuro); vertical-align: middle; margin-left: .35rem; }

.km0 {
  background: #fff; border-radius: var(--dc-radio-lg); box-shadow: var(--dc-sombra-lg); overflow: hidden;
  border: 1px solid var(--dc-linea);
}
.km0-head { background: var(--dc-terracota-oscuro); color: #fff; padding: 2rem; position: relative; }
.km0-head h2, .km0-head h3 { color: #fff; margin: 0; }
.km0-price {
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%) rotate(-8deg);
  width: 104px; height: 104px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.7);
  display: grid; place-items: center; text-align: center; line-height: 1;
  font-family: var(--dc-font-titulos); font-size: 2rem; font-weight: 700;
}
.km0-price small { display: block; font-family: var(--dc-font-texto); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
.km0-body { padding: 2rem; }
.km0-body h4 { font-family: var(--dc-font-texto); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dc-salvia-oscuro); font-weight: 800; margin-bottom: .5rem; }

/* ---------- Galería + visor ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; } .gallery .g-wide { grid-column: span 2; } .gallery .g-tall { grid-row: span 2; } }
.gallery button { padding: 0; border: 0; background: none; border-radius: var(--dc-radio); overflow: hidden; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s ease; }
@media (min-width: 768px) { .gallery img { aspect-ratio: auto; } }
.gallery button:hover img { transform: scale(1.06); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(15, 12, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #eadfd4; margin-top: .9rem; font-size: .98rem; }
.lightbox .lb-btn {
  position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; transition: background .2s;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Franja de llamada a la acción ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(4.5rem, 9vw, 7.5rem) 0; text-align: center; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(122,46,24,.9), rgba(43,37,34,.78)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }

/* ---------- Escapada / entorno ---------- */
.spot { background: #fff; border-radius: var(--dc-radio-lg); overflow: hidden; height: 100%; border: 1px solid var(--dc-linea); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.spot:hover { transform: translateY(-4px); box-shadow: var(--dc-sombra); }
.spot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.spot-body { padding: 1.4rem 1.4rem 1.6rem; }
.spot-body h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.spot-body p { color: var(--dc-tinta-suave); font-size: .98rem; margin: 0; }

.plan { list-style: none; padding: 0; margin: 0; counter-reset: plan; }
.plan li { position: relative; padding: 0 0 1.6rem 3.75rem; }
.plan li::before {
  counter-increment: plan; content: counter(plan);
  position: absolute; left: 0; top: -.15rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--dc-terracota-oscuro); color: #fff; font-weight: 800; font-family: var(--dc-font-titulos);
}
.plan li::after { content: ""; position: absolute; left: 1.28rem; top: 2.6rem; bottom: .2rem; width: 2px; background: var(--dc-linea); }
.plan li:last-child::after { display: none; }
.plan strong { display: block; font-family: var(--dc-font-titulos); font-size: 1.15rem; margin-bottom: .15rem; }
.plan span { color: var(--dc-tinta-suave); }

.stat { text-align: center; }
.stat strong { display: block; font-family: var(--dc-font-titulos); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--dc-terracota-oscuro); line-height: 1.1; }
.stat span { color: var(--dc-tinta-suave); font-size: .95rem; }

/* ---------- Opiniones ---------- */
.review-cta { background: #fff; border-radius: var(--dc-radio-lg); padding: 2.25rem; border: 1px solid var(--dc-linea); height: 100%; }
.review-cta .stars { color: #e3a32b; font-size: 1.3rem; letter-spacing: .15rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq details { background: #fff; border: 1px solid var(--dc-linea); border-radius: var(--dc-radio); margin-bottom: .75rem; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--dc-sombra); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.25rem 1.15rem 1.4rem; position: relative;
  font-family: var(--dc-font-titulos); font-weight: 600; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dc-terracota-claro); color: var(--dc-terracota-oscuro); font-family: var(--dc-font-texto); font-weight: 800; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.4rem 1.2rem; color: var(--dc-tinta-suave); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contacto / ubicación ---------- */
.info-card { background: #fff; border-radius: var(--dc-radio-lg); padding: 2rem; border: 1px solid var(--dc-linea); }
.info-item { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--dc-linea); }
.info-item:last-child { border-bottom: 0; }
.info-item .bi { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--dc-terracota-claro); color: var(--dc-terracota-oscuro); font-size: 1.15rem; }
.info-item h3 { font-family: var(--dc-font-texto); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--dc-salvia-oscuro); margin: .1rem 0 .2rem; }
.info-item p { margin: 0; }
.info-item a { text-decoration: none; font-weight: 700; }
.map-wrap { border-radius: var(--dc-radio-lg); overflow: hidden; box-shadow: var(--dc-sombra); height: 100%; min-height: 380px; background: var(--dc-salvia-claro); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Formulario ---------- */
.form-card { background: #fff; border-radius: var(--dc-radio-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--dc-sombra-lg); border: 1px solid var(--dc-linea); }
.form-label { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 12px; border-color: #d8cbbb; padding: .75rem 1rem; background-color: #fffdfa; }
.form-control:focus, .form-select:focus { border-color: var(--dc-terracota); box-shadow: 0 0 0 .25rem rgba(201, 94, 62, .18); }
.form-check-input:checked { background-color: var(--dc-terracota-oscuro); border-color: var(--dc-terracota-oscuro); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(201, 94, 62, .18); border-color: var(--dc-terracota); }
.form-note { font-size: .88rem; color: var(--dc-tinta-suave); }
.notice {
  border-left: 4px solid var(--dc-terracota); background: var(--dc-terracota-claro); border-radius: 0 var(--dc-radio) var(--dc-radio) 0;
  padding: 1.25rem 1.4rem; font-size: .98rem;
}
.notice p:last-child { margin-bottom: 0; }

.policy details { border-top: 1px solid var(--dc-linea); }
.policy details:last-child { border-bottom: 1px solid var(--dc-linea); }
.policy summary { cursor: pointer; padding: 1rem 0; font-weight: 700; }
.policy .policy-body { padding-bottom: 1rem; color: var(--dc-tinta-suave); font-size: .97rem; }

/* ---------- Textos legales ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 575.98px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }

/* ---------- Pie ---------- */
.site-footer { background: #231e1b; color: #cfc3b8; padding: 4.5rem 0 0; font-size: .98rem; }
.site-footer h2 { font-family: var(--dc-font-texto); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: 1.1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffc3a8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-logo img { height: 64px; width: auto; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 1.1rem; transition: background .2s; }
.footer-social a:hover { background: var(--dc-terracota-oscuro); color: #fff; }
.footer-kit { background: #fff; border-radius: 12px; padding: .75rem 1rem; display: inline-block; margin-top: 2.5rem; }
.footer-kit img { height: 40px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.4rem 0 1.6rem; font-size: .88rem; color: #a99d92; }
.footer-bottom a { color: #cfc3b8; }
.footer-bottom .sep { margin: 0 .5rem; opacity: .5; }

/* ---------- Barra de acciones en móvil ---------- */
.mobile-actions { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: 68px; }
  .mobile-actions {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: rgba(35,30,27,.97); backdrop-filter: blur(8px); padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -10px rgba(0,0,0,.4);
  }
  .mobile-actions a { color: #fff; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .78rem; font-weight: 700; padding: .3rem; border-radius: 10px; }
  .mobile-actions a .bi { font-size: 1.3rem; }
  .mobile-actions a.primary { background: var(--dc-terracota-oscuro); }
}

/* ---------- Gestor de cookies (api.gormatica.com/cookies) ---------- */
/* En móvil, subir la burbuja de preferencias por encima de la barra de acciones */
@media (max-width: 767.98px) { #gcookies { --gc-burbuja-abajo: 84px; } }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-slides img { animation: none !important; opacity: 0; }
  .hero-slides img:first-child { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .topbar, .site-nav, .mobile-actions, #gcookies, .site-footer, .cta-band, .map-wrap { display: none !important; }
  .page-hero, .hero { color: #000; background: none; padding: 1rem 0; min-height: 0; }
  .page-hero > img, .hero-slides, .page-hero::before, .hero::before { display: none; }
  .page-hero h1, .hero h1 { color: #000; }
}

/* Ajustes */
a[href^="tel"] { white-space: nowrap; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,16,14,.55) 0%, rgba(20,16,14,.15) 55%, rgba(20,16,14,0) 75%); }
html, body { overflow-x: clip; }
.page-hero h1 em, .cta-band h2 em { color: #ffc3a8; }
