:root {
  --bg: #f6f1eb;
  --bg-soft: #fffaf5;
  --surface: #ffffff;
  --surface-strong: #f3e6db;
  --text: #261714;
  --muted: #6c5550;
  --line: rgba(92, 39, 40, 0.14);
  --brand: #872d31;
  --brand-dark: #5e1f24;
  --accent: #d7b33f;
  --accent-soft: #f4e6ac;
  --success: #1c7a56;
  --shadow: 0 18px 40px rgba(58, 24, 26, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --btn-height: 52px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 179, 63, 0.18), transparent 26%),
    linear-gradient(180deg, #f9f3ed 0%, #f6f1eb 42%, #f0e7de 100%);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--brand-dark);
  color: #fff7ef;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.topbar-copy {
  font-size: 14px;
}

.topbar-actions,
.nav-cta,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(249, 243, 237, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 22px;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

.main-nav a {
  color: var(--muted);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-height);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(94, 31, 36, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #9d3e40);
  color: #fffaf5;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent), #f0d26e);
  color: #3c2d06;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--brand-dark);
}

.hero {
  padding: 38px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.hero-copy,
.hero-card,
.card,
.zone-card,
.service-card,
.faq-item,
.page-banner,
.contact-card,
.gallery-card,
.trust-strip,
.cta-band,
.notice {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(249, 241, 231, 0.86)),
    radial-gradient(circle at top right, rgba(135, 45, 49, 0.08), transparent 36%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(135, 45, 49, 0.08);
  color: var(--brand);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.65rem, 2vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-points,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.tag,
.inline-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(135, 45, 49, 0.08);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
}

.hero-card {
  padding: 28px;
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(135, 45, 49, 0.95), rgba(94, 31, 36, 0.95)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent);
  color: #fffaf5;
}

.hero-card .mini-logo {
  width: 110px;
}

.hero-card p,
.hero-card li {
  color: rgba(255, 250, 245, 0.82);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
}

.section {
  padding: 34px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.grid-3,
.grid-2,
.gallery-grid,
.faq-grid,
.zones-grid,
.services-grid,
.contact-grid,
.story-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.grid-3,
.gallery-grid,
.zones-grid,
.services-grid,
.faq-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.story-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.service-card,
.zone-card,
.faq-item,
.contact-card,
.gallery-card,
.trust-strip,
.cta-band,
.notice {
  padding: 24px;
}

.card p,
.service-card p,
.zone-card p,
.faq-item p,
.contact-card p,
.gallery-card p,
.story-grid p,
.notice p {
  margin: 12px 0 0;
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 230, 211, 0.8));
}

.trust-item strong {
  display: block;
  color: var(--brand-dark);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after,
.gallery-visual::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(215, 179, 63, 0.22), transparent 68%);
  pointer-events: none;
}

.service-card .small-link,
.zone-card .small-link,
.notice .small-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 700;
}

.gallery-card {
  overflow: hidden;
  padding: 0;
}

.gallery-visual {
  position: relative;
  min-height: 240px;
  padding: 24px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(140deg, rgba(135, 45, 49, 0.12), rgba(215, 179, 63, 0.18)),
    linear-gradient(180deg, #f3e8dc 0%, #ead7c5 100%);
}

.gallery-visual.theme-night {
  background:
    radial-gradient(circle at top right, rgba(215, 179, 63, 0.2), transparent 28%),
    linear-gradient(180deg, #3b2329 0%, #1c1418 100%);
}

.gallery-visual.theme-entry {
  background:
    radial-gradient(circle at top left, rgba(215, 179, 63, 0.16), transparent 28%),
    linear-gradient(180deg, #f7ede5 0%, #e8d8c9 100%);
}

.gallery-watermark {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 92px;
  opacity: 0.16;
}

.gallery-label {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-dark);
  font-weight: 700;
}

.theme-night .gallery-label {
  background: rgba(255, 250, 245, 0.12);
  color: #fffaf5;
}

.gallery-copy {
  padding: 22px 24px 24px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(94, 31, 36, 0.98), rgba(135, 45, 49, 0.96)),
    radial-gradient(circle at left top, rgba(215, 179, 63, 0.2), transparent 30%);
  color: #fff8f0;
}

.cta-band p {
  margin: 10px 0 0;
  color: rgba(255, 248, 240, 0.82);
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.footer {
  margin-top: 40px;
  padding: 26px 0 38px;
  background: #2f171b;
  color: #f5ede7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
}

.footer p,
.footer li,
.footer a {
  color: rgba(245, 237, 231, 0.8);
}

.footer strong {
  display: block;
  margin-bottom: 8px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(245, 237, 231, 0.72);
  font-size: 14px;
}

.page-banner {
  padding: 28px;
  margin-top: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 230, 211, 0.82)),
    radial-gradient(circle at top right, rgba(135, 45, 49, 0.08), transparent 32%);
}

.page-banner p {
  margin: 14px 0 0;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--brand);
}

.notice {
  background: linear-gradient(180deg, rgba(244, 230, 172, 0.46), rgba(255, 255, 255, 0.84));
}

.check-list,
.clean-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li,
.clean-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before,
.clean-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}

.contact-card strong,
.zone-card strong,
.service-card strong {
  color: var(--brand-dark);
}

.highlight {
  color: var(--brand);
}

@media (max-width: 1024px) {
  .hero-grid,
  .grid-3,
  .gallery-grid,
  .zones-grid,
  .services-grid,
  .faq-grid,
  .steps-grid,
  .trust-strip,
  .footer-grid,
  .grid-2,
  .story-grid,
  .contact-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-shell {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 245, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-shell.open {
    display: flex;
  }

  .main-nav,
  .nav-cta {
    flex-direction: column;
    gap: 12px;
  }

  .topbar .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-copy,
  .hero-card,
  .card,
  .service-card,
  .zone-card,
  .faq-item,
  .page-banner,
  .contact-card,
  .gallery-copy,
  .gallery-visual,
  .trust-strip,
  .cta-band,
  .notice {
    padding: 20px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 22px));
  }

  h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }

  .button-row,
  .topbar-actions {
    width: 100%;
  }

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

.hero-portrait {
  width: 100%;
  min-height: 240px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 10, 12, 0.08), rgba(18, 10, 12, 0.58));
  z-index: 0;
}

.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-label {
  margin-top: auto;
}

.footer::before {
  content: "";
  display: block;
  width: min(260px, 70vw);
  height: 92px;
  margin: 0 auto 20px;
  background: url("images/XAVIER%20ALCARAZ%20CERRAJERO%20LOGO%20HEADER.png") center/contain no-repeat;
}
