:root {
  --green: #173f35;
  --green-2: #245849;
  --green-pale: #eaf1eb;
  --blue: #183b56;   /* en desuso: el contacto pasó al verde de la paleta */
  --gold: #d5a45b;
  --gold-hover: #e0b66f;
  --cream: #faf8f2;
  --paper: #ffffff;
  --ink: #172923;
  --muted: #4a5b54;
  --line: #d7e0da;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(23, 63, 53, .08);
  --shadow-hover: 0 15px 35px rgba(23, 63, 53, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px; line-height: 1.65;
}

/* CONTROL DE VISTAS INTERNAS (UN SOLO HTML) */
.page-view { display: none; }
.page-view.active { display: block; animation: fadeIn .22s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #c18127; outline-offset: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 1000;
  padding: 12px 16px; background: white; color: var(--green); border: 2px solid;
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* BARRA SUPERIOR */
.topbar { background: var(--green); color: white; font-size: 16px; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }

/* HEADER Y NAVEGACIÓN */
header {
  position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--green); font-size: 26px;
  line-height: 1.15; font-weight: 850; letter-spacing: -.4px;
}
.brand-mark { width: 46px; height: auto; flex: 0 0 46px; display: block; }
.brand-text { display: block; }
.brand small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 4px; }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 16px; text-decoration: none; font-weight: 700; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Menú desplegable de servicios */
.nav-item-dropdown { position: relative; }
.dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; font: inherit; font-size: 16px;
  font-weight: 700; color: var(--ink); cursor: pointer; padding: 12px 0;
}
.dropdown-trigger svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-item-dropdown:hover .dropdown-trigger svg,
.nav-item-dropdown:focus-within .dropdown-trigger svg,
.nav-item-dropdown.active .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 290px;
  background: white; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 10px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 600;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* En pantalla táctil no existe :hover, así que el menú se abre con clic. */
@media (hover: none) {
  .nav-item-dropdown:hover .dropdown-menu { opacity: 0; visibility: hidden; }
  .nav-item-dropdown.active .dropdown-menu { opacity: 1; visibility: visible; }
}

.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 600;
  color: var(--ink); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.dropdown-menu a:hover {
  background: var(--green-pale); color: var(--green); text-decoration: none;
}
.dropdown-menu a svg { width: 18px; height: 18px; color: var(--green-2); flex-shrink: 0; }

/* BOTONES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 13px 22px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: #0f3028; }
.btn-gold { background: var(--gold); color: #1d281f; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green-pale); }
.btn-white { background: white; color: var(--green); border-color: white; }
.btn-white:hover { background: #f0f4f1; }
.btn-nav { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* BREADCRUMBS */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 20px;
}
.breadcrumbs a { color: var(--green); text-decoration: none; font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span.separator { color: #a4b3ac; }

/* SECCIONES Y ENCABEZADOS */
section { padding: 72px 0; }
.section-soft { background: var(--cream); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 19px; }
.eyebrow { display: inline-block; color: var(--green-2); font-size: 15px; font-weight: 850; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 14px; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--green); letter-spacing: -.5px; }
h1 { font-size: clamp(33px, 4.3vw, 50px); margin: 0 0 20px; max-width: 800px; }
h2 { font-size: clamp(28px, 3.2vw, 39px); margin: 0 0 16px; }
h3 { font-size: 21px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; line-height: 1.6; color: #2f4239; max-width: 680px; }

/* HERO PRINCIPAL */
.hero {
  position: relative; overflow: hidden; background: var(--cream);
  padding: 64px 0; isolation: isolate;
}
.hero-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
/* Velo crema sobre el video: el titular tiene que seguir leyéndose.
   Más denso a la izquierda, donde está el texto; más abierto a la derecha. */
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(250,248,242,.84) 0%,
    rgba(250,248,242,.70) 45%,
    rgba(250,248,242,.56) 100%);
}
/* Sin video: en pantalla pequeña, con movimiento reducido o con ahorro de
   datos activo. Queda el póster fijo, que pesa 29 KB. */
@media (max-width: 860px), (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
  .hero-bg-video { display: none; }
  .hero {
    background: var(--cream) url("../img/hero-fondo.jpg") center / cover no-repeat;
  }
}
.contours { display: none; position: absolute; z-index: -1; right: -60px; top: -40px; width: min(52%, 640px); opacity: .5; color: #6d8d79; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card {
  background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow); position: relative;
}
.hero-media-frame {
  width: 100%; border-radius: 14px; overflow: hidden; margin-bottom: 18px; background: #f1f5ef;
}
.hero-media-frame video,
.hero-media-frame img {
  width: 100%; max-height: 250px; object-fit: cover; display: block;
}
.hero-card .map-illustration { width: 100%; max-height: 235px; display: block; margin: 0 auto; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 14px; }
.trust-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.trust-point {
  border-top: 3px solid var(--gold); padding-top: 14px;
  font-size: 16px; font-weight: 700; color: var(--green); line-height: 1.4;
  /* misma altura en los tres, para que las líneas doradas queden alineadas
     y el texto no quede desparejo */
  display: flex; align-items: flex-start; min-height: 76px;
  text-wrap: balance;
}

