:root {
  --verde: #3a7d5e;
  --verde-claro: #5aa882;
  --verde-palido: #e8f4ee;
  --rojo: #c0392b;
  --rojo-suave: #fdf0ee;
  --azul: #1e4a7a;
  --azul-claro: #2e6db4;
  --azul-palido: #e8f0f8;
  --crema: #f8f6f2;
  --crema-oscuro: #eeebe4;
  --texto: #161616;
  --texto-suave: #555;
  --blanco: #ffffff;
  --sombra: 0 4px 24px rgba(30, 74, 122, 0.08);
  --radio: 14px;
  --radio-lg: 28px;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--crema);
  color: var(--texto);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── TIPOGRAFÍA ── */
h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--texto-suave);
}

.italic {
  font-style: italic;
}
.verde {
  color: var(--verde);
}
.rojo {
  color: var(--rojo);
}
.azul {
  color: var(--azul);
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: clamp(64px, 8vw, 100px) 0;
}

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

/* ── URGENCY BAR ── */
.urgency-bar {
  background: var(--azul);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 101;
}
.urgency-bar strong {
  color: white;
}
.urgency-bar span {
  opacity: 0.75;
  margin-left: 8px;
}

/* ── NAVBAR ── */
nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58, 125, 94, 0.1);
  z-index: 100;
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--texto);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-logo span {
  color: var(--verde);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--texto-suave);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--verde);
}

.nav-cta {
  background: var(--verde) !important;
  color: var(--blanco) !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  transition:
    background 0.2s,
    transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--verde-claro) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--verde);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 24px;
    width: 240px;
    padding: 24px;
    background: var(--blanco);
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-img-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .card-1,
  .card-2 {
    display: none;
  }

  .hero-right img {
    width: 100%;
    height: auto;
    min-width: 0;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--verde);
  color: var(--blanco);
  box-shadow: 0 6px 28px rgba(58, 125, 94, 0.3);
}
.btn-primary:hover {
  background: #2d6a4f;
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(58, 125, 94, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--verde);
  border: 2px solid var(--verde);
}
.btn-secondary:hover {
  background: var(--verde-palido);
  transform: translateY(-2px);
}
.btn-rojo {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 6px 28px rgba(192, 57, 43, 0.3);
}
.btn-rojo:hover {
  background: #a93226;
  transform: translateY(-3px);
}
.btn-lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  background: var(--verde-palido);
  color: var(--verde);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge-azul {
  background: var(--azul-palido);
  color: var(--azul);
}
.badge-rojo {
  background: var(--rojo-suave);
  color: var(--rojo);
}

/* ══════════════════════════════════
     1. HERO
  ══════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 0 0 80px;
  position: relative;
  overflow: initial;
}

.hero-left {
  position: relative;
  z-index: 1;
}
.hero-sup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 3vh;
}
.hero-dot {
  width: 8px;
  height: 8px;
  background: var(--verde-claro);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}
.hero-sup span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--verde);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-left h1 {
  margin-bottom: 20px;
  line-height: 4rem;
}
.hero-left h1 em {
  font-style: italic;
  color: var(--verde);
  display: block;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--texto-suave);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(58, 125, 94, 0.12);
}
.trust-item {
  text-align: left;
}
.trust-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}
.trust-label {
  font-size: 0.78rem;
  color: var(--texto-suave);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-right {
  position: relative;
  z-index: 1;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radio-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--verde-palido), var(--crema-oscuro));
  box-shadow:
    var(--sombra),
    0 20px 60px rgba(58, 125, 94, 0.12);
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-img-placeholder .icon-person {
  width: 120px;
  height: 120px;
  background: var(--verde);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.hero-img-placeholder p {
  font-size: 0.85rem;
  color: var(--verde);
  font-weight: 600;
}
.hero-card-float {
  position: absolute;
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.card-1 {
  bottom: 80px;
  left: -30px;
  animation-delay: 0s;
}
.card-2 {
  top: 60px;
  right: -20px;
  animation-delay: 1.5s;
}
.card-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--texto);
}
.card-text span {
  font-size: 0.72rem;
  color: var(--texto-suave);
}
.card-icon {
  font-size: 1.4rem;
}

/* ══════════════════════════════════
     2. SERVICIOS
  ══════════════════════════════════ */
#servicios {
  background: var(--blanco);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.servicio-card {
  background: var(--crema);
  border-radius: var(--radio);
  padding: 30px 26px;
  border: 1px solid transparent;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.servicio-card.verde-card::before {
  background: var(--verde);
}
.servicio-card.rojo-card::before {
  background: var(--rojo);
}
.servicio-card.azul-card::before {
  background: var(--azul);
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(30, 74, 122, 0.1);
  border-color: rgba(58, 125, 94, 0.12);
}
.serv-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.serv-icon.verde-bg {
  background: var(--verde-palido);
}
.serv-icon.rojo-bg {
  background: var(--rojo-suave);
}
.serv-icon.azul-bg {
  background: var(--azul-palido);
}

.servicio-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--texto);
}
.servicio-card p {
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ══════════════════════════════════
     3. SOCIAL PROOF / CONFIANZA
  ══════════════════════════════════ */
#confianza {
  background: var(--crema);
}
.confianza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.testimonio-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: 0 2px 16px rgba(30, 74, 122, 0.06);
  border-top: 3px solid var(--verde-claro);
  transition: transform 0.2s;
}
.testimonio-card:hover {
  transform: translateY(-4px);
}
.testi-stars {
  color: #f4b400;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testi-texto {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--texto-suave);
  font-style: italic;
  margin-bottom: 16px;
}
.testi-autor {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--texto);
}
.testi-perfil {
  font-size: 0.75rem;
  color: var(--verde);
  font-weight: 600;
}
.testimonio-card {
  display: flex;
  flex-direction: column;
}

