:root {
  --maroon-900: #2D060C;
  --maroon-700: #7A0F20;
  --maroon-600: #93172B;
  --paper: #F5F1EB;
  --paper-2: #EBE5DA;
  --ink: #1A0F0D;
  --ink-soft: #5A4540;
  --gold: #C5A059;
  --gold-soft: #E0C992;
  --white: #FFFFFF;
  --line: rgba(197, 160, 89, 0.15);
  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(26, 15, 13, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 15, 13, 0.08);
  --shadow-lg: 0 16px 32px rgba(26, 15, 13, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif; /* Máxima legibilidad */
  font-size: 16px;
  line-height: 1.7; /* Mejor lectura */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.blueprint-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

.cota {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.cota::before, .cota::after {
  content: ""; flex: 1; height: 1px; background: var(--gold);
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(122, 15, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 36px; height: 36px; }
.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--white);
  font-size: 19px;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 3px;
}
nav.links { display: flex; gap: 36px; }
nav.links a {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  font-weight: 500;
}
nav.links a:hover { color: var(--white); }

.nav-cta {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--white) !important;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon-900) !important; }
.nav-cta-mobile { display: none; }
.menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--maroon-700);
  color: var(--white);
  padding: 110px 0 130px;
  overflow: hidden;
}

/* Solo las líneas de grid sutiles (como estaba antes) */
.hero::before {
  content: ""; 
  position: absolute; 
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-grid {
  position: relative; 
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; 
  align-items: center; 
  gap: 10px;
  font-size: 12px; 
  letter-spacing: 0.2em; 
  text-transform: uppercase;
  color: var(--gold-soft); 
  font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow::before { 
  content: ""; 
  width: 24px; 
  height: 1px; 
  background: var(--gold-soft); 
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 em { 
  color: var(--gold-soft); 
  font-style: normal; 
}

.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 54ch;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Estilos para la imagen del hero */
.hero-art {
  position: relative; 
  z-index: 2; 
  display: flex; 
  justify-content: center;
  align-items: center;
}
.hero-art img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--maroon-900); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-art { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; height: auto; }

.hero-stats {
  position: relative; 
  z-index: 2;
  display: grid; 
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
  text-align: center;
  justify-items: center; /* Centra cada item del grid */
}

.stat { 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat:last-child { border-right: none; }

.stat .num { 
  font-family: 'Fraunces', serif; 
  font-size: 36px; 
  color: var(--gold-soft); 
  font-weight: 600; 
  line-height: 1;
}

.stat .label { 
  font-size: 13px; 
  color: rgba(255,255,255,0.75); 
  letter-spacing: 0.03em; 
  margin-top: 10px; 
  display: block;
  max-width: 160px;
}
/* Imagen decorativa en la parte inferior del hero */
.hero-bottom-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%; /* Abarca menos de la mitad de la sección */
  z-index: 1; /* Detrás del contenido (que tiene z-index: 2) */
  overflow: hidden;
  pointer-events: none;
}

.hero-bottom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.6; /* Ajusta la opacidad si necesitas más o menos visibilidad */
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* ===== SECTIONS shared ===== */
section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 16px; }
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 17px; }

/* ===== SERVICIOS ===== */
#servicios { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.service-num {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; margin-bottom: 14px; font-family: 'Fraunces', serif; }
.service-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

/* ===== PROCESO ===== */
/* Imagen decorativa en la parte inferior de la sección proceso */
#proceso {
  position: relative;
  overflow: hidden; /* Importante para que la imagen no se salga */
}

.proceso-bottom-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%; /* Abarca menos de la mitad de la sección */
  z-index: 0; /* Detrás del contenido */
  overflow: hidden;
  pointer-events: none;
}

.proceso-bottom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.25; /* Más sutil porque el fondo ya es oscuro */
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Asegurar que el contenido esté por encima de la imagen */
#proceso .wrap {
  position: relative;
  z-index: 1;
}

#proceso { background: var(--maroon-900); color: var(--white); }
#proceso h2, 
#proceso h3 { color: var(--white); }  /* <-- Esto fuerza los títulos a blanco */
#proceso .section-head p { color: rgba(255,255,255,0.7); }
#proceso .cota { color: var(--gold-soft); }
#proceso .cota::before, #proceso .cota::after { background: var(--gold-soft); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute; top: 16px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  opacity: 0.5;
}
.tl-step { position: relative; padding-top: 48px; }
.tl-dot {
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--gold-soft);
  background: var(--maroon-900);
  z-index: 2;
}
.tl-step h3 { color: var(--white); font-size: 18px; margin-bottom: 10px; font-family: 'Fraunces', serif; }
.tl-step p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.6; }
.tl-step .tag {
  display: inline-block; margin-top: 14px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-soft); border: 1px solid rgba(224, 201, 146, 0.3);
  padding: 4px 10px; border-radius: 4px;
}

