/* ============================================================
   JARDINERÍA BELÉN — Global Stylesheet
   Fonts: Playfair Display (display) + DM Sans (body)
   Palette: Green #2d6a2d / Dark green #1a3d1a / Gold accent #c8a84b
   ============================================================ */

/* Fonts loaded via <link> in HTML for performance */

/* System font fallbacks while web fonts load */
:root {
  --font-display: 'Playfair Display', Georgia, Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CSS Variables ── */
:root {
  --green: #2d6a2d;
  --green-dark: #1a3d1a;
  --green-mid: #3d8b3d;
  --green-light: #e8f5e8;
  --gold: #c8a84b;
  --gold-light: #f5edd8;
  --text: #1a1a1a;
  --text-muted: #5a6a5a;
  --white: #ffffff;
  --off-white: #f7f9f4;
  --border: #d4e6d4;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(45,106,45,0.12);
  --shadow-lg: 0 16px 48px rgba(45,106,45,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1280px;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  line-height: 1.2;
  color: var(--green-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,45,0.35);
}

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

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b8963d;
  border-color: #b8963d;
  transform: translateY(-2px);
}

.btn-wa {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}
.btn-wa:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

/* ── Section spacing ── */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--green-dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(26,61,26,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem,4vw,2.5rem);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: white; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--green-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white);
  font-size: 1.5rem;
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  font-weight: 600;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,61,26,0.82) 0%,
    rgba(26,61,26,0.55) 50%,
    rgba(45,106,45,0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(6rem,12vw,9rem) clamp(1rem,4vw,2.5rem) clamp(4rem,8vw,6rem);
  margin-left: max(calc((100vw - var(--max-w)) / 2), 1rem);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.hero-badge span { color: var(--gold); }
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.25rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }


/* ── Why Us (Feature Strip) ── */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--green-light); }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background var(--transition);
}
.feature-item:hover .feature-icon { background: var(--green); }
.feature-icon svg { width: 26px; height: 26px; fill: var(--green); stroke: var(--green); transition: fill var(--transition), stroke var(--transition); }
.feature-item:hover .feature-icon svg { fill: var(--white); stroke: var(--white); }
.feature-item h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.82rem; }

/* ── About / Working section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-badge-float {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-width: 130px;
}
.about-badge-float strong {
  display: block;
  font-size: 2.4rem;
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  color: var(--gold);
  line-height: 1;
}
.about-badge-float span { font-size: 0.75rem; opacity: 0.85; }
.about-content { padding: 1rem 0; }
.about-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.85rem; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.about-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d6a2d'%3E%3Cpath d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}
.about-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ── Services Grid ── */
.services-intro { max-width: 700px; margin-bottom: 3.5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover img { transform: scale(1.06); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,61,26,0.92) 0%, rgba(26,61,26,0.15) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: var(--transition);
}
.service-card-num {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--gold);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.service-card h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: rgba(255,255,255,0.8); font-size: 0.85rem; line-height: 1.5; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  transition: gap var(--transition);
}
.service-card:hover .service-card-link { gap: 0.7rem; }
.service-card-link svg { width: 16px; height: 16px; fill: var(--gold); }

/* ── How We Work ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--green-light), var(--green), var(--green-light));
  z-index: 0;
}
.step-item { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  box-shadow: 0 4px 16px rgba(45,106,45,0.2);
}
.section-dark .step-num { background: var(--green-dark); border-color: var(--gold); color: var(--gold); }
.step-item h4 { margin-bottom: 0.5rem; }
.step-item p { font-size: 0.88rem; max-width: 200px; margin: 0 auto; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-size: 4rem;
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  color: var(--green-light);
  line-height: 1;
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--gold); }
.testimonial-text { font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { font-weight: 700; font-size: 0.88rem; color: var(--green-dark); }
.testimonial-location { font-size: 0.78rem; color: var(--text-muted); }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item { overflow: hidden; position: relative; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  display: block;
  font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item span { font-size: 0.82rem; opacity: 0.82; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem,5vw,4rem) clamp(1.5rem,4vw,3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%;
  padding-bottom: 60%;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--off-white);
  padding: 0.75rem 0;
  margin-top: 72px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.35rem;
  opacity: 0.5;
}
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { color: var(--green-dark); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: clamp(5rem,10vw,8rem) 0 clamp(3rem,6vw,5rem);
  text-align: center;
  margin-top: 72px;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 620px; margin: 0 auto 1.5rem; }

/* ── Service detail page ── */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(2rem,5vw,5rem);
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}
.sidebar-card h4 { margin-bottom: 1rem; }
.sidebar-services { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-services a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.sidebar-services a:hover { background: var(--green-light); color: var(--green-dark); }
.sidebar-services a.active { background: var(--green); color: var(--white); }
.sidebar-services a svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.benefit-item {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.benefit-item h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.benefit-item p { font-size: 0.82rem; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
  gap: 1rem;
}
.faq-question svg { width: 20px; height: 20px; fill: var(--green); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 400px; padding-top: 0.75rem; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,5rem);
}
.contact-info-block { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: 0.85rem; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info-item a { color: var(--green); font-weight: 600; }
.contact-info-item a:hover { color: var(--green-dark); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--green-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,45,0.1); }
.form-group textarea { resize: vertical; min-height: 140px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Footer ── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: clamp(3rem,6vw,5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem,4vw,4rem);
  padding-bottom: 3rem;
}
.footer-logo {
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 0.88rem; line-height: 1.65; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 16px; height: 16px; fill: white; }
.footer-col h5 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.8); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }

