* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif;
  }
  
body { 
  color: #333; 
  background: #fff; 
}

header h1 { 
  color: #F68B1F; 
  font-weight: 700; 
}

.hero {      
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero-index{
  background: url('../img/torre_electrica.jpg') center/cover no-repeat;
}

.hero-nosotros{
  background: url('../img/nosotros/tablero_breakers_tacos.jpg') center/cover no-repeat;
} 

.hero-servicios{
  background: url('../img/servicios/servicios_gcesas.jpg') center/cover no-repeat;
}

.hero-contactenos{
  background: url('../img/contactenos_gcesas.jpg') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.55);
}

.hero-content {
  margin-top: 130px;
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.hero a {
  background-color: #fff;
  color: #F68B1F;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .3s;
}

.hero a:hover { 
  background-color: #F68B1F;
  color: #fff;
  border: 1px solid #fff;
}    

.nosotros {
  padding: 60px 10%;
  background-color: #f9f9f9;
}

.nosotros_contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* permite que sea responsive */
  gap: 40px;
}

.nosotros_imagen {
  flex: 1 1 40%;
}

.nosotros_imagen img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nosotros_texto {
  flex: 1 1 50%;
  color: #333;
}

.nosotros_texto h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1E4E9B;
}

.nosotros_texto p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.contenidos-seccion {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 60px 80px;
}

.contenidos-bloque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap; /* mantiene el orden horizontal */
  opacity: 0;
  transform: translateY(100px);
  animation: aparecer 0.6s ease forwards;
}

.contenidos-bloque:nth-child(even) {
  flex-direction: row-reverse !important;
}

.contenidos-texto,
.contenidos-imagen {
  flex: 1 1 50%;
  max-width: 50%;
}

.contenidos-texto h2 {
  color: #F68B1F;
  font-size: 2em;
  margin-bottom: 15px;
}

.contenidos-texto h3 {
  font-size: 1.3em;
  color: #444;
  margin-bottom: 10px;
}

.contenidos-texto p {
  color: #555;
  line-height: 1.7;
}

.contenidos-imagen img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

