/* ============================================
   Desbroces en Madrid - Hoja de estilos global
   Paleta: Verde naturaleza + Marrón tierra
   ============================================ */

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --green-950: #052e16;

  --brown-50:  #fdf8f3;
  --brown-100: #f7ecd9;
  --brown-200: #ecd5b0;
  --brown-300: #ddb97e;
  --brown-400: #c99753;
  --brown-500: #b17a37;
  --brown-600: #8d5e29;
  --brown-700: #6d4820;
  --brown-800: #4f361c;
  --brown-900: #3a2a18;
  --brown-950: #231810;

  --earth-50:  #faf7f2;
  --earth-100: #f1ebe0;
  --earth-200: #e1d4bd;
  --earth-300: #ccb694;
  --earth-400: #b5956a;
  --earth-500: #9a7a4f;

  --sand-50:  #fefcf8;
  --sand-100: #faf5ea;
  --sand-200: #f2e8d0;
  --sand-300: #e6d3a6;

  --dark-50:  #f6f7f4;
  --dark-100: #ecefe8;
  --dark-200: #d5dccd;
  --dark-300: #b0bea5;
  --dark-400: #859a79;
  --dark-500: #647a56;
  --dark-600: #4b5e40;
  --dark-700: #37472f;
  --dark-800: #1f291e;
  --dark-900: #111812;
  --dark-950: #0a0e0a;

  --accent-50:  #fff7ed;
  --accent-100: #ffedd5;
  --accent-200: #fed7aa;
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --accent-700: #c2410c;
  --accent-800: #9a3412;
  --accent-900: #7c2d12;

  --white: #ffffff;
  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 2.5rem;

  --shadow-card: 0 4px 20px -2px rgba(20, 83, 45, 0.08), 0 2px 8px -2px rgba(20, 83, 45, 0.06);
  --shadow-card-hover: 0 20px 40px -12px rgba(20, 83, 45, 0.18), 0 8px 16px -8px rgba(20, 83, 45, 0.1);
  --shadow-float: 0 10px 40px -10px rgba(34, 197, 94, 0.5);
  --shadow-cta: 0 10px 30px -8px rgba(249, 115, 22, 0.45);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;

  --container-max: 1200px;
  --container-padding: 1rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--dark-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-700); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin-bottom: 1rem; }

ul { list-style: none; }

.container-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

@media (min-width: 640px) { .container-wrap { --container-padding: 1.5rem; } }
@media (min-width: 1024px) { .container-wrap { --container-padding: 2rem; } }

