/* ===== UnGiga.cl — Estilos compartidos ===== */
:root {
  --azul: #0057d9;
  --azul-osc: #003a94;
  --azul-claro: #e8f1ff;
  --azul-cielo: #4a90e2;
  --gris-texto: #2b3648;
  --gris-suave: #5b6675;
  --gris-linea: #e3e8ef;
  --fondo: #f6f9fe;
  --blanco: #ffffff;
  --verde: #1aab6b;
  --rojo: #e05563;
  --sombra: 0 10px 30px rgba(0, 87, 217, 0.10);
  --sombra-suave: 0 4px 14px rgba(20, 40, 80, 0.06);
  --radio: 14px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gris-texto);
  background: var(--fondo);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-linea);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.5px;
}
.logo span { color: var(--gris-texto); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--gris-suave);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--azul); }
.nav-cta {
  background: var(--azul);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--sombra-suave);
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--azul-osc); transform: translateY(-1px); }
.menu-toggle { display: none; font-size: 1.6rem; background: none; border: none; cursor: pointer; color: var(--azul); }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-size: 1rem;
}
.btn-primary { background: var(--azul); color: #fff; box-shadow: var(--sombra); }
.btn-primary:hover { background: var(--azul-osc); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--azul); border: 2px solid var(--azul); }
.btn-ghost:hover { background: var(--azul-claro); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0057d9 0%, #4a90e2 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  left: -80px; bottom: -140px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero p { font-size: 1.25rem; opacity: .95; max-width: 640px; margin: 0 auto 32px; }
.hero-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-badge {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
}

/* ===== Secciones ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-title h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--gris-texto);
}
.section-subtitle {
  text-align: center;
  color: var(--gris-suave);
  max-width: 640px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radio);
  padding: 30px 26px;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--gris-linea);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--azul-claro);
  color: var(--azul);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--gris-suave); font-size: .97rem; }

/* ===== Planes / Pricing ===== */
.planes-bg { background: var(--blanco); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  background: #fff;
  border: 1.5px solid var(--gris-linea);
  border-radius: var(--radio);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: var(--azul-cielo); }
.plan-card.destacado {
  border-color: var(--azul);
  box-shadow: var(--sombra);
  transform: scale(1.03);
}
.plan-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--azul);
  color: #fff;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.plan-size { font-size: 1.05rem; font-weight: 700; color: var(--azul); text-transform: uppercase; letter-spacing: 1px; }
.plan-price { font-size: 2.1rem; font-weight: 800; margin: 12px 0 2px; color: var(--gris-texto); }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--gris-suave); }
.plan-month { font-size: .85rem; font-weight: 600; color: var(--azul); margin: 0 0 6px; }
.plan-month span { color: var(--gris-suave); font-weight: 500; }
.plan-desc { color: var(--gris-suave); font-size: .9rem; margin-bottom: 20px; }
.plan-features { list-style: none; text-align: left; margin: 0 0 24px; flex-grow: 1; }
.plan-features li { padding: 7px 0; font-size: .93rem; display: flex; gap: 9px; align-items: flex-start; }
.plan-features li .check { color: var(--verde); font-weight: 800; }
.plan-card .btn { width: 100%; }

/* ===== Tabla incluye / no incluye ===== */
.incluye-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 20px;
}
.incluye-col {
  background: #fff;
  border-radius: var(--radio);
  padding: 30px 28px;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--gris-linea);
}
.incluye-col h3 { font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.incluye-col.si h3 { color: var(--verde); }
.incluye-col.no h3 { color: var(--rojo); }
.incluye-col ul { list-style: none; }
.incluye-col li { padding: 9px 0; border-bottom: 1px solid var(--gris-linea); display: flex; gap: 10px; align-items: flex-start; }
.incluye-col li:last-child { border-bottom: none; }
.incluye-col .mark { font-weight: 800; flex-shrink: 0; }
.incluye-col.si .mark { color: var(--verde); }
.incluye-col.no .mark { color: var(--rojo); }

/* ===== CTA final ===== */
.cta-band {
  background: linear-gradient(135deg, #003a94 0%, #0057d9 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 14px; font-weight: 800; }
.cta-band p { opacity: .95; margin-bottom: 28px; font-size: 1.1rem; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: var(--azul); }

/* ===== Contenido genérico (empresa, privacidad) ===== */
.page-header {
  background: linear-gradient(135deg, #0057d9 0%, #4a90e2 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.page-header p { opacity: .95; margin-top: 10px; font-size: 1.1rem; }
.prose { background: #fff; border-radius: var(--radio); padding: 44px; box-shadow: var(--sombra-suave); border: 1px solid var(--gris-linea); }
.prose h2 { color: var(--azul); margin: 30px 0 12px; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 20px 0 8px; font-size: 1.12rem; }
.prose p { margin-bottom: 14px; color: var(--gris-texto); }
.prose ul { margin: 0 0 16px 22px; color: var(--gris-texto); }
.prose li { margin-bottom: 7px; }

/* ===== Empresa: valores ===== */
.valores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; margin-top: 20px; }
.stats-band { background: var(--azul-claro); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 20px; text-align: center; }
.stat h3 { font-size: 2.4rem; color: var(--azul); font-weight: 800; }
.stat p { color: var(--gris-suave); font-weight: 600; }

/* ===== Contacto ===== */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contacto-info .info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contacto-info .info-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--azul-claro); color: var(--azul);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.contacto-info h4 { margin-bottom: 2px; }
.contacto-info p { color: var(--gris-suave); }
.form-card { background: #fff; border-radius: var(--radio); padding: 34px; box-shadow: var(--sombra-suave); border: 1px solid var(--gris-linea); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gris-linea);
  border-radius: 10px; font-size: 1rem; font-family: inherit; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--azul); }
.form-note { font-size: .85rem; color: var(--gris-suave); margin-top: 6px; }

/* ===== Footer ===== */
.site-footer {
  background: #0d1b34;
  color: #c3cee0;
  padding: 56px 0 26px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: #7fb0ff; }
.footer-brand p { margin-top: 12px; font-size: .95rem; color: #97a6c2; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c3cee0; transition: color .2s; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px; text-align: center; font-size: .9rem; color: #8493b2; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--gris-linea);
    padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .menu-toggle { display: block; }
  .incluye-grid, .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
