:root {
  --accent: #89c337;
  --accent-dark: #6fa02a;
  --ink: #242424;
  --muted: #616262;
  --header-bg: #ffffff;
  --footer-bg: #111111;
  --footer-bottom: #1f2020;
  --white: #ffffff;
  --max: 1140px;
  --font: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  background: var(--white);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h4 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header: franja blanca a ancho completo; contenido centrado */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.header-shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.header-logo-bar {
  background: transparent;
  flex-shrink: 0;
}

.header-logo-inner {
  display: flex;
  align-items: center;
}

.brand img {
  width: 200px;
  height: auto;
}

.header-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.95rem;
  color: var(--ink);
}

.header-info strong {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.header-info a {
  color: var(--ink);
  font-weight: 500;
}

.header-info a:hover {
  color: var(--accent);
}

.phones {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Hero slider */
.hero {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: min(68vh, 560px);
}

.hero-track {
  display: flex;
  transition: transform 0.6s ease;
  height: min(68vh, 560px);
}

.hero-slide {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--accent);
}

/* About */
.about {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Map band */
.map-band {
  background: var(--accent);
  padding: 1.25rem 0 0;
}

.map-band .container {
  color: var(--white);
  padding-bottom: 0.75rem;
}

.map-band h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.map-frame {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
  filter: grayscale(0.05);
}

.map-placeholder {
  background: #1f2020;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}

.map-placeholder p {
  margin: 0 0 1rem;
}

.map-placeholder .button-cookie {
  margin-inline: auto;
}

.map-placeholder-link {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.map-placeholder-link a {
  color: #fff;
  text-decoration: underline;
}

/* Stats */
.stats {
  position: relative;
  background: #1a1a1a center / cover no-repeat;
  padding: 4.5rem 0;
  color: var(--white);
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.stat-label {
  color: var(--white);
  font-weight: 400;
  font-size: 1rem;
}

.stat-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0.9rem auto 0;
  max-width: 120px;
  overflow: hidden;
}

.stat-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.2s ease;
}

.stat-bar.is-on > span {
  width: var(--pct, 100%);
}

/* Legal pages */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem 0;
}

.page-hero h1 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.legal {
  padding: 3rem 0 4rem;
}

.legal-content {
  max-width: 820px;
}

.legal-content dl {
  margin: 0 0 1rem;
}

.legal-content dt,
.legal-content dd {
  margin: 0.25rem 0;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.notice {
  background: #f4f8ec;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #cfcfcf;
  font-size: 0.95rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.footer-widgets h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.footer-widgets a {
  color: #cfcfcf;
}

.footer-widgets a:hover {
  color: var(--accent);
}

.footer-widgets p {
  margin: 0 0 0.4rem;
}

.footer-bottom {
  background: var(--footer-bottom);
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: #bdbdbd;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

/* Mobile */
@media (max-width: 900px) {
  .about-grid,
  .stats-grid,
  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    border-bottom: none;
    background: transparent;
  }

  .header-shell {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .header-logo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid #ececec;
  }

  .header-logo-inner {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    padding: 0.7rem 0;
  }

  .header-info {
    justify-content: flex-start;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    padding: 0.85rem 0 1rem;
    border-bottom: 1px solid #ececec;
    margin-top: 4.6rem;
  }

  .hero,
  .hero-track {
    min-height: 42vh;
    height: 42vh;
  }

  .map-frame {
    height: 320px;
  }

  .about,
  .stats {
    padding: 2.75rem 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brand img {
    width: 160px;
  }

  .phones a {
    font-size: 0.95rem;
  }
}