/* ── Mobile CTA Buttons ── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.mobile-cta-call { background: #1a5fb4; color: white; }
.mobile-cta-wa { background: #25d366; color: white; }
.mobile-cta svg { width: 20px; height: 20px; fill: white; }

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--green-dark);
  color: var(--white);
  z-index: 9999;
  padding: 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-text { flex: 1; min-width: 260px; font-size: 0.85rem; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.cookie-btn-accept { background: var(--gold); color: white; border-color: var(--gold); }
.cookie-btn-reject { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.cookie-btn-config { background: transparent; color: rgba(255,255,255,0.7); border-color: transparent; font-size: 0.78rem; }
.cookie-btn:hover { opacity: 0.85; }

/* Cookie config modal */
#cookie-config {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
#cookie-config.visible { display: flex; }
.cookie-config-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.cookie-config-box h3 { margin-bottom: 1rem; }
.cookie-category { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.cookie-category-header h4 { font-size: 0.95rem; }
.cookie-category p { font-size: 0.82rem; color: var(--text-muted); }
.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.cookie-config-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* Manage cookies button */
#manage-cookies-btn {
  position: fixed;
  bottom: 5rem;
  left: 1rem;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  z-index: 980;
  opacity: 0.7;
  transition: opacity var(--transition);
  display: none;
}
#manage-cookies-btn:hover { opacity: 1; }
#manage-cookies-btn.visible { display: block; }

/* ── Legal Pages ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content li { font-size: 0.92rem; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.25rem; list-style: disc; }
.legal-content a { color: var(--green); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; }
.anim.in { animation: fadeUp 0.6s ease forwards; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img-wrap img { height: 300px; }
  .about-badge-float { bottom: 0; right: 0; }
  .steps-grid::before { display: none; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:first-child { grid-row: auto; grid-column: 1 / -1; height: 220px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; }
  #cookie-banner { padding-bottom: 5rem; }
  #manage-cookies-btn { bottom: 6rem; }

  /* Hero móvil */
  .hero-content {
    padding: 6rem 1.25rem 3rem;
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* ===== LEGAL PAGES ===== */
.legal-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 6rem 0 3rem;
  color: #fff;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin: 0.5rem 0 0;
}

.legal-content {
  padding: 3rem 0 5rem;
}
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.legal-body h2 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 0.4rem;
}
.legal-body h3 {
  color: var(--green);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.legal-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
}
.legal-body ul li {
  margin-bottom: 0.4rem;
}
.legal-body a {
  color: var(--green);
  text-decoration: underline;
}
.legal-body a:hover { color: var(--green-dark); }
.legal-date {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  color: #888;
  font-size: 0.9rem;
}

/* Cookie table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.9rem;
}
.cookie-table th {
  background: var(--green-dark);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.cookie-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #e0e0e0;
}
.cookie-table tr:nth-child(even) td { background: #f8f8f8; }

.cookie-manage-section {
  background: #f0f7f0;
  border-left: 4px solid var(--green);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}
.cookie-manage-section h2 {
  margin-top: 0 !important;
  border: none !important;
  padding: 0 !important;
}

/* ── Testimonial Google badge ── */
.testimonial-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.testimonial-google svg { flex-shrink: 0; }

/* ── Logo image en navbar ── */
.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.navbar.scrolled .nav-logo-img {
  filter: brightness(0) invert(1);
}

/* ── Logo image en footer ── */
.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 1rem;
}

/* ── Semantic replacements (visually identical to headings) ── */
.feat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.cookie-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', 'Georgia', 'Palatino Linotype', Palatino, serif;
}
.cookie-cat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  display: block;
}
