/* estilos.css – Paleta, layout, responsive, sliders, centering, overrides */

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

:root {
  --bg: #f0f4f8;
  --primary: #0a2540;
  --accent: #17a2b8;
  --highlight: #f9c846;
  --text: #102a43;
  --muted: #627d98;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 80px;
}

/* Centraliza secciones (excepto banner) */
section:not(.banner) {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Header y logo */
header {
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 64px;
  height: 64px;
  margin-right: 12px;
  filter: brightness(0) invert(1);
}
.logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  width: 0; height: 3px;
  background: var(--highlight);
  bottom: -4px; left: 0;
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

/* Menú móvil */
.menu-toggle {
  display: none;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 50%; right: 32px;
    transform: translateY(-50%);
    z-index: 1001;
  }
  #nav-menu {
    display: none;
    position: absolute;
    top: 64px; right: 32px;
    padding: 8px 0;
    background: rgba(10,37,64,0.85);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  nav:hover #nav-menu,
  #nav-menu.show {
    display: flex;
    flex-direction: column;
    opacity: 1;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  nav ul li {
    padding: 12px 24px;
    white-space: nowrap;
    transition: background 0.3s ease;
  }
  nav ul li:hover {
    background: rgba(255,255,255,0.1);
  }
}

/* Banner */
.banner {
  position: relative;
  background: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1400&q=80')
              center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.banner .overlay {
  position: absolute; inset: 0;
  background: rgba(10,37,64,0.6);
}
.banner-content {
  position: relative; z-index: 1;
  max-width: 600px; padding: 0 20px;
}
.heading-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem; margin-bottom: 16px; color: #fff;
}
.banner-desc {
  font-size: 1.25rem; margin-bottom: 24px;
  color: var(--highlight);
}
.boton-animado {
  background: var(--highlight);
  color: var(--primary);
  padding: 14px 32px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  transition: transform 0.3s, background 0.3s;
}
.boton-animado:hover {
  background: #e1b743;
  transform: scale(1.05);
}

/* Títulos y descripciones */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
}
.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

/* Grid de características */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 32px;
}
.feature {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.feature i {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.feature p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Calculadora con sliders */
.calculadora {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slider-group label {
  font-weight: 600;
  color: var(--primary);
}
.calculadora input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.3s;
}
.calculadora input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.calculadora input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.calculadora button {
  background: var(--accent);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.calculadora button:hover {
  background: #138e9a;
  transform: translateY(-2px);
}
.calculadora .resultado {
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.05),
    inset -4px -4px 8px rgba(255,255,255,0.7);
}

/* Centrar contenido en Contacto */
.center-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* WhatsApp flotante */
.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #25D366;
  color: #fff;
  font-size: 2rem;
  padding: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
}

/* Forzar visibilidad de animate */
.animate {
  opacity: 1 !important;
  transform: none !important;
}
/* Evitar zoom en móviles al enfocar el input de monto */
.calculadora input[type="number"] {
  font-size: 16px; /* iOS solo aplica zoom si el tamaño de letra es menor */
}
