/* =========================================================
   HIDROVANTA — Stylesheet
   Colores oficiales:
   --blue-primary #0B3C6F | --blue-secondary #1E88E5
   --green #43A047 | --white #FFFFFF | --gray-text #555555
   ========================================================= */

:root {
  --blue-primary: #0B3C6F;
  --blue-secondary: #1E88E5;
  --green: #43A047;
  --green-dark: #2e7d32;
  --white: #FFFFFF;
  --gray-text: #555555;
  --gray-soft: #f5f8fb;
  --gray-line: #e4ebf2;
  --shadow-sm: 0 2px 8px rgba(11, 60, 111, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 60, 111, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 60, 111, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--gray-text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--blue-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a { color: var(--blue-secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-primary); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--gray-soft); }

.eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p { color: var(--gray-text); font-size: 1.05rem; }

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-primary);
}
.btn-ghost {
  background: var(--white);
  color: var(--blue-primary);
  border: 2px solid var(--gray-line);
}
.btn-ghost:hover { border-color: var(--blue-secondary); color: var(--blue-secondary); }

/* ================== NAVBAR ================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.2) blur(8px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--gray-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo .logo-img,
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--blue-primary);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 1rem; padding: 0.6rem 1.2rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ================== HERO ================== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(11, 60, 111, 0.85) 0%, rgba(30, 136, 229, 0.78) 100%),
    url('https://images.unsplash.com/photo-1538300342682-cf57afb97285?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 90px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path d='M0 60 C 300 110 600 10 1200 80 L 1200 120 L 0 120 Z' fill='%23FFFFFF'/></svg>") bottom/cover no-repeat;
}
.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 span { color: #a5d6a7; }
.hero-slogan {
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.95;
}
.hero-badge strong { color: #a5d6a7; font-weight: 800; font-size: 1.4rem; }

/* ================== QUIÉNES SOMOS ================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-features {
  list-style: none;
  margin-top: 1.5rem;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--blue-primary);
  font-weight: 600;
}
.about-features li::before {
  content: '✓';
  background: var(--green);
  color: var(--white);
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ================== SERVICIOS ================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-line);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue-secondary), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue-secondary), var(--blue-primary));
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { margin-bottom: 0.6rem; color: var(--blue-primary); }
.service-card p { color: var(--gray-text); font-size: 0.95rem; margin-bottom: 0; }

/* ================== PROCESO ================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gray-line);
  position: relative;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  box-shadow: var(--shadow-sm);
}
.process-step h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.process-step p { font-size: 0.92rem; margin: 0; }

/* ================== GARANTÍA banner ================== */
.guarantee {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.guarantee h2 { color: var(--white); margin-bottom: 1rem; }
.guarantee-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.guarantee-stats div strong {
  display: block;
  font-size: 2.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #a5d6a7;
  line-height: 1;
}
.guarantee-stats div span {
  display: block;
  margin-top: 0.4rem;
  opacity: 0.92;
  font-size: 0.95rem;
}

/* ================== TESTIMONIOS ================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 0; left: 1.5rem;
  font-size: 4rem;
  color: var(--blue-secondary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial p { font-style: italic; color: var(--gray-text); margin-bottom: 1.2rem; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-secondary), var(--green));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}
.testimonial-author strong { color: var(--blue-primary); display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--gray-text); }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 0.6rem; }

/* ================== COBERTURA ================== */
.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.coverage-text h2 { margin-bottom: 1rem; }
.coverage-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.coverage-zone {
  background: var(--white);
  color: var(--blue-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--gray-line);
}
.coverage-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}
.coverage-map iframe { width: 100%; height: 100%; border: 0; }

/* ================== CONTACTO ================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}
.contact-item svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: #a5d6a7;
  margin-top: 3px;
}
.contact-item strong { display: block; font-size: 0.85rem; opacity: 0.85; font-weight: 500; }
.contact-item a, .contact-item span { color: var(--white); font-weight: 600; }
.contact-item a:hover { color: #a5d6a7; }

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-line);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--blue-primary);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue-secondary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-form button { width: 100%; justify-content: center; }
.form-note { font-size: 0.85rem; color: var(--gray-text); text-align: center; margin-top: 0.8rem; }

/* ================== FOOTER ================== */
.footer {
  background: #0a1f36;
  color: #b8c5d6;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer a { color: #b8c5d6; display: block; padding: 0.3rem 0; font-size: 0.92rem; }
.footer a:hover { color: #a5d6a7; }
.footer-logo { background: var(--white); padding: 1rem 1.2rem; border-radius: var(--radius-sm); display: inline-block; margin-bottom: 1rem; }
.footer-logo .logo-img,
.footer-logo img { height: 70px; width: auto; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ================== FLOATING WHATSAPP ================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.08); background: #1da851; }
.wa-float svg { width: 32px; height: 32px; color: var(--white); }

@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================== REVEAL ANIMATIONS ================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; text-align: center; padding: 0.8rem 0; border-bottom: 1px solid var(--gray-line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .about-grid, .coverage-inner, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image img { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: 1.2rem; }
}
