/* =============================================================
   TAQUEARDE · Hoja de estilos
   -------------------------------------------------------------
   Los colores y tipografías se controlan desde :root.
   También puedes cambiarlos en js/config.js -> theme.
   ============================================================= */

/* ---------- 1. Tokens de diseño ---------- */
:root {
  --color-primary: #A83216;
  --color-primary-dark: #79220F;
  --color-accent: #F2A23A;
  --color-accent-soft: #FBE0B6;
  --color-bg: #14110F;
  --color-bg-alt: #1B1714;
  --color-surface: #27211D;
  --color-heading: #FFF8EE;
  --color-text: #EDE4D9;
  --color-muted: #C7B9AA;
  --color-line: rgba(255, 238, 219, 0.16);
  --color-error: #FF9B84;
  --color-success: #A8D8AE;

  --font-heading: "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(36, 33, 31, 0.05), 0 10px 26px -18px rgba(36, 33, 31, 0.35);
  --shadow-lg: 0 26px 60px -30px rgba(36, 33, 31, 0.45);

  --container: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(56px, 7.5vw, 104px);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 2. 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;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(242, 162, 58, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(168, 50, 22, 0.07), transparent 65%);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #FFD09A;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 248, 238, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

::selection {
  background: var(--color-accent);
  color: #211B18;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 120;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- 3. Layout ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.scroll-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--color-heading);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(168, 50, 22, 0.9);
}

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

.btn-ghost {
  border-color: var(--color-line);
  background: rgba(255, 248, 238, 0.06);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-accent);
}

.btn-outline {
  padding: 0.6rem 1.1rem;
  border-color: rgba(242, 162, 58, 0.65);
  color: var(--color-accent);
}

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

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

/* ---------- 5. Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(20, 17, 15, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 12px 30px -24px rgba(36, 33, 31, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 200px;
  min-width: 0;
  color: var(--color-heading);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand:hover {
  color: var(--color-heading);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 25%, #3a332e, #1c1a18 72%);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.35),
    0 10px 20px -14px rgba(0, 0, 0, 0.7);
}

.brand-flame {
  width: 22px;
  height: 28px;
}

.brand-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.16rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-cta-item {
  display: none;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: rgba(255, 248, 238, 0.08);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-heading);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-grid > * {
  min-width: 0;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.lead {
  max-width: 44ch;
  color: var(--color-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2.1rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero-figure {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 22px -20px -20px 22px;
  border: 2px solid var(--color-accent);
  border-radius: calc(var(--radius-lg) + 6px);
  z-index: -1;
}

.hero-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  left: clamp(-8px, -1vw, 0px);
  bottom: clamp(16px, 3vw, 32px);
  max-width: 230px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.hero-badge-title {
  display: block;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.2;
}

.hero-badge-text {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* ---------- 7. Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #000;
}

.service-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem;
}

.service-body h3 {
  margin: 0;
}

.service-body p {
  margin: 0 0 0.4rem;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.service-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 8. Tipos de evento ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  list-style: none;
}

.event-card {
  padding: 1.35rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.7);
}

.event-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: rgba(217, 164, 65, 0.16);
  color: var(--color-accent);
}

.event-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.event-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- 9. Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(33, 27, 24, 0.9);
  color: #F7F1E6;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Visor */
.lightbox {
  width: min(96vw, 1040px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(24, 21, 19, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  position: relative;
  padding: 1rem;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 12px;
}

.lightbox-caption {
  margin: 0.7rem 0 0;
  color: #F1E9DC;
  font-size: 0.86rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(33, 27, 24, 0.85);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(139, 52, 38, 0.9);
}

.lightbox-close {
  top: -0.4rem;
  right: -0.4rem;
  font-size: 1.5rem;
}

.lightbox-prev {
  top: 50%;
  left: -0.6rem;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: -0.6rem;
  transform: translateY(-50%);
}

/* ---------- 10. Videos ---------- */
.videos-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 270px);
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.2rem 0.2rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(139, 52, 38, 0.45) transparent;
  scrollbar-width: thin;
}

.videos-rail::-webkit-scrollbar {
  height: 6px;
}

.videos-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 52, 38, 0.4);
}

.video-card {
  display: flex;
  flex-direction: column;
  padding: 0.7rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.video-player,
.video-demo {
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #211B18;
}

.video-player {
  object-fit: cover;
}

.video-demo {
  position: relative;
}

.video-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.video-demo-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.92);
  color: #24211F;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-demo-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.6rem;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.video-info {
  padding: 0.8rem 0.3rem 0.2rem;
}

.video-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.video-info p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.video-note {
  margin-top: 0.5rem;
  font-size: 0.76rem;
}