.testimonio-footer {
  margin-top: auto;
}

/* ══════════════════════════════════
     4. SOBRE MÍ
  ══════════════════════════════════ */
#sobre {
  background: var(--blanco);
}
.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: center;
}
.sobre-img-wrap {
  position: relative;
  border-radius: var(--radio-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--verde-palido), var(--azul-palido));
  box-shadow: 0 20px 60px rgba(30, 74, 122, 0.12);
}
.sobre-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sobre-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 4rem;
  color: var(--verde);
}
.sobre-img-placeholder p {
  font-size: 0.8rem;
  color: var(--verde);
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
}
.sobre-content .badge {
  margin-bottom: 16px;
}
.sobre-content h2 {
  margin-bottom: 20px;
}
.sobre-content p {
  margin-bottom: 14px;
  line-height: 1.75;
}
.sobre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.sobre-pill {
  background: var(--crema);
  border: 1px solid rgba(58, 125, 94, 0.15);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto);
}

/* ══════════════════════════════════
     5. MODALIDAD
  ══════════════════════════════════ */
#modalidad {
  background: var(--crema);
}
.modalidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.modalidad-card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: transform 0.25s;
}
.modalidad-card:hover {
  transform: translateY(-5px);
}
.modal-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.modalidad-card h3 {
  margin-bottom: 10px;
}
.modalidad-card p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ══════════════════════════════════
     6. OBRAS SOCIALES
  ══════════════════════════════════ */
#obras {
  background: var(--azul);
  padding: 52px 0;
}
.obras-inner {
  text-align: center;
}
.obras-inner h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.obras-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.obra-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 22px;
  border-radius: 100px;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.obras-nota {
  margin-top: 18px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ══════════════════════════════════
     7. MAP
  ══════════════════════════════════ */

.map-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.map-content {
  max-width: 520px;
}

.map-text {
  margin-top: 18px;
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.map-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-info-item span {
  font-size: 20px;
}

.map-info-item p {
  margin: 0;
  font-weight: 500;
}

.map-embed {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.map-embed iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .map-wrapper {
    grid-template-columns: 1fr;
  }

  .map-content {
    max-width: 100%;
  }

  .map-embed iframe {
    height: 420px;
  }
}

/* ══════════════════════════════════
     7. FAQ
  ══════════════════════════════════ */
#faq {
  background: var(--blanco);
}
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--crema);
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid rgba(58, 125, 94, 0.08);
}
.faq-q {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--texto);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s;
}
.faq-q:hover {
  color: var(--verde);
}
.faq-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s;
  color: var(--verde);
  flex-shrink: 0;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s;
  font-size: 0.88rem;
  color: var(--texto-suave);
  line-height: 1.75;
  padding: 0 24px;
  background: var(--blanco);
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding: 16px 24px 22px;
}

/* ══════════════════════════════════
     8. CTA FINAL
  ══════════════════════════════════ */
#cta-final {
  background: var(--crema);
  text-align: center;
}
.cta-final-box {
  background: var(--blanco);
  border: 1px solid rgba(58, 125, 94, 0.1);
  border-radius: var(--radio-lg);
  padding: clamp(44px, 8vw, 76px);
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(58, 125, 94, 0.08);
}
.cta-final-box::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--verde-palido) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final-box h2 {
  margin-bottom: 12px;
  position: relative;
}
.cta-final-box p {
  margin-bottom: 28px;
  position: relative;
}
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
}
.form-input {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border: 2px solid rgba(58, 125, 94, 0.15);
  border-radius: 100px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.93rem;
  background: var(--crema);
  color: var(--texto);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--verde-claro);
}
.form-input::placeholder {
  color: #bbb;
}
.form-textarea {
  border-radius: var(--radio);
}

/* ══════════════════════════════════
     FOOTER
  ══════════════════════════════════ */
footer {
  background: var(--texto);
  color: rgba(255, 255, 255, 0.55);
  padding: 44px 0;
  text-align: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--blanco);
  margin-bottom: 10px;
  font-weight: 700;
}
.footer-logo span {
  color: var(--verde-claro);
}
footer p {
  font-size: 0.8rem;
  margin-bottom: 5px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--verde-claro);
}

/* ══════════════════════════════════
     WHATSAPP FLOAT
  ══════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 200;
  text-decoration: none;
  animation: waPulse 3s ease-in-out infinite;
  transition: transform 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
}
.wa-float svg {
  width: 26px;
  height: 26px;
  fill: white;
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
  }
}

/* ══════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════ */
@media (max-width: 768px) {
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 100px 0 60px;
    gap: 40px;
  }

  .hero-right {
    order: -1;
  }

  .hero-img-wrap {
    width: 50%;
  }

  .sobre-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sobre-img-wrap {
    max-width: 280px;
    margin: 0 auto;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .modalidad-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
    font-size: 1.4rem;
  }

  .hero-trust {
    gap: 20px;
  }

  .btn-lg {
    padding: 16px 30px;
    font-size: 1rem;
  }

  .form-row {
    flex-direction: column;
  }

  .form-input {
    min-width: unset;
  }
}

/* ── ANIMATIONS ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
