/* Alfredo's Landscaping Service — estilos */
:root {
  --green-900: #1f3d2b;
  --green-700: #2f5d3f;
  --green-500: #4b8a5c;
  --green-100: #e8f1ea;
  --earth: #b5651d;
  --earth-dark: #8f4f16;
  --ink: #1d2420;
  --muted: #5d6a62;
  --bg: #ffffff;
  --bg-alt: #f6f4ee;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none; }
[hidden] { display: none !important; }

/* Botones */
.btn {
  display: inline-block;
  background: var(--earth);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--earth);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--earth-dark); border-color: var(--earth-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Barra superior */
.topbar { background: var(--green-900); color: #dfe9e2; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; gap: 12px; }
.topbar-phone { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Encabezado */
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--green-900); text-decoration: none; font-size: 1.1rem; }
.logo svg { width: 32px; height: 32px; color: var(--green-500); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--green-500); }
.nav a.btn { color: #fff; }
.menu-toggle, .menu-btn { display: none; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(20, 45, 30, .88) 0%, rgba(31, 61, 43, .65) 55%, rgba(31, 61, 43, .35) 100%),
    url("img/hero.jpg") center/cover no-repeat,
    radial-gradient(circle at 80% 20%, #6aa577 0, #2f5d3f 45%, #1f3d2b 100%);
  padding: 110px 0 120px;
}
.hero-inner > * { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #cfe5d4; font-size: .85rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lead { font-size: 1.2rem; color: #e9f2eb; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; color: #dcebdf; }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--green-900); margin-bottom: 40px; }
.section-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--earth); margin: 14px auto 0; border-radius: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.feature { text-align: center; padding: 28px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.feature .icon { font-size: 2.2rem; width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--green-100); border-radius: 50%; }
.feature h3 { color: var(--green-700); }
.feature p { color: var(--muted); margin: 0; }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { height: 190px; background-size: cover; background-position: center; }
/* Reemplace con fotos reales en la carpeta img/ */
.img-design { background-image: url("img/diseno.jpg"), linear-gradient(135deg, #6aa577, #2f5d3f); }
.img-maint  { background-image: url("img/mantenimiento.jpg"), linear-gradient(135deg, #8dbb6a, #3f6e2c); }
.img-grade  { background-image: url("img/nivelacion.jpg"), linear-gradient(135deg, #c9a37a, #8f6a3f); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); flex: 1; }
.link { font-weight: 700; text-decoration: none; color: var(--earth); }

.more-services { margin-top: 44px; text-align: center; }
.more-services ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.more-services li { background: #fff; border: 1px solid #dfe5df; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--green-700); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { text-align: center; padding: 10px; }
.steps span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 800; font-size: 1.3rem; }
.steps p { color: var(--muted); margin: 0; }

.split { min-height: 280px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; }
.split-res { background-image: linear-gradient(to top, rgba(20,45,30,.9), rgba(20,45,30,.2)), url("img/residencial.jpg"), linear-gradient(135deg, #6aa577, #2f5d3f); }
.split-com { background-image: linear-gradient(to top, rgba(20,45,30,.9), rgba(20,45,30,.2)), url("img/comercial.jpg"), linear-gradient(135deg, #5b7f8f, #2f4d5d); }
.split-body { padding: 28px; }
.split-body p { color: #e6efe8; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.ph { aspect-ratio: 4 / 3; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #e3e9e2, #e3e9e2 10px, #edf1ec 10px, #edf1ec 20px); display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: .9rem; }

.review { margin: 0; background: #fff; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); font-style: italic; color: var(--ink); border-top: 4px solid var(--green-500); }
.review cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--green-700); }

.areas { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.areas li { background: var(--green-700); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; }

/* Cotización */
.cta-section { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; }
.cta-grid { align-items: center; gap: 48px; }
.cta-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.cta-section p { color: #dcebdf; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; font-size: 1.1rem; }
.contact-list li { margin-bottom: 10px; }
.contact-list a { color: #fff; font-weight: 700; }
.quote-form { background: #fff; color: var(--ink); padding: 30px; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.25); display: grid; gap: 14px; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; padding: 11px 12px; border: 1px solid #cdd6cf; border-radius: 8px; background: #fbfcfb; width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--green-500); border-color: var(--green-500); }

/* Pie de página */
.site-footer { background: #142a1d; color: #b9c9be; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; }
.site-footer a { display: block; color: #b9c9be; text-decoration: none; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.logo-footer { color: #fff; font-size: 1.15rem; }
.copyright { text-align: center; font-size: .85rem; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }

.call-fab { display: none; }
.thanks { min-height: 70vh; display: grid; place-items: center; }
.thanks .lead { color: var(--muted); }

/* Tableta */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Celular */
@media (max-width: 760px) {
  .topbar span { display: none; }
  .topbar .wrap { justify-content: center; }
  .menu-btn { display: block; width: 36px; height: 36px; position: relative; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; position: absolute; left: 6px; right: 6px; height: 3px; background: var(--green-900); border-radius: 2px;
  }
  .menu-btn span { top: 16px; }
  .menu-btn span::before { top: -8px; left: 0; right: 0; }
  .menu-btn span::after { top: 8px; left: 0; right: 0; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid #eef1ee; }
  .nav a.btn { margin-top: 10px; text-align: center; border-bottom: 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 84px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .call-fab {
    display: block; position: fixed; right: 16px; bottom: 16px; z-index: 60;
    background: var(--earth); color: #fff; padding: 14px 20px; border-radius: 999px;
    font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .site-footer { padding-bottom: 90px; }
}

/* Mensajes del formulario */
.clase-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clase-picker legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.clase-option { position: relative; }
.clase-option input { position: absolute; opacity: 0; }
.clase-option span { display: grid; place-items: center; text-align: center; min-height: 52px; padding: 6px; border: 2px solid #cdd6cf; border-radius: 8px; font-weight: 700; cursor: pointer; line-height: 1.2; }
.clase-option input:checked + span { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); }
.clase-option input:focus-visible + span { outline: 2px solid var(--green-500); }
.form-hint { margin: -6px 0 0; font-size: .9rem; color: var(--muted); }
.quote-form small { font-weight: 400; color: var(--muted); }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 480px) { .clase-picker { grid-template-columns: 1fr; } }

/* Reservar visita */
[data-cwp="booking"] { background: #fff; color: var(--ink); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 28px; }
.book-step { font-weight: 700; margin: 14px 0 8px; }
.book-days { display: flex; flex-wrap: wrap; gap: 8px; }
.book-chip { min-height: 48px; padding: 8px 16px; border: 2px solid #cdd6cf; border-radius: 999px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.book-chip[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); }
.book-form { box-shadow: none; padding: 0; margin-top: 8px; }
.book-done { font-size: 1.15rem; font-weight: 600; color: var(--green-700); }

/* Cambiar idioma */
.lang-toggle { background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 2px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.lang-toggle [aria-current] { font-weight: 800; text-decoration: underline; }

/* Páginas por ciudad */
.city-hero { padding: 72px 0; }
.city-list { columns: 2; padding-left: 20px; }
@media (max-width: 760px) { .city-list { columns: 1; } }
.form-status { margin: 0; font-size: .95rem; min-height: 1.2em; }
.form-status.error { color: #b3261e; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Taller (oficio auto-repair) */
.hero-auto { background: linear-gradient(115deg, rgba(20, 24, 32, .92), rgba(40, 52, 70, .7)), radial-gradient(circle at 80% 20%, #4a6a8f 0, #23324a 50%, #141a24 100%); }
.trade-auto .feature .icon { background: #e6edf5; }

/* Textos dentro de cajas blancas en la sección verde */
.cta-section .quote-form p, .cta-section [data-cwp="booking"] p { color: var(--muted); }
.cta-section .book-step, .cta-section .book-done { color: var(--ink); }
.cta-section .form-status.error { color: #b3261e; }
.areas a { color: #fff; text-decoration: none; }

/* Formulario de 2 pasos (pago por cliente) y botón fijo "Cotización gratis" */
.lead-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.lead-form legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; padding: 0; }
.lead-steps { display: flex; gap: 16px; margin: 0; font-size: .9rem; color: var(--muted); }
.lead-steps [aria-current] { color: var(--green-900); font-weight: 800; }
.lead-problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lead-problems .clase-option span { min-height: 60px; font-weight: 600; }
.lead-preview { max-width: 160px; max-height: 120px; border-radius: 8px; object-fit: cover; }
.lead-consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.lead-consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.lead-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.btn-ghost-dark { background: transparent; color: var(--green-900); border-color: var(--green-700); }
.btn-ghost-dark:hover { background: var(--green-100); color: var(--green-900); border-color: var(--green-700); }
.lead-foto { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.sticky-cta { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.sticky-cta:hover { transform: translateX(-50%) translateY(-1px); }
.faq details { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.city-barrios { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; list-style: none; }
@media (max-width: 480px) { .lead-problems { grid-template-columns: 1fr; } }

/* Colores del sitio (site.json) */
:root { --green-900: #073c8a; --green-700: #0B5CD5; --green-500: #4885e0; --green-100: #e2ebfa; --earth: #FFB020; --earth-dark: #cc8d1a; }
.hero { background: linear-gradient(115deg, #063375 0%, #0B5CD5 100%); }
