/* ======================================================
   SALVATEC.CSS – Estilos principales para el sitio Salvatec
   Fecha: Junio 2025
   Autor: Salvatec.la
   Descripción: Hoja de estilos modular y comentada para
                estructura limpia y escalable del sitio
========================================================== */


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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #fff;
}

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

a {
  color: #1d4ed8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}


/* ========================= */
/* === 2. BOTONES ESTILO === */
/* ========================= */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-orange {
  background-color: #f97316;
  color: white;
}

.btn-orange:hover {
  background-color: #ea580c;
}

.btn-blue {
  background-color: #1d4ed8;
  color: white;
}

.btn-blue:hover {
  background-color: #1e40af;
}

.btn-red {
  background-color: #e60000;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

.btn-red:hover {
  background-color: #cc0000;
}


/* ============================ */
/* === 3. HEADER PRINCIPAL  === */
/* ============================ */
.hero-header {
  position: relative;
  background-color: #143a68;
  color: #fff;
  padding:  1rem;
  text-align: center;
  min-height: auto;
  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;
  background-size: 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: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  animation: fadeInDown 1s ease;
}

.hero-title img.logo-text {
  height: 20px; /* Ajustalo según tu logo */
  color: #e5e7eb;
  width: auto;
}

.hero-title span {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.hero-texto h1 {
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.3;
}

.hero-texto p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.btns-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  z-index: 2;
}


/* Animaciones clave */
@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: 0.75rem;
  text-align: center;
}

/*
background-color: #25D366;
  color: white;
  
*/
.btn-whatsapp:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}