/* TARJETAS COMPACTAS DE SERVICIOS (EN INICIO) */
.services-compact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.service-compact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(23,63,53,.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-compact-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--green-2);
}
.service-compact-card p {
  color: var(--muted); font-size: 16px; margin: 0 0 12px; line-height: 1.5;
}
.service-card-featured {
  grid-column: 1 / -1; max-width: 680px; margin-inline: auto; width: 100%;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 800; color: var(--green);
}
.card-link svg { width: 17px; height: 17px; transition: transform .15s ease; }
.service-compact-card:hover .card-link svg { transform: translateX(4px); }

/* TARJETAS DETALLADAS (DENTRO DE CADA PESTAÑA DE SERVICIO) */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: white; box-shadow: 0 5px 18px rgba(23,63,53,.035);
  display: flex; flex-direction: column; justify-content: space-between;
}
.icon-box {
  width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center;
  border-radius: 14px; background: var(--green-pale); color: var(--green);
}
.icon-box svg { width: 28px; height: 28px; }
.service-card h3 { margin: 2px 0 6px; }
.service-card .intro { color: var(--muted); margin: 0; }
.service-list { list-style: none; margin: 16px 0 0; padding: 0; flex-grow: 1; }
.service-list li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid #edf0ed; font-size: 17px; }
.service-list li::before { content: "✓"; position: absolute; left: 2px; top: 9px; color: var(--green-2); font-weight: 900; }

.plain-note { background: #f3f6f2; border-left: 4px solid var(--gold); padding: 16px 18px; border-radius: 0 12px 12px 0; margin-top: 18px; font-size: 16px; }

/* PASOS (CÓMO TRABAJAMOS) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--green-pale); min-height: 200px; }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; background: var(--green); color: white; border-radius: 50%; font-weight: 850; margin-bottom: 18px; }
.step p { margin: 0; color: #394d43; font-size: 16px; }

/* POR QUÉ ELEGIRNOS Y COBERTURA FRECUENTE */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.why-panel { background: var(--green); color: white; border-radius: 22px; padding: 32px; }
.why-panel h3 { color: white; }
.why-panel p { color: #edf4ef; }
.why-list { list-style: none; padding: 0; margin: 0; color: white; }
.why-list li { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 17px; }
.why-list li:last-child { border-bottom: 0; }
.why-list svg { flex: 0 0 25px; width: 25px; height: 25px; color: var(--gold); margin-top: 3px; }

.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.region {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 8px; text-align: center; font-weight: 800; font-size: 16px; color: var(--green);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 92px;            /* todas del mismo alto, sin importar el largo del nombre */
}
.region svg { display: block; margin: 0 auto 6px; width: 24px; height: 24px; color: var(--green-2); }

/* PREGUNTAS FRECUENTES */
.faq-list { display: grid; gap: 14px; max-width: 920px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: white; }
summary { cursor: pointer; padding: 20px 32px 20px 0; color: var(--green); font-size: 20px; font-weight: 800; position: relative; }
summary::marker { color: var(--green-2); }
details p { padding: 0 0 16px; color: var(--muted); margin: 0; }
details p strong { color: var(--ink); }
.faq-bullets {
  margin: 0 0 20px; padding-left: 22px; color: var(--muted);
}
.faq-bullets li { margin-bottom: 8px; font-size: 17px; }
.faq-bullets li strong { color: var(--ink); }

/* VISTA INTERNA DE CADA SERVICIO Y SU VIDEO */
.service-detail-hero {
  background: linear-gradient(180deg, var(--cream) 0%, white 100%);
  padding: 46px 0 56px;
}
.service-detail-grid {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: start;
}
.media-container {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 110px;
}
.media-preview-box {
  width: 100%; min-height: 260px; background: #132a23;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0; overflow: hidden;
}
.media-preview-box video,
.media-preview-box img {
  width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block;
}
.media-caption {
  padding: 20px; background: white; border-top: 1px solid var(--line);
}
.media-caption h4 { margin: 0 0 6px; font-size: 18px; }
.media-caption p { font-size: 15px; color: var(--muted); margin: 0; }

.deliverables-box {
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; margin: 30px 0 0; box-shadow: 0 4px 16px rgba(0,0,0,.03);
}
.deliverables-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px;
}
.deliverable-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--green-pale); padding: 14px 16px; border-radius: 12px;
}
.deliverable-item svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.deliverable-item strong { display: block; font-size: 16px; color: var(--green); }
.deliverable-item span { font-size: 14px; color: var(--muted); }

