/* ======================================================
   SALVATEC.CSS – Estilos principales (versión completa)
   Fecha: Agosto 2025
   Autor: Salvatec.la
   Descripción: Estilos base + HERO cover corregido
====================================================== */

/* ========================= */
/* === 1. RESETEO GLOBAL === */
/* ========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Utilidades mínimas si no hay Bootstrap */
.container { width: min(1120px, 92%); margin-inline: auto; }
.text-center { text-align: center; }
.lead { font-size: 1.125rem; }

/* ========================= */
/* === 2. BOTONES ESTILO === */
/* ========================= */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-orange { background: #f97316; color: #fff; }
.btn-orange:hover { background: #ea580c; }
.btn-blue { background: #1d4ed8; color: #fff; }
.btn-blue:hover { background: #1e40af; }
.btn-red { background: #e60000; color: #fff; padding: 12px 24px; border-radius: 6px; font-weight: 600; }
.btn-red:hover { background: #cc0000; }
.btn-light { background: #fff; color: #111; border: 1px solid #fff; }
.btn-light:hover { filter: brightness(.96); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.9); }
.btn-outline-light:hover { background: #fff; color: #000; }
.btn-outline-primary { background: transparent; color: #0d6efd; border-color: #0d6efd; }
.btn-outline-primary:hover { background: #eff6ff; }

/* ========================= */
/* === 2.1 Brand lockup  === */
/* ========================= */
.brand-lockup {
  display: flex; align-items: baseline; justify-content: center; gap: .45rem;
  letter-spacing: .2px;
}
.brand-word { font-weight: 800; font-size: 1.6rem; line-height: 1; }
.brand-latam { color: #ffffff; }      /* Blanco sobre barra azul */
.brand-pymes { color: #e60023; }      /* Rojo marca */
.brand-tagline { color: #ffffff; font-weight: 700; opacity: .95; font-size: 1.3rem; }

.hero-sub {
  color: #e5e7eb;                     /* Gris claro accesible en azul #143a68 */
  font-size: 1rem; margin-top: .25rem; text-align: center;
}

@media (max-width:768px){
  .brand-word{ font-size:1.35rem; }
  .brand-tagline{ font-size:1.1rem; }
  .hero-sub{ font-size:.95rem; }
}

/* ============================ */
/* === 3. HEADER PRINCIPAL  === */
/* ============================ */
.hero-header {
  position: relative;
  background-color: #143a68;
  color: #fff;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}
.hero-header::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 60px;
  background: url('img/wave-bottom.svg') no-repeat bottom center / cover;
  z-index: 1;
}
.hero-texto {
  max-width: 600px; margin: 0 auto; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  animation: fadeInUp 0.8s ease;
}
.hero-title {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-bottom: 1rem; flex-wrap: wrap; animation: fadeInDown 1s ease;
}
.hero-title span { font-size: 1.5rem; font-weight: 700; }
.hero-texto h1 { font-size: 1.3rem; margin: 0; line-height: 1.3; }
.hero-texto p { font-size: .95rem; line-height: 1.4; margin: 0; }
.btns-header { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; z-index: 2; }

@keyframes fadeInUp { from {opacity:0; transform: translateY(20px);} to {opacity:1; transform: translateY(0);} }
@keyframes fadeInDown { from {opacity:0; transform: translateY(-20px);} to {opacity:1; transform: translateY(0);} }

/* ============================ */
/* === BOTÓN WHATSAPP FIXED === */
/* ============================ */
.btn-whatsapp {
  position: fixed; color: #25D366; top: 10px; right: 10px; z-index: 1000;
  font-size: 1.8rem; padding: .75rem; text-align: center;
}
.btn-whatsapp:hover { transform: scale(1.1); background: #20ba5a; }

/* ============================ */
/* === 4. NAVBAR SERVICIOS === */
/* ============================ */
.nav-carrusel {
  display: flex; overflow-x: auto; white-space: nowrap; justify-content: center;
  -webkit-overflow-scrolling: touch; padding: 0 10px;
  scroll-snap-type: x mandatory; scroll-padding: 10px;
  background: #fff; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;
}
.nav-item {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 16px; min-width: 80px; text-align: center; color: #333; font-size: 12px;
  cursor: pointer; transition: .25s; border-bottom: 2px solid transparent; scroll-snap-align: start;
}
.nav-item img, .nav-item svg { width: 24px; height: 24px; margin-bottom: 4px; transition: .25s; }
.nav-item:hover { color: #d91e18; transform: translateY(-2px); background: #f9f9f9; border-bottom: 2px solid #d91e18; }
.nav-item:hover img, .nav-item:hover svg { transform: scale(1.2); filter: brightness(1.2); }
.nav-item.active { color: #0046c0; font-weight: 700; border-bottom: 2px solid #0046c0; }
@media (max-width:768px){ .nav-carrusel{ justify-content: flex-start; } }

/* ============================ */
/* === 5. HERO CON IMAGEN   === */
/* ============================ */
/* Cover + overlay. Funciona aunque el <picture> traiga otra ruta: */
.hero-visual {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: 72vh;
  background: #0c1d3c url("/img/hero-latampymes-wide.png") center/cover no-repeat;
}
@media (max-width:768px){
  .hero-visual{ min-height: 520px; background-image: url("/img/hero-latampymes-mobile.png"); }
}
.hero-visual picture {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
}
.hero-visual picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(12,29,60,.92) 0%,
    rgba(12,29,60,.70) 45%,
    rgba(12,29,60,.35) 70%,
    rgba(12,29,60,0) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: #fff;
  max-width: 46%; margin-left: 5%; padding: 1rem 0;
  background: transparent; transform: none; top: auto; left: auto;
}
.hero-content h1 {
  font-size: clamp(2rem, 3.5vw + .25rem, 3.2rem);
  line-height: 1.1; font-weight: 800; margin: 0 0 .75rem;
}
.hero-content p { font-size: clamp(1rem, .6vw + .85rem, 1.25rem); margin: 0 0 1.25rem; opacity: .95; }
.btn-red { box-shadow: 0 4px 20px rgba(0,0,0,.25); }

@media (max-width:768px){
  .hero-visual::before {
    background: linear-gradient(to bottom,
      rgba(12,29,60,.92) 0%,
      rgba(12,29,60,.60) 50%,
      rgba(12,29,60,.15) 85%);
  }
  .hero-content { max-width: 92%; margin: 0 auto; text-align: center; }
}

/* ============================ */
/* === 6. INTRODUCCIÓN      === */
/* ============================ */
.seccion-que-es-salvatec {
  background: linear-gradient(to bottom, #f8f8f8 0%, #fdfdfd 100%);
  padding: 4rem 1rem; text-align: center;
}
.seccion-que-es-salvatec h2 { font-size: 2.2rem; font-weight: 800; color: #0c1d3c; margin-bottom: 1.5rem; }
.seccion-que-es-salvatec p { font-size: 1.1rem; line-height: 1.7; color: #555; max-width: 800px; margin: 0 auto 1.5rem; }
.seccion-que-es-salvatec p.lead { font-weight: 500; color: #333; }
.seccion-que-es-salvatec .alert {
  border-left: 5px solid #cc0000; background: #fff3f3; color: #222;
  padding: 1rem 1.5rem; font-size: 1rem; font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,.05); margin-top: 2rem;
}
.destacado { background: #fdecec; padding: .2rem .5rem; border-radius: 4px; color: #c40000; font-weight: 600; }
@media (max-width:768px){
  .seccion-que-es-salvatec{ padding: 3rem 1rem; }
  .seccion-que-es-salvatec h2{ font-size: 1.8rem; }
  .seccion-que-es-salvatec p{ font-size: 1rem; }
}

/* ============================ */
/* === 7. SECCIÓN SERVICIOS === */
/* ============================ */
.services {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
  padding: 60px 20px; background: #f9fafb;
}
.service {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; width: 140px; height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.05); cursor: pointer;
}
.service img { width: 48px; height: 48px; transition: .25s; }
.service:hover { transform: scale(1.08); box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.service:hover img { transform: scale(1.2); }
.service h3 { margin-top: 12px; font-size: .9rem; font-weight: 600; }
@media (max-width:768px){
  .services{ flex-direction: row !important; justify-content: center; }
  .service{ width: calc(50% - 30px) !important; }
}

/* ============================ */
/* === 8. MENSAJE FINAL     === */
/* ============================ */
.mensaje-final-salvatec {
  background: #fff4f4; padding: 2.5rem 1rem; border-radius: 1rem; box-shadow: 0 8px 30px rgba(0,0,0,.05);
  max-width: 800px; margin: 0 auto; text-align: center;
}
.mensaje-principal {
  font-size: 1.5rem; font-weight: 700; color: #1a1a1a;
  display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
}
.mensaje-principal::before { content: "✅"; font-size: 1.3rem; }
.mensaje-secundario { font-size: 1.1rem; color: #333; margin-top: 1rem; line-height: 1.6; }
.resaltado { background: #ffe3e3; padding: 0 6px; border-radius: 4px; font-weight: 600; color: #c40000; }
.btn-descubre-mas { font-weight: 600; border-radius: 6px; padding: .6rem 1.5rem; transition: .25s; }
.btn-descubre-mas:hover { background: #c40000; color: #fff; border-color: #c40000; }

/* ============================ */
/* === 9. PÚBLICO META      === */
/* ============================ */
.publico-meta { background: #f9fafb; padding: 60px 20px; text-align: center; }
.publico-meta h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; color: #111827; }
.publico-meta .intro { font-size: 1rem; color: #4b5563; max-width: 600px; margin: 0 auto 40px; }
.tarjetas-publico { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.tarjeta-publico {
  background: #fff; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,.05);
  width: 240px; padding: 30px 20px; display: flex; flex-direction: column; align-items: center;
  transition: .25s; text-align: center;
}
.tarjeta-publico:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,.1); }
.tarjeta-publico img { width: 48px; height: 48px; margin-bottom: 20px; }
.tarjeta-publico h3 { font-size: 1.1rem; font-weight: 700; color: #111827; margin-bottom: 10px; }
.tarjeta-publico p { font-size: .95rem; color: #4b5563; line-height: 1.4; }

/* ============================ */
/* === 10. CLIENTES        === */
/* ============================ */
.clientes-salvatec { padding: 60px 20px; background: #f8f9fa; text-align: center; }
.clientes-salvatec h2 { font-size: 2rem; margin-bottom: 10px; color: #212529; }
.clientes-salvatec .intro { font-size: 1rem; color: #6c757d; margin-bottom: 40px; }
.logos-clientes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.logo-cliente img { max-height: 60px; max-width: 120px; filter: grayscale(100%); transition: filter .25s; }
.logo-cliente img:hover { filter: grayscale(0%); }

/* ============================ */
/* === 11. BENEFICIOS      === */
/* ============================ */
.beneficios-salvatec { padding: 60px 20px; background: #f9f9f9; }
.beneficios-salvatec h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: #001f3f; }
.lista-beneficios { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.beneficio {
  background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.06);
  padding: 30px 20px; max-width: 300px; text-align: center; flex: 1 1 260px; transition: .25s;
  display: flex; flex-direction: column; align-items: center;
}
.beneficio:hover { transform: translateY(-5px); }
.beneficio img { width: 64px; height: 64px; margin-bottom: 15px; }
.beneficio h3 { font-size: 1.2rem; color: #001f3f; margin-bottom: 10px; }
.beneficio p { font-size: .95rem; color: #555; line-height: 1.5; }

/* ============================ */
/* === 12. CTA SECCIÓN     === */
/* ============================ */
.cta-salvatec { background: #001f3f; color: #fff; padding: 80px 20px; text-align: center; }
.cta-salvatec h2 { font-size: 2rem; margin-bottom: 20px; }
.cta-salvatec p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 30px; line-height: 1.6; }
.cta-salvatec .btn-principal {
  background: #ff414d; color: #fff; padding: 14px 28px; font-size: 1rem; border-radius: 8px; font-weight: 700; transition: .25s;
}
.cta-salvatec .btn-principal:hover { background: #e0333d; }

/* ============================ */
/* === 13. COMUNIDAD       === */
/* ============================ */
.lp-comunidad .lp-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.lp-comunidad .lp-pill {
  background: #eef2ff; color: #0b5ed7; border: 1px solid #c7d2fe;
  padding: .25rem .6rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.lp-comunidad .lp-checks { list-style: none; margin: .25rem 0 1.25rem; padding-left: 0; }
.lp-comunidad .lp-checks li { position: relative; padding-left: 1.6rem; margin: .35rem 0; }
.lp-comunidad .lp-checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #0c1d3c; font-weight: 800;
}
.lp-comunidad .lp-how { color: #334155; }
.lp-comunidad .lp-card {
  background: #fff; border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 1rem; display: inline-block;
}
.lp-comunidad .lp-testimonio {
  margin: 1rem 0 0; padding-left: 1rem; border-left: 4px solid #0c1d3c;
  color: #334155; font-style: italic;
}

/* ============================ */
/* === 14. PIE DE PÁGINA    === */
/* ============================ */
.footer-salvatec {
  background-color: #143a68;   /* mismo color que el header */
  color: #ffffff;
  padding: 60px 20px 20px;
  font-size: .95rem;
}
.contenedor-footer {
  max-width: 1200px; margin: auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between;
}
.columna-footer { flex: 1 1 200px; min-width: 180px; }
.columna-footer h4, .columna-footer h5 { color: #ffffff; margin-bottom: 15px; }
.columna-footer p, .columna-footer ul, .columna-footer li { margin: 0; padding: 0; list-style: none; }
.columna-footer a { color: #ffffff; text-decoration: none; display: block; margin-bottom: 8px; transition: color .3s; }
.columna-footer a:hover { color: #00d1b2; }
.redes-footer { display: flex; gap: 15px; margin-top: 10px; }
.redes-footer a { color: #ffffff; font-size: 1.2rem; transition: color .3s; }
.redes-footer a:hover { color: #00d1b2; }
.footer-legal {
  text-align: center; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px; font-size: .85rem; color: #ccc;
}

/* ============================ */
/* === 15. RESPONSIVE       === */
/* ============================ */
@media (max-width:768px){
  .hero-texto h1 { font-size: 1.2rem; }
  .btns-header { flex-direction: column; gap: 10px; }
  .services { flex-direction: column; align-items: center; }
}