/* ============================ */
/* === 4. NAVBAR SERVICIOS === */
/* ============================ */
/* Contenedor principal del carrusel de navegación */
.nav-carrusel {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: center; /* Centro en desktop */
  -webkit-overflow-scrolling: touch;
  padding: 0 10px;
  scroll-snap-type: x mandatory;
  scroll-padding: 10px;
  background: #ffffff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* Item del menú */
.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  min-width: 80px;
  scroll-snap-align: start;
  text-align: center;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

/* Íconos */
.nav-item img,
.nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect */
.nav-item:hover {
  color: #d91e18;
  transform: translateY(-2px);
  background-color: #f9f9f9;
  border-bottom: 2px solid #d91e18;
}

.nav-item:hover img,
.nav-item:hover svg {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Ítem activo */
.nav-item.active {
  color: #0046c0;
  font-weight: bold;
  border-bottom: 2px solid #0046c0;
}

/* RESPONSIVE: en móviles, alinear a la izquierda para scroll horizontal */
@media (max-width: 768px) {
  .nav-carrusel {
    justify-content: flex-start;
  }
}
/* ============================ */
/* === 5. HERO CON IMAGEN   === */
/* ============================ */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  max-height: 600px;
  position: relative;
  overflow: hidden;
 background: linear-gradient(to right, #000000 0%, #000000 25%, #5c4d3f 60%, #b8aa92 100%);
}

.hero-visual picture {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual picture img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-content {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
  padding: 1rem;
  color: white;
  max-width: 40%;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn-red {
  background-color: #e60023;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* Responsive para mobile */
@media screen and (max-width: 768px) {
  .hero-visual {
    display: flex;
    flex-direction: column;
    height: auto !important;
    max-height: none;
    padding: 0;
    background: #000; /* Fondo neutro para evitar cortes */
  }

  .hero-visual picture {
    width: 100%;
  }

  .hero-visual picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .hero-content {
    top: auto;
    left: auto;
    transform: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
    color: white;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    z-index: 2;
  }
}



/* ============================ */
/* === 6. INTRODUCCIÓN      === */
/* ============================ */
.seccion-que-es-salvatec {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}
.seccion-que-es-salvatec {
  background: linear-gradient(to bottom, #f8f8f8 0%, #fdfdfd 100%);
}

.seccion-que-es-salvatec h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0c1d3c; /* Azul confianza */
  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 auto;
}

.seccion-que-es-salvatec p.lead {
  font-weight: 500;
  color: #333;
}

.seccion-que-es-salvatec .alert {
  border-left: 5px solid #cc0000; /* Rojo marca */
  background-color: #fff3f3;
  color: #222;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 2rem;
}

.destacado {
  background-color: #fdecec;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #c40000;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .seccion-que-es-salvatec h2 {
    font-size: 1.8rem;
  }
  
  .seccion-que-es-salvatec p {
    font-size: 1rem;
  }

  .seccion-que-es-salvatec {
    padding: 3rem 1rem;
  }
}

/* ============================ */
/* === 7. SECCIÓN SERVICIOS === */
/* ============================ */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: #f9fafb;
}

.service {
  background: white;
  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: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
}

.service img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.service:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service:hover img {
  transform: scale(1.2);
}

.service h3 {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ✅ Adaptación para mobile: 2 columnas */
@media (max-width: 768px) {
  .services {
    flex-direction: row !important;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .service {
    width: calc(50% - 30px) !important; /* ✅ fuerza 2 columnas */
  }
}



/*Mensaje final debajo de los iconos*/
.mensaje-final-salvatec {
  background-color: #fff4f4;
  padding: 2.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto; /* Esto centra horizontalmente el bloque */
  text-align: center;
}

.mensaje-principal {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.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-color: #ffe3e3;
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #c40000;
}

.btn-descubre-mas {
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-descubre-mas:hover {
  background-color: #c40000;
  color: #fff;
  border-color: #c40000;
}


/*Para quien es salvatec*/



.publico-meta {
  background-color: #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: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  width: 240px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.tarjeta-publico:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 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: 0.95rem;
  color: #4b5563;
  line-height: 1.4;
}

/*Clientes Salvatec */


.clientes-salvatec {
  padding: 60px 20px;
  background-color: #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 0.3s ease;
}

.logo-cliente img:hover {
  filter: grayscale(0%);
}

/* ============================ */
/* === 9. beneficios         === */
/* ============================ */

.beneficios-salvatec {
  padding: 60px 20px;
  background-color: #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,0.06);
  padding: 30px 20px;
  max-width: 300px;
  text-align: center;
  flex: 1 1 260px;
  transition: transform 0.3s ease;

  /* Agregamos estas tres líneas: */
  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: 0.95rem;
  color: #555;
  line-height: 1.5;
}


/* ============================ */
/* === 9. Propuesta de Valor          === */
/* ============================ */
.cta-salvatec {
  background-color: #001f3f;
  color: white;
  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 auto;
  line-height: 1.6;
}

.cta-salvatec .btn-principal {
  background-color: #ff414d;
  color: white;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-salvatec .btn-principal:hover {
  background-color: #e0333d;
}




/* ============================ */
/* === 11. ACADEMIA         === */
/* ============================ */
.academy {
  padding: 60px 20px;
  background-color: #f9fafb;
  text-align: center;
}


/* ============================ */
/* === 12. PIE DE PÁGINA    === */
/* ============================ */
.footer-salvatec {
  background-color: #001f3f;
  color: #ffffff;
  padding: 60px 20px 20px;
  font-size: 0.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 0.3s;
}

.columna-footer a:hover {
  color: #00d1b2;
}

.redes-footer a {
  color: #ffffff;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: color 0.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: 0.85rem;
  color: #ccc;
}

.redes-footer {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.redes-footer a {
  color: #ffffff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.redes-footer a:hover {
  color: #00d1b2;
}

/* ============================ */
/* === 13. RESPONSIVE       === */
/* ============================ */
@media (max-width: 768px) {
  .hero-content {
    transform: none;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 0;
    left: 0%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .btns-header {
    flex-direction: column;
    gap: 10px;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .navbar-servicios ul {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .navbar-servicios li {
    scroll-snap-align: start;
  }
}
