/* Clase al Volante — paleta tomada del logo */
:root {
  --navy: #1B3A6B;
  --navy-dark: #142C52;
  --green: #2E9E4F;
  --green-dark: #24813F;
  --red: #D93A3C;
  --ink: #22314A;
  --muted: #4A5A73;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 44, 82, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Figtree", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 { font-family: "Poppins", sans-serif; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #E9F0FA; }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; min-height: 44px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5EAF2;
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}
.nav-brand img { border-radius: 8px; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a:not(.btn) {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-menu a:not(.btn):hover { color: var(--green-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%); padding: 72px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #E3F3E9;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-sub { font-size: 1.15rem; color: var(--muted); margin: 20px 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-phone { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }
.hero-phone a { font-weight: 600; }
.hero-logo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  margin-left: auto;
}

/* Secciones */
section { padding: 80px 0; }
.section-head { max-width: 560px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* Servicios */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--bg);
  border: 1px solid #E5EAF2;
  border-radius: var(--radius);
  padding: 32px 28px 28px;
}
.service-card.featured { background: var(--navy); border-color: var(--navy); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: #C7D4E8; }
.service-card.featured .service-num { color: #7BD69A; }
.service-num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}
.service-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  padding: 4px 12px;
  border-radius: 999px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 1rem; }

/* Por qué nosotros */
.why { background: var(--bg); }
.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-list li { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.why-list svg { color: var(--green); margin-bottom: 16px; }
.why-list h3 { margin-bottom: 8px; }
.why-list p { color: var(--muted); font-size: 1rem; }

/* Opiniones */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonials blockquote {
  background: var(--white);
  border: 1px solid #E5EAF2;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonials blockquote p { color: var(--ink); }
.testimonials footer { margin-top: 16px; font-weight: 600; color: var(--navy); }

/* CTA final */
.cta-final { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); text-align: center; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: #C7D4E8; max-width: 36em; margin: 16px auto 32px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #C7D4E8; padding: 48px 0 24px; }
.site-footer a { color: #A8E6BE; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { font-family: "Poppins", sans-serif; font-size: 1.2rem; color: var(--white); margin-bottom: 6px; }
.footer-social { display: flex; gap: 16px; align-items: flex-start; justify-content: flex-end; }
.footer-social a { display: inline-flex; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; }
.footer-social a:hover { border-color: var(--green); }
.footer-credit {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  font-size: 0.875rem;
  color: #8FA3C4;
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(46, 158, 79, 0.45);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.wa-float:hover { background: var(--green-dark); transform: scale(1.06); }

/* Animación de entrada — solo si JS está activo, para no ocultar contenido */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-float { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo img { margin: 0 auto; max-width: 340px; }
  .services-grid, .why-list, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid #E5EAF2;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a:not(.btn) { display: block; padding: 12px 0; }
  .nav-menu .btn { margin-top: 8px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
}