/* ============================================
   Botones
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-xl);
  transition: all 0.25s ease;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 2px solid transparent;
}
@media (min-width: 1024px) { .btn { padding: 0.75rem 1.4rem; font-size: 0.92rem; } }

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(22, 163, 74, 0.45);
}
.btn-primary:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(22, 163, 74, 0.55);
}

.btn-accent {
  background: var(--accent-500);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn-accent:hover {
  background: var(--accent-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn-outline:hover {
  background: var(--green-50);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius-2xl); }

/* ============================================
   Header / Navegación
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.header-topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.header-topbar .container-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 0.6rem;
}
@media (min-width: 768px) {
  .header-topbar .container-wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}

.topbar-contact { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.topbar-contact a:hover { color: var(--accent-400); }
.topbar-phone { color: var(--accent-400); font-weight: 800; font-size: 1rem; }

.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--dark-100);
  transition: all 0.3s ease;
}
.header-main.scrolled {
  box-shadow: 0 4px 24px -12px rgba(20, 83, 45, 0.2);
  border-bottom-color: var(--green-100);
}

.header-main .container-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
@media (min-width: 768px) { .header-main .container-wrap { height: 88px; gap: 1.25rem; } }
@media (min-width: 1024px) { .header-main .container-wrap { gap: 1.5rem; } }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--green-600), var(--brown-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-family: var(--font-display);
  box-shadow: 0 8px 20px -8px rgba(22, 163, 74, 0.5);
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--dark-900);
  white-space: nowrap;
  line-height: 1.1;
  display: block;
}
.brand-name span { color: var(--green-700); }
.brand-tagline {
  display: none;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-500);
  white-space: nowrap;
  line-height: 1.2;
}
@media (min-width: 640px) { .brand-tagline { display: block; } }
@media (min-width: 1024px) { .brand-name { font-size: 1.1rem; } }

.nav-main { display: none; }
@media (min-width: 1024px) {
  .nav-main { display: flex; align-items: center; gap: 0.15rem; flex: 1; justify-content: center; }
  .nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dark-700);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.3;
    text-align: center;
  }
  .nav-link:hover { color: var(--green-700); background: var(--green-50); }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0.75rem; right: 0.75rem; bottom: 0.25rem;
    height: 2px;
    background: var(--green-600);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-link:hover::after { transform: scaleX(1); }
}
@media (min-width: 1200px) {
  .nav-main { gap: 0.35rem; }
  .nav-link { padding: 0.5rem 0.95rem; font-size: 0.92rem; }
  .nav-link::after { left: 0.95rem; right: 0.95rem; }
}

.header-cta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
@media (min-width: 768px) { .header-cta { gap: 0.75rem; } }

.phone-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}
@media (min-width: 768px) { .phone-cta { display: inline-flex; } }
.phone-cta .phone-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phone-cta .phone-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark-500); white-space: nowrap; display: block; line-height: 1.2; }
.phone-cta .phone-number { font-weight: 800; color: var(--dark-900); font-size: 0.95rem; white-space: nowrap; display: block; line-height: 1.2; }

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--green-50);
  color: var(--green-800);
  position: relative;
  z-index: 110;
  transition: all 0.25s ease;
}
.mobile-menu-btn:hover {
  background: var(--green-100);
  transform: scale(1.05);
}
.mobile-menu-btn.is-open {
  background: var(--white);
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.15);
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.is-visible {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 100;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--dark-100);
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);
  flex-shrink: 0;
}
.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mobile-menu-brand-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-600), var(--brown-500));
  color: white;
  font-weight: 900;
  font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.mobile-menu-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--dark-900);
  line-height: 1.1;
}
.mobile-menu-brand-name span { color: var(--green-700); }

.mobile-menu-close {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--dark-50);
  color: var(--dark-700);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.mobile-menu-close:hover {
  background: var(--accent-50);
  color: var(--accent-600);
  transform: rotate(90deg);
}

.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  font-weight: 700;
  color: var(--dark-800);
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 0.15rem;
}
.mobile-menu-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--green-600);
  border-radius: 3px;
  transition: height 0.25s ease;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
  padding-left: 1.25rem;
}
.mobile-menu-nav a:hover::before { height: 60%; }
.mobile-menu-nav a .menu-arrow {
  color: var(--dark-400);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}
.mobile-menu-nav a:hover .menu-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--green-600);
}

.mobile-menu-section-label {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark-500);
}

.mobile-menu-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--dark-100);
  background: linear-gradient(180deg, var(--white) 0%, var(--green-50) 100%);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--dark-100);
  border-radius: var(--radius-md);
}
.mobile-menu-contact-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-contact-info { line-height: 1.2; }
.mobile-menu-contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-500);
}
.mobile-menu-contact-value {
  font-weight: 800;
  color: var(--dark-900);
  font-size: 0.95rem;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--sand-100) 50%, var(--earth-100) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 122, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container-wrap {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero .container-wrap { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(22, 163, 74, 0.1);
  color: var(--green-800);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(22, 163, 74, 0.15);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--green-700); }
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 0.75rem;
}
.hero-description {
  font-size: 1.05rem;
  color: var(--dark-600);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 520px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(20, 83, 45, 0.1);
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--dark-600);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-3xl);
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.85), rgba(109, 72, 32, 0.85)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Crect fill='%23166534' width='800' height='600'/%3E%3Cpath fill='%2315803d' d='M0 400 Q200 350 400 400 T800 400 L800 600 L0 600Z'/%3E%3Ccircle cx='150' cy='300' r='80' fill='%2316a34a' opacity='0.6'/%3E%3Ccircle cx='350' cy='260' r='100' fill='%2322c55e' opacity='0.5'/%3E%3Ccircle cx='580' cy='290' r='90' fill='%2316a34a' opacity='0.55'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}
.hero-visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-hover);
  max-width: 260px;
}
.hero-visual-card.top { top: 2rem; left: 2rem; }
.hero-visual-card.bottom { bottom: 2rem; right: 2rem; }
.hero-visual-card-title { font-weight: 800; color: var(--dark-900); margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.hero-visual-card-text { font-size: 0.85rem; color: var(--dark-600); margin: 0; }
.hero-visual-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   Secciones generales
   ============================================ */
