/* ================================================================
   VIVE I.P.S — main.css
   Estilos globales: variables, reset, navbar, footer, utilidades
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES DE MARCA ── */
:root {
  --azul:        #1B3A6B;
  --azul-dark:   #134a87;
  --azul-light:  #e8f0fb;
  --teal:        #1BAAB5;
  --teal-dark:   #148a94;
  --teal-light:  #e0f7f9;
  --blanco:      #ffffff;
  --gris:        #f4f8fb;
  --gris-borde:  #e2e8f0;
  --texto:       #1a2e3b;
  --texto-suave: #4a6070;
  --sombra-sm:   0 2px 12px rgba(27,90,166,0.07);
  --sombra-md:   0 4px 24px rgba(27,90,166,0.10);
  --sombra-lg:   0 12px 40px rgba(27,90,166,0.14);
  --radio-sm:    8px;
  --radio-md:    16px;
  --radio-lg:    24px;
  --radio-xl:    32px;
  --gradiente:   linear-gradient(135deg, var(--teal), var(--azul));
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: 'Outfit', sans-serif; }
input, textarea, select { font-family: 'Outfit', sans-serif; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,90,166,0.07);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(27,90,166,0.12);
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--texto);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--radio-sm);
  transition: all 0.2s ease;
}
.nav-links a:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.nav-links a.active {
  color: var(--azul);
  font-weight: 700;
}
.nav-btn {
  background: var(--gradiente) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-left: 8px;
  box-shadow: 0 4px 14px rgba(27,170,181,0.35);
  transition: all 0.3s ease !important;
}
.nav-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(27,170,181,0.45) !important;
  background: linear-gradient(135deg, var(--teal-dark), var(--azul-dark)) !important;
}

/* ── BOTÓN WHATSAPP FLOTANTE ── */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  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.45);
  transition: all 0.3s ease;
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(37,211,102,0.55);
  animation: none;
}
.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--texto);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--texto);
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ── FOOTER ── */
.footer {
  background: var(--texto);
  color: rgba(255,255,255,0.65);
  padding: 56px 48px 28px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img {
  height: 46px;
  filter: none;
  opacity: 1;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 240px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ── UTILIDADES COMPARTIDAS ── */
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--texto);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-title span { color: var(--teal); }
.section-sub {
  font-size: 17px;
  color: var(--texto-suave);
  line-height: 1.75;
  max-width: 580px;
}
.section-header { margin-bottom: 56px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* Botones globales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradiente);
  color: white;
  box-shadow: 0 6px 18px rgba(27,170,181,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(27,170,181,0.45);
}
.btn-secondary {
  background: white;
  color: var(--azul);
  box-shadow: var(--sombra-sm);
  border: 1.5px solid var(--gris-borde);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

/* Formularios globales */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gris-borde);
  border-radius: var(--radio-md);
  font-size: 15px;
  color: var(--texto);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,170,181,0.1);
}
.form-control::placeholder { color: #b0bec5; }
textarea.form-control { resize: vertical; min-height: 110px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE GLOBAL ── */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; }
  .footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .nav-links a:not(.nav-btn) { display: none; }
  .nav-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
