/* Fuente cargada vía <link> en HTML; se elimina import duplicado */
:root {
  --primary: #fb9f2ee2;
  --dark: #333;
  --bg: #f0eaea;
  --round: 5px;
  --font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

.banner {
    position: relative;
    height: 80vh; 
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5) blur(5px); 
    transform: scale(1.1); 
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.banner-content p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; 
}

.btn-group .btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    min-width: 200px;
}

.btn-primary { background: #f49d32; color: white; }
.btn-secondary { background: #25D366; color: white; }

.btn-group .btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.title {
  text-align: center;
  font-size: 50px;
}

.section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 50px 20px;
  flex-wrap: wrap;
  margin: 30px 20px;
}

.card, .texto {
  flex: 1 1 400px;
  max-width: 500px;
}

.imagen {
  width: 100%;
  height: auto;
  border: 3px solid black;
  border-radius: 8px;
}

.texto p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.redes-sociales {
  margin-top: 10px;
}

.redes-sociales a {
  color: white;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s;
  text-decoration: none;
}

.redes-sociales a:hover {
  color: #1d05f8;
}

.scrollToHome {
    border-radius: 20px;
    background: linear-gradient(135deg, #f49d32, #ff6b35);
    bottom: 20px;
    color: #ffffff;
    display: none;
    font-size: 20px;
    height: 55px;
    line-height: 55px;
    padding: 0;
    position: fixed;
    right: 20px;
    text-align: center;
    width: 55px;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(244, 157, 50, 0.4);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.scrollToHome:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #ff6b35, #e8890b);
    box-shadow: 0 12px 35px rgba(244, 157, 50, 0.6);
    color: #ffffff;
}

.scrollToHome:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  margin: 0 0 15px 0;
  font-size: 1rem;
  font-weight: 400;
}

.redes-sociales {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.redes-sociales a {
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
}

.redes-sociales a:hover {
  color: var(--primary);
  background: rgba(251, 159, 46, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(251, 159, 46, 0.3);
}

:root {
  --gold: linear-gradient(135deg, #f49d32, #ffcc80);
  --dark: #0d1c2f;
}

.valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.valor-card {
  background: #fff;
  padding: 50px 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
}

.valor-card::before {
  content: '';
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: -1;
  transition: all 0.4s ease;
}

.valor-card:hover {
  transform: translateY(-15px);
  color: #fff;
}

.valor-card:hover::before {
  top: 0; 
}

.valor-card i {
  font-size: 45px;
  background: linear-gradient(135deg, #f49d32, #ffcc80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
}

.valor-card:hover i {
  transform: scale(1.2) rotate(10deg);
}

.valor-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: color 0.3s;
}

.valor-card p {
  line-height: 1.6;
  opacity: 0.9;
  transition: color 0.3s;
}

.valor-card:hover h3, .valor-card:hover p {
  color: #fff;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: white;
  font-size: 24px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Footer responsivo */
@media (max-width: 768px) {
  footer {
    padding: 25px 15px;
  }

  footer p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .redes-sociales {
    gap: 15px;
  }

  .redes-sociales a {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 22px;
    bottom: 15px;
    left: 15px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 20px 10px;
  }

  footer p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .redes-sociales {
    gap: 12px;
    flex-wrap: wrap;
  }

  .redes-sociales a {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 12px;
    left: 12px;
  }

  .scrollToHome {
    width: 45px;
    height: 45px;
    font-size: 16px;
    line-height: 45px;
    border-radius: 15px;
    bottom: 15px;
    right: 15px;
  }

  .scrollToHome:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0; 
        position: relative;
    }
    .navbar {
        display: flex;
        justify-content: center;
        gap: 10px; 
    }
    .navbar a {
        padding: 5px 8px;
        font-size: 13px; 
    }
}

/*celulares pequeños */
@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
  .banner {
    height: auto;              
    min-height: 60vh;          
    padding: 40px 20px;
    display: flex;
    align-items: center;
  }

  .banner-content {
    text-align: center;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .btn-group {
    display: flex;
    flex-direction: column;   
    gap: 12px;
    align-items: center;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 250px;
    padding: 10px 18px;
  }

}

/* ESTADÍSTICAS DE CONFIANZA */
.confianza {
  padding: 80px 5%;
  background: linear-gradient(135deg, #fff7f0, #ffffff);
}

/* TÍTULO SECCIÓN CONFIANZA */
.confianza .title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  position: relative;
  font-weight: 700;
}

.confianza .title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #f49d32, #ff6b35);
  display: block;
  margin: 15px auto 0;
  border-radius: 10px;
}

.confianza-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  background: #ffffff;
  padding: 40px 50px;
  border-radius: 25px;
  text-align: center;
  min-width: 220px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-12px);
}

.stat-number {
  font-size: 55px;
  font-weight: 700;
  background: linear-gradient(135deg, #f49d32, #ff6b35);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}

.stat-label {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .confianza {
    padding: 60px 20px;
  }

  .stat-item {
    padding: 30px 35px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 16px;
  }
}

#quienes-somos {
  justify-content: center;
  text-align: center;
}

#quienes-somos .card,
#quienes-somos .texto {
  margin: 0 auto;
}

#quienes-somos .imagen {
  display: block;
  margin: 0 auto;
}

#quienes-somos .texto p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