section { padding-block: clamp(3rem, 7vw, 5rem); }

.section-header { text-align: center; margin-bottom: 3rem; max-width: 760px; margin-inline: auto; }
.section-eyebrow {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--green-50);
  color: var(--green-800);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border: 1px solid var(--green-200);
}
.section-eyebrow.brown {
  background: var(--brown-50);
  color: var(--brown-800);
  border-color: var(--brown-200);
}
.section-title { margin-bottom: 1rem; }
.section-title span { color: var(--green-700); }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--dark-600);
  margin: 0;
}

.bg-muted { background: var(--sand-50); }
.bg-green {
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
}
.bg-gradient-hero {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--sand-100) 100%);
}

/* ============================================
   Tarjetas de servicios
   ============================================ */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--dark-100);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--brown-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green-200);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--green-100), var(--brown-100));
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--green-600), var(--brown-500));
  color: white;
  transform: rotate(-5deg) scale(1.05);
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--dark-600); margin-bottom: 1.25rem; }
.service-features { margin-bottom: 1.5rem; }
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--dark-700);
}
.service-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 900;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--green-700);
}
.service-link:hover { color: var(--green-800); gap: 0.6rem; }

/* ============================================
   Por qué elegirnos
   ============================================ */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  text-align: left;
  border: 1px solid var(--dark-100);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--green-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--accent-50);
  color: var(--accent-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; color: var(--dark-600); margin: 0; }

/* ============================================
   Proceso
   ============================================ */
.process-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}
.process-step {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--dark-100);
  position: relative;
  transition: all 0.3s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--green-200);
}
.step-number {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.5);
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.92rem; color: var(--dark-600); margin: 0; }

/* ============================================
   Testimonios
   ============================================ */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--dark-100);
  box-shadow: var(--shadow-card);
}
.testimonial-stars {
  color: var(--accent-500);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  color: var(--dark-700);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-100);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--brown-500));
  color: white;
  font-weight: 900;
  font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
}
.author-name { font-weight: 800; color: var(--dark-900); }
.author-location { font-size: 0.85rem; color: var(--dark-500); }

/* ============================================
   Zonas / Municipios
   ============================================ */
.zones-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--sand-50) 100%);
}
.zones-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.zone-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--dark-100);
  border-radius: var(--radius-xl);
  font-weight: 700;
  color: var(--dark-800);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}
.zone-chip:hover {
  background: var(--green-50);
  border-color: var(--green-400);
  color: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(22, 163, 74, 0.3);
}
.zone-chip .zone-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  color: var(--green-600);
  font-size: 1.1rem;
}
.zone-chip:hover .zone-arrow { opacity: 1; transform: translateX(0); }

.zone-chip.priority {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(22, 163, 74, 0.55);
}
.zone-chip.priority:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
}
.zone-chip.priority .zone-arrow { color: var(--white); }

.zones-more {
  margin-top: 2rem;
  text-align: center;
}

/* ============================================
   CTA final
   ============================================ */
.cta-section {
  background:
    linear-gradient(135deg, rgba(22, 101, 52, 0.95) 0%, rgba(79, 54, 28, 0.95) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 40 Q20 30 40 40 T80 40' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-section .container-wrap { position: relative; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
.cta-section h2 span { color: var(--accent-400); }
.cta-section p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.cta-phone {
  margin-top: 1.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-400);
}
.cta-phone small { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; margin-bottom: 0.25rem; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--dark-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}
.footer-top-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600) 0%, var(--accent-500) 50%, var(--brown-500) 100%);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
}

