/* ========================================
   STYLE.CSS COMPLETO - ALTIVAWEB
   CSS Original + Mejoras Bootstrap
   ======================================== */

/* ----- RESET Y FUENTES ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #2d2f33;
}

/* ----- SECCIONES ----- */
.section {
  padding: 7.5rem 5%;
  min-height: 100vh;
  text-align: center;
  /* --- FONDO PERSONALIZADO --- */
  background-image: url("../img/fondooo.png"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================
   CONTENEDOR SLIDER
========================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  /* --- FONDO PERSONALIZADO --- */
  background-image: url("../img/fondo.png"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* BOTONES DEL SLIDER */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.196);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

/* RESPONSIVE SLIDER */
@media (max-width: 768px) {
  .prev, .next {
    top: 50%;
    font-size: 20px;
    padding: 8px 10px;
  }
}

/* ----- SERVICIOS / CARDS ----- */
#servicios .texto h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: #222;
}

#servicios .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
}

#servicios .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  height: 100%;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* 🔧 Corregir color y estilo de enlaces en cards */
#servicios a {
  color: inherit;
  text-decoration: none;
}

/* 🔥 Efecto hover limpio */
#servicios a:hover {
  color: #000000;
  text-decoration: none;
  opacity: 0.85;
}

#servicios .card .contenido {
  position: relative;
  padding: 1rem;
  background-color: #fff;
  text-align: center;
  z-index: 2;
}

#servicios .card .imagen {
  width: 100%;
  height: 10rem;
  overflow: hidden;
}

#servicios .card .imagen img {
  width: 100%;
  height: 15rem;
  overflow: hidden;
  display: block;
  transition: transform 0.3s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(255,204,0,0.3);
}

/* 🎨 MEJORAS BOOTSTRAP PARA CARDS */
#servicios .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(255, 204, 0, 0.4);
}

#servicios .card .bi {
  transition: transform 0.3s ease;
}

#servicios .card:hover .bi {
  transform: scale(1.1);
}

/* ----- NOSOTROS ----- */
.nosotros {
  padding: 5rem 5%;
  background-color: #ededed;
}

.nosotros .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 75rem;
  margin: 0 auto;
  gap: 2.5rem;
}

.nosotros .texto {
  flex: 1 1 20rem;
}

.nosotros .texto h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: #222;
}

.nosotros .texto p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.nosotros .imagen {
  flex: 1 1 18rem;
  text-align: center;
}

.nosotros .imagen img {
  width: 100%;
  max-width: 28rem;
  border-radius: 0.938rem;
  box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* 🎨 MEJORAS BOOTSTRAP PARA NOSOTROS */
.nosotros .badge {
  margin-bottom: 1rem;
}

.nosotros .bi-check-circle-fill {
  animation: checkmark 0.5s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ----- FOOTER ----- */
footer {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 1rem 5%;
}

/* ================= FORMULARIO DE CONTACTO ================= */
#contacto {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
}

/* FORMULARIO */
.contact-form {
  flex: 1 1 48%;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.contact-form h2 {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-form button {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: #5b6b79;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.contact-form button:hover {
  background-color: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* 🎨 MEJORAS BOOTSTRAP PARA FORMULARIO */
.form-control {
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #5b6b79;
  box-shadow: 0 0 0 0.2rem rgba(91, 107, 121, 0.15);
  outline: none;
}

.form-label {
  color: #333;
  margin-bottom: 0.5rem;
}

/* INFORMACIÓN DE CONTACTO */
.contact-info {
  flex: 1 1 35%;
  background-image: url('../img/contact.jpeg'); 
  background-size: cover; 
  background-position: center;
  padding: 2rem; 
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
  min-height: 400px;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 0;
  transition: opacity 0.3s ease;
}

.contact-info:hover::before {
  opacity: 0.8;
}

.contact-info h2, .info-item {
  position: relative;
  z-index: 1;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(5px);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFC107;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-item:hover .icon {
  transform: rotate(360deg);
}

.icon img {
  width: 24px;
  height: 24px;
}

.info-text span {
  display: block;
  font-size: 1rem;
  color: #cce0ff;
}

.info-text a {
  display: block;
  font-weight: bold;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  margin-top: 2px;
}

.info-text a:hover {
  text-decoration: underline;
}

/* REDES SOCIALES */
.social-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

.social-bottom a {
  transition: all 0.3s ease;
}

.social-bottom a:hover {
  transform: translateY(-5px) scale(1.1);
  filter: brightness(1.2);
}

.social-bottom a img {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
}

/* RESPONSIVE CONTACTO */
@media(max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-form, .contact-info {
    width: 100%;
    margin-bottom: 1.5rem;
  }
}

/* ==========================
   SECCIÓN DE VIDEO
========================== */
.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 50px 20px;
  background: #ffffff;
  text-align: center;
}

.video-container {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-description {
  max-width: 600px;
  color: #222;
}

.video-description h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0a2740;
}

.video-description p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333;
}

.btn-vermas {
  display: inline-block;
  background: #5b6b79;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-vermas:hover {
  background: #ffcc00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

/* 🎨 MEJORA BOOTSTRAP PARA VIDEO */
.video-description .badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* PANTALLAS GRANDES (PC) */
@media (min-width: 768px) {
  .video-section {
    flex-direction: row;
    text-align: left;
    gap: 60px;
    padding: 80px 10%;
  }

  .video-container,
  .video-description {
    flex: 1;
  }

  .video-description h2 {
    font-size: 2rem;
  }

  .video-description p {
    font-size: 1.1rem;
  }
}

/* ==========================
   BOTÓN WHATSAPP FLOTANTE
========================== */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: whatsappFloat 3s ease-in-out infinite;
}

.btn-whatsapp img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
  transform: scale(6.5);
}

.btn-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* 🎨 ANIMACIÓN WHATSAPP */
@keyframes whatsappFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ==========================
   MEJORAS BOOTSTRAP GENERALES
========================== */

/* Badges */
.badge {
  font-weight: 500;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

/* Animación fade in */
.fade-in {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Iconos Bootstrap */
.bi {
  vertical-align: middle;
}

/* Sombras */
.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

/* Texto */
.text-muted {
  color: #6c757d !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

/* Espaciado */
.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

/* ==========================
   RESPONSIVE MOBILE
========================== */
@media (max-width: 768px) {
  #servicios .card {
    margin-bottom: 1rem;
  }
  
  .display-5 {
    font-size: 1.8rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  #servicios .card .bi {
    font-size: 2rem !important;
  }
}