/* ===== MUNICIPIOS ===== */
#municipios { background: var(--paper-2); }
.muni-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.muni-chip {
  border: 1px solid rgba(197, 160, 89, 0.25);
  background: var(--paper);
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.25s ease;
  border-radius: var(--radius);
}
.muni-chip.active {
  background: var(--maroon-700); color: var(--white); border-color: var(--maroon-700);
  box-shadow: var(--shadow-sm);
}
.muni-chip.active .pin { color: var(--gold-soft); }
.muni-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.pin { 
  color: var(--gold); 
  font-size: 16px; 
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}
.muni-chip.active .pin { 
  color: var(--gold-soft); 
  font-size: 18px;
}
.muni-chip:hover .pin {
  transform: scale(1.2);
  color: var(--gold);
}

/* ===== REQUISITOS ===== */
#requisitos { background: var(--paper); }
.req-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.req-list { list-style: none; }
.req-list li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-soft);
}
.req-list li strong { color: var(--ink); font-weight: 600; }
.req-list li .req-mark {
  font-family: 'Fraunces', serif; color: var(--gold); flex-shrink: 0; width: 20px; font-size: 18px; line-height: 1.4;
}
.note-box {
  background: var(--maroon-700); color: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-md);
}
.note-box::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); border-radius: 4px 0 0 4px;
}
.note-box h3 { color: var(--gold-soft); font-size: 14px; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 600; }
.note-box p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 14px; line-height: 1.65; }
.note-box p:last-child { margin-bottom: 0; }

/* ===== CONTACTO ===== */
#contacto { background: var(--maroon-700); color: var(--white); position: relative; overflow: hidden; }
#contacto::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
#contacto .cota { color: var(--gold-soft); }
#contacto .cota::before, #contacto .cota::after { background: var(--gold-soft); }
.contact-info { display: flex; flex-direction: column; gap: 28px; margin-top: 12px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ico {
  width: 48px; 
  height: 48px; 
  flex-shrink: 0;
  border: 1px solid rgba(224, 201, 146, 0.4);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--gold-soft);
  font-size: 19px;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}
.contact-item:hover .ico {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-soft);
  transform: scale(1.05);
}
.contact-item h4 { font-size: 16px; color: var(--white); margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 600; }
.contact-item p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.phone-link { color: var(--gold-soft); font-size: 1.1rem; font-weight: 600; }
.phone-link:hover { color: var(--white); }

.form-card {
  background: var(--paper); color: var(--ink); padding: 40px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 22px; margin-bottom: 8px; }
.form-card p.hint { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 28px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  background: var(--white);
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.submit-btn {
  width: 100%; margin-top: 12px;
  background: var(--maroon-700); color: var(--white);
  padding: 16px; font-size: 15px; font-weight: 600;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn:hover { background: var(--maroon-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== FOOTER ===== */
footer { background: var(--maroon-900); color: rgba(255,255,255,0.5); padding: 40px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.footer-row .brand-text { color: rgba(255,255,255,0.85); font-size: 15px; }
.footer-phone { color: var(--gold-soft); font-weight: 500; }
.footer-phone:hover { color: var(--white); }

/* ===== FOOTER LOGO ===== */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  max-height: 45px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* Hace el logo blanco para que se vea sobre fondo oscuro */
  opacity: 0.9;
}
.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer-info span {
  font-size: 12.5px;
}

/* Responsive para footer con logo */
@media (max-width: 640px) {
  .footer-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }
  .footer-info {
    align-items: center;
  }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .hero-art { order: -1; max-width: 240px; margin: 0 auto 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
  .muni-grid { grid-template-columns: repeat(3, 1fr); }
  .req-layout, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; text-align: left; }
  .stat { border-right: none; }
}
@media (max-width: 640px) {
  nav.links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--maroon-700);
    flex-direction: column;
    padding: 24px 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 20px;
    z-index: 40;
  }
  nav.links.active { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline-flex; justify-content: center; margin-top: 8px; }
  .menu-btn { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .muni-grid { grid-template-columns: repeat(2, 1fr); }
  .form-two { grid-template-columns: 1fr; gap: 0; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 80px; }
  .wrap { padding: 0 20px; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }


/*======================================
  Botón flotante de WhatsApp
======================================*/

.whatsapp-float{
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:34px;
    box-shadow:0 12px 30px rgba(37,211,102,.35);
    z-index:9999;
    transition:.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover{
    background:#20ba5a;
    color:#fff;
    transform:scale(1.08);
    box-shadow:0 18px 40px rgba(37,211,102,.45);
}

.whatsapp-float span{
    position:absolute;
    right:78px;
    background:#1f2937;
    color:#fff;
    padding:10px 15px;
    border-radius:30px;
    white-space:nowrap;
    font-size:14px;
    font-weight:500;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.whatsapp-float:hover span{
    opacity:1;
    visibility:visible;
}

@keyframes whatsappPulse{

    0%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(37,211,102,.6);
    }

    70%{
        box-shadow:0 0 0 18px rgba(37,211,102,0);
    }

    100%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }

}

@media (max-width:768px){

    .whatsapp-float{
        width:58px;
        height:58px;
        font-size:30px;
        right:18px;
        bottom:18px;
    }

    .whatsapp-float span{
        display:none;
    }

}