.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-tagline { color: var(--dark-400); }
.footer-brand p {
  color: var(--dark-300);
  margin: 1.25rem 0;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
}
.footer-free-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-400);
  display: flex; align-items: center; justify-content: center;
}
.footer-free-text h4 { font-size: 0.9rem; color: var(--white); margin: 0; }
.footer-free-text p { font-size: 0.75rem; color: var(--dark-400); margin: 0; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-400);
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col li a {
  color: var(--dark-300);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.footer-col li a:hover { color: var(--white); }
.footer-col li a::before {
  content: "▸";
  color: var(--green-500);
  font-weight: 900;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-contact-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-lg);
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-contact-text strong { display: block; color: var(--white); font-size: 0.95rem; }
.footer-contact-text span { font-size: 0.8rem; color: var(--dark-400); }
.footer-contact-item a:hover .footer-contact-text strong { color: var(--green-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 1.5rem;
}
.footer-bottom .container-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom .container-wrap {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy { color: var(--dark-400); font-size: 0.85rem; margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer-legal a { color: var(--dark-400); font-size: 0.85rem; font-weight: 500; }
.footer-legal a:hover { color: var(--white); }

/* ============================================
   Botón WhatsApp flotante
   ============================================ */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 49;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: all 0.3s ease;
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(-5deg);
  color: white;
  box-shadow: 0 14px 40px -8px rgba(37, 211, 102, 0.7);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================
   Páginas internas / Landings municipales
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--sand-100) 100%);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--green-100);
}
.page-header-badge {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--green-200);
}
.page-header h1 { margin-bottom: 1rem; }
.page-header h1 span { color: var(--green-700); }
.page-header-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 0.5rem;
}
.page-header p {
  font-size: 1.05rem;
  color: var(--dark-600);
  max-width: 760px;
  margin: 0;
}

.two-col-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr 1fr; }
}

.info-box {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--dark-100);
  box-shadow: var(--shadow-card);
}
.info-box h2 { font-size: 1.4rem; margin-bottom: 1.25rem; color: var(--green-800); }
.info-box ul { display: flex; flex-direction: column; gap: 0.6rem; }
.info-box ul li {
  display: flex;
  gap: 0.6rem;
  color: var(--dark-700);
  font-size: 0.98rem;
  line-height: 1.5;
}
.info-box ul li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 900;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.comarca-box {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 60%, var(--brown-50) 100%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid var(--green-200);
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}
.comarca-tag {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: var(--green-600);
  color: var(--white);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.comarca-box h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.comarca-box h2 span { color: var(--green-700); }
.comarca-description {
  font-size: 1.05rem;
  color: var(--dark-700);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.comarca-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.comarca-feature {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  border: 1px solid var(--dark-100);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.feature-num {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--green-600);
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.comarca-feature p {
  font-size: 0.92rem;
  color: var(--dark-700);
  margin: 0;
  line-height: 1.5;
}

.content-section {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid var(--dark-100);
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}
.content-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.content-section h2 span { color: var(--green-700); }
.content-section p {
  font-size: 1rem;
  color: var(--dark-700);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.content-section p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-section { margin-bottom: 3rem; }
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--dark-100);
  transition: all 0.25s ease;
}
.faq-item:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-card);
}
.faq-question {
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.faq-question::before {
  content: "?";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 900;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-answer {
  color: var(--dark-700);
  line-height: 1.7;
  padding-left: 3.25rem;
  margin: 0;
}

/* Related zones */
.related-zones {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid var(--dark-100);
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}
.related-zones h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.related-zones-subtitle {
  color: var(--dark-600);
  margin-bottom: 1.5rem;
  max-width: 760px;
}
.related-zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.related-zone-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--sand-50);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-800);
  transition: all 0.25s ease;
}
.related-zone-chip:hover {
  background: var(--green-50);
  color: var(--green-800);
  border-color: var(--green-400);
  transform: translateY(-2px);
}
.related-zones-priority {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-100);
}
.related-zones-priority p {
  font-size: 0.88rem;
  color: var(--dark-500);
  margin-bottom: 1rem;
}
.priority-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.priority-chips .related-zone-chip {
  background: var(--green-600);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 24px -10px rgba(22, 163, 74, 0.55);
}
.priority-chips .related-zone-chip:hover {
  background: var(--green-700);
  color: var(--white);
}

.final-cta-box {
  text-align: center;
  padding: 3rem 2rem;
}

/* Utilidades */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================
   Formulario de contacto
   ============================================ */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}
.contact-info-card {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
  color: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card-hover);
}
.contact-info-card h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info-card > p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1);
  color: var(--accent-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}
.contact-item-value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid var(--dark-100);
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-800);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--dark-200);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-800);
  background: var(--white);
  transition: all 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-number { font-size: 1.5rem; }
  .content-section,
  .info-box,
  .comarca-box,
  .related-zones,
  .contact-form,
  .contact-info-card { padding: 1.5rem; }
  .faq-item { padding: 1rem 1.25rem; }
  .faq-answer { padding-left: 2.8rem; }
}