/* FORMULARIO Y CONTACTO */
.contact-section { background: var(--green); color: white; }
.contact-section h2, .contact-section h3 { color: white; }
.contact-section .section-head p { color: #e0e9ed; }
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 32px; align-items: start; }
.contact-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 20px; padding: 28px; }
.contact-panel p { color: #e0e9ed; }
.contact-method { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0; }
.contact-method svg { width: 27px; height: 27px; flex: 0 0 27px; color: var(--gold); }
.contact-method a { color: white; overflow-wrap: anywhere; text-underline-offset: 4px; font-weight: 700; font-size: 19px; }
.contact-method strong { display: block; font-size: 15px; color: #cedde6; }
.accompaniment-box {
  margin-top: 24px; padding: 16px; border-radius: 12px;
  background: rgba(255,255,255,.1); border-left: 4px solid var(--gold);
  font-size: 16px; color: white;
}

form { background: white; color: var(--ink); padding: 30px; border-radius: 20px; }
form h3 { color: var(--green); }
.form-intro { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 17px; font-weight: 800; color: var(--ink); }
input, select, textarea {
  width: 100%; min-height: 54px; border: 2px solid #aabbb0; border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 18px; color: var(--ink); background: white;
}
textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; margin-top: 20px; font-size: 19px; }
.privacy-note { font-size: 15px; color: var(--muted); margin: 12px 0 0; }

/* FOOTER COMPACTO */
footer {
  background: #102e27; color: #e7f0e9;
  padding: 20px 0; font-size: 15px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-right: 76px;
}
footer p { margin: 0; }
footer a { color: white; }

/* BOTÓN FLOTANTE WHATSAPP */
.floating-wa {
  position: fixed; z-index: 900; right: 20px; bottom: 16px; width: 60px; height: 60px;
  border-radius: 50%; display: grid; place-items: center; background: #167c48; color: white;
  box-shadow: 0 5px 18px rgba(0,0,0,.25); text-decoration: none; border: 3px solid white;
  transition: transform .2s ease;
}
.floating-wa:hover { transform: scale(1.08); }
.floating-wa svg { width: 30px; height: 30px; }
.floating-wa:focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { align-items: flex-start; padding: 17px 0; flex-direction: column; gap: 14px; }
  .nav-links { gap: 12px 18px; }
  .hero-grid, .why-grid, .contact-grid, .service-detail-grid,
  .services-compact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 50px 0; }
  .hero-card { max-width: 640px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .media-container { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 18px; }
  .brand-mark { width: 38px; height: auto; flex: 0 0 38px; }
  .brand { font-size: 23px; gap: 10px; }
  .wrap { width: min(100% - 30px, 1160px); }
  .topbar-inner { padding: 9px 0; align-items: flex-start; flex-direction: column; gap: 2px; }
  
  .nav-links { display: flex; flex-direction: column; width: 100%; gap: 8px; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a, .dropdown-trigger {
    background: #f2f6f2; padding: 10px 14px; border-radius: 8px; width: 100%; justify-content: space-between;
  }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 1px solid var(--line); margin-top: 4px; display: none;
  }
  .nav-item-dropdown.active .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu {
    display: block;
  }
  .nav-links .nav-contact { grid-column: 1 / -1; text-align: center; background: var(--green); color: white; display: block; }
  
  .hero { padding: 38px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 27px; }
  .lead { font-size: 19px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-points { grid-template-columns: 1fr; gap: 12px; }
  .trust-point { padding: 10px 0 0; }
  section { padding: 54px 0; }
  .services-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-compact-card { padding: 20px; }
  .step { min-height: auto; }
  .contact-panel, form { padding: 22px; }
  .field.full { grid-column: auto; }
  .footer-inner { padding-right: 0; padding-bottom: 50px; }
  .floating-wa { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* ============================================================
   AGREGAR AL FINAL DE css/style.css
   (no reemplaza nada: solo se pega al final del archivo)
   ============================================================ */

/* 1. Credencial profesional en el panel de contacto.
      Evita tener que escribir estilos dentro del HTML. */
.contact-method .credential {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

/* 2. Textos que estaban demasiado pequeños para público adulto.
      14 y 15px en gris claro son difíciles de leer después de los 50. */
.deliverable-item span { font-size: 16px; }
.media-caption p      { font-size: 16px; }
.contact-method strong { font-size: 16px; }
.privacy-note         { font-size: 16px; }

/* 3. font-weight 850 no existe en fuentes no variables:
      Windows lo redondea de forma impredecible. 800 es estable. */
.brand, .eyebrow { font-weight: 800; }

/* 4. El servicio destacado ahora es "Predios y linderos".
      Marco dorado para que se distinga del resto. */
.service-compact-card.service-card-featured {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 60%);
}

/* 5. Enlaces dentro del mensaje de estado del formulario,
      para el caso en que el navegador bloquee WhatsApp. */
#form-status a { color: var(--green); font-weight: 800; text-underline-offset: 3px; }