.bannercontenedor {
  background: linear-gradient(to right, rgba(99, 165, 246, 0.8), rgba(0, 127, 115, 0.2)),
              url('../img/encabezado_electricidad.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* alinea a la izquierda */
  padding: 80px;
  color: #fff;
  height: 400px;
}

.banner_texto {
  max-width: 500px;
  text-align: left;
}

#banner_home h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

#banner_home p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Estilo del botón */
.btn_banner {
  display: inline-block;
  background-color: #fff;
  color: #F68B1F;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn_banner:hover {
  background-color: #F68B1F;
  color: #fff;
  border: 1px solid #fff;
}

.nosotros {
  text-align: center;
}
.nosotros h2 {
  color: #F68B1F;
  margin-bottom: 20px;
  font-size: 2rem;
}
.nosotros p {
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.servicios {
  background-color: #f8f9f9;
  text-align: center;
  max-width: 1200px;
  margin: 80px auto;
}

.servicios h2 {
  color: #F68B1F;
  margin-bottom: 40px;
  font-size: 2rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.servicio {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform .3s, box-shadow .3s;
}

.servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.servicio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.servicio h3 { color: #F68B1F; margin-bottom: 10px; }
.servicio p { color: #666; }

.clientes-section {
  background: #f8f9fa;
}

.clientes-section h2 {
  color: #F68B1F;
  text-align: center;
  margin-bottom: 60px;
}

.logo-slider {
  width: 180px;       /* Ancho fijo */
  height: 120px; 
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.logo-slider:hover {
  transform: scale(1.05);
}

/* Cambiar color de flechas del carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(30%) sepia(90%) saturate(7000%) hue-rotate(200deg) brightness(95%) contrast(90%);
}

  /* CONTENEDOR DEL FORMULARIO */
.contacto-seccion {
  padding: 60px 10%;
  background-color: #f9f9f9;
}

.contacto-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
}

.contacto-info {
  flex: 1 1 30%;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  color: #1E4E9B;
}

.contacto-info a {
  color: #1E4E9B;
  text-decoration: none;  
}

.contacto-info p {
  margin-bottom: 12px;           
  display: flex;                 
  align-items: center;           
  gap: 8px;                      
  line-height: 2.5;              
  font-size: 1rem;
}

.contacto-info i {
  font-size: 1.1rem;             
}

.contacto-form {
  flex: 1 1 50%;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 18px;
}

.form-group p {
  color: #1E4E9B;
}

.texto{
  color: #1E4E9B;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #1E4E9B;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #F68B1F;
  border-radius: 6px;
  transition: border-color .3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #F68B1F;
  outline: none;
}

.data-check {
  display: flex;
  margin-left: 0;      
  padding-left: 0;     
  text-align: left; 
}

.btn-enviar {
  background: #F68B1F;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all .3s;
}

.btn-enviar:hover {
  background: #d9761a;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-contenido {
  background: #fff;
  margin: 8% auto;
  padding: 25px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
}

.cerrar {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  cursor: pointer;
}

:root {
      --verde-oscuro: rgb(22,113,59);
      --verde-claro: rgb(163,189,49);
    }
    .btn-principal {
      background-color: var(--verde-oscuro);
      color: white;
    }
    .btn-principal:hover {
      background-color: var(--verde-claro);
      color: black;
    }
    .icono-servicio {
      font-size: 3rem;
      color: var(--verde-oscuro);
    }

    /* NAVBAR */
    .navbar {
      transition: background-color 0.3s ease;
      background: transparent;
    }
    .navbar-dark .nav-link {
      color: #fff !important;
      font-weight: 500;
      padding: 10px 15px;
    }
    .navbar-dark .nav-link:hover {
      color: var(--verde-claro) !important;
    }
    .navbar.scrolled {
      background-color: var(--verde-oscuro) !important;
    }

    /* HERO */
    .video-header {
      position: relative;
      width: 100%;
      height: 100vh; /* toda la pantalla */
      overflow: hidden;
    }
    .video-background {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      overflow: hidden;
    }
    .video-background iframe {
      position: absolute;
      top: 50%; left: 50%;
      width: 120%;
      height: 120%;
      transform: translate(-50%, -50%);
      pointer-events: none;
    }
    .content-overlay {
      position: relative;
      z-index: 2;
      height: 100%;
      width: 100%;
      background: rgba(0,0,0,0.35);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: #fff;
      text-align: center;
      padding: 0 15px;
    }

    .img_productos {
      max-height: 180px; /* Escritorio */
    }
    .logo {
      max-height: 110px; /* Escritorio */
    }

    .container_internos{
      margin: 75px auto 75px auto;
      background-color: #fff;
    }  

    .marca-logo {
      filter: grayscale(100%);
      opacity: 0.8;
      transition: all 0.3s ease;
      max-height: 80px;
    }

    .marca-logo:hover {
      filter: grayscale(0%);
      opacity: 1;
      transform: scale(1.05);
    }

    /* ===== CTA General ===== */
.cta {
  margin: 70px auto;
  background: linear-gradient(90deg, rgb(22,113,59), rgb(163,189,49));
  color: #fff;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 74, 173, 0.2);
}

.cta .left strong {
  font-size: 20px;
  font-weight: 700;
}

.cta .btn {
  display: inline-block;
  background: #fff;
  color:rgb(163,189,49);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta .btn:hover {
  background: #EAF4FF;
  transform: translateY(-2px);
}

.card-negocio {
  border: none;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  height: 100%;
}

.card-negocio:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-negocio h5 {
  font-weight: 600;
  color: var(--verde-oscuro);
}

.icono-servicio {
  font-size: 3rem;
  color: var(--verde-oscuro);
  transition: transform 0.3s ease;
}

.card-negocio:hover .icono-servicio {
  transform: scale(1.15);
}

/* Botón flotante de WhatsApp */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
    background: #1ebe5d;
}

.form-check-input {
    border: 2px solid #F68B1F !important;
}

.form-check-input:checked {
    background-color: #F68B1F !important;
    border-color: #F68B1F !important;
}


@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  header { 
    padding: 15px 25px; 
    flex-direction: column; 
  }

  .hero h2 { 
    font-size: 2rem; 
  }

  .hero p { 
    font-size: 1rem; 
  }

  .nosotros_contenedor {
    flex-direction: column;
    text-align: center;
  }

  .nosotros_imagen,
  .nosotros_texto {
    flex: 1 1 100%;
  }

  .nosotros_texto h2 {
    margin-top: 20px;
  }

  .contenidos-bloque {
    flex-direction: column;
    text-align: center;
}

.contenidos-texto,
.contenidos-imagen {
  max-width: 100%;
}

.contenidos-texto {
  margin-top: 20px;
}

.logo-slider {
      width: 130px;
      height: 90px;
  }

}