/* ---------- 11. Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.about-copy > p {
  color: var(--color-muted);
}

.values-list {
  display: grid;
  gap: 1.1rem;
  list-style: none;
}

.values-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.value-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 164, 65, 0.6);
  border-radius: 50%;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.values-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.values-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- 12. Proceso ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  counter-reset: step;
}

.process-step {
  padding-top: 1.1rem;
  border-top: 2px solid rgba(217, 164, 65, 0.65);
}

.step-number {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1;
}

.process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- 13. Testimonios ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.testimonial-card {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.5;
}

.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.testimonial-card figcaption strong {
  color: var(--color-heading);
}

/* ---------- 14. Preguntas frecuentes ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 0 1.1rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(217, 164, 65, 0.2);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.6px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding-bottom: 1.1rem;
}

.faq-answer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
}

/* ---------- 15. Cotización ---------- */
.section-dark {
  background: linear-gradient(155deg, #3A2820 0%, #211B18 60%, #120F0D 100%);
  color: #F1E9DC;
}

.section-dark h2,
.section-dark h3 {
  color: #F9F4EA;
}

.section-dark .eyebrow {
  color: var(--color-accent);
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.quote-copy p {
  color: rgba(241, 233, 220, 0.82);
}

.quote-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: rgba(241, 233, 220, 0.75);
  font-size: 0.9rem;
  list-style: none;
}

.quote-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.quote-list li::before {
  content: "·";
  color: var(--color-accent);
  font-size: 1.4rem;
  line-height: 0;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--color-heading);
  font-size: 0.84rem;
  font-weight: 600;
}

.req {
  color: var(--color-accent);
}

.opt {
  color: var(--color-muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 238, 219, 0.3);
  border-radius: var(--radius-sm);
  background: #171310;
  color: var(--color-text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(168, 50, 22, 0.18);
  outline: none;
}

.field .has-error {
  border-color: var(--color-error);
  background: #38201B;
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--color-error);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.form-status {
  margin: 0;
  color: var(--color-success);
  font-size: 0.86rem;
  font-weight: 500;
}

.form-status.is-error {
  color: var(--color-error);
}

/* ---------- 16. Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.contact-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.contact-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: 0.6rem;
}

.hours-list,
.social-list {
  display: grid;
  gap: 0.3rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hours-list strong {
  color: var(--color-heading);
  font-weight: 500;
}

.social-list a {
  color: var(--color-accent);
  text-decoration: none;
}

.social-list a:hover {
  text-decoration: underline;
}

.is-disabled {
  color: var(--color-muted) !important;
  pointer-events: none;
  text-decoration: none;
}

.hours-list,
.social-list {
  list-style: none;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  background: #171311;
  color: rgba(247, 241, 230, 0.72);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.brand-light {
  color: #F7F1E6;
}

.brand-light:hover {
  color: #F7F1E6;
}

.footer-logo {
  display: inline-block;
  max-width: 320px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-logo:hover {
  opacity: 0.9;
}

.brand-light .brand-text small {
  color: rgba(247, 241, 230, 0.6);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 28ch;
  color: rgba(247, 241, 230, 0.65);
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-col a:hover {
  color: #F7F1E6;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 241, 230, 0.14);
  color: rgba(247, 241, 230, 0.55);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-meta {
  color: rgba(247, 241, 230, 0.45);
}

/* ---------- 18. Botones flotantes de contacto ---------- */
.wa-fab,
.facebook-fab:not([hidden]) {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.wa-fab {
  background: #25D366;
}

.facebook-fab:not([hidden]) {
  right: calc(clamp(14px, 3vw, 26px) + 68px);
  background: #1877F2;
}

.facebook-fab:hover {
  background: #0C5FCB;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

.wa-fab:hover {
  background: #1EBE5A;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* ---------- 19. Modal de respaldo ---------- */
.modal {
  width: min(94vw, 520px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.modal::backdrop {
  background: rgba(24, 21, 19, 0.8);
  backdrop-filter: blur(4px);
}

.modal-inner {
  padding: clamp(1.2rem, 4vw, 1.8rem);
}

.modal-inner h2 {
  font-size: 1.35rem;
}

.modal-inner p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.modal-inner textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #171310;
  color: var(--color-text);
  font: inherit;
  font-size: 0.86rem;
  resize: vertical;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ---------- 20. Detalles ---------- */
.draft-note {
  margin-top: 1.2rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ---------- 21. Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 22. Responsive ---------- */
@media (min-width: 1001px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .events-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .about-grid,
  .faq-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
    width: 100%;
    max-width: 560px;
  }

  .hero-figure::before {
    inset: 16px -12px -12px 16px;
  }

  .faq-grid .section-head {
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-lg);
  }

  .nav-open .nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta-item {
    display: block;
    margin-top: 1rem;
  }

  .nav-list a.btn {
    display: block;
    padding: 0.8rem 1.2rem;
    border-bottom: 0;
    text-align: center;
    font-size: 1rem;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .quote-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .scroll-hint {
    display: none;
  }

  .hero-badge {
    top: 0.6rem;
    bottom: auto;
    left: 0.6rem;
    max-width: 190px;
    padding: 0.7rem 0.8rem;
  }

  .videos-rail {
    grid-auto-columns: 78%;
  }

  .lightbox-prev {
    left: 0.2rem;
  }

  .lightbox-next {
    right: 0.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* ---------- 23. Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 24. Impresión ---------- */
@media print {
  .site-header,
  .wa-fab,
  .videos-rail,
  .gallery-trigger,
  .hero-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section {
    padding-block: 1.2rem;
  }
}
