/* Importar fuente Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

body {
  font-family: 'Poppins', sans-serif;
}

body *:not(i) {
  font-family: 'Poppins', sans-serif;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    color: #0077cc;
    border-bottom: 3px solid #0077cc;
}



/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('../assets/images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece la imagen */
}

.hero-text {
    position: absolute;
    z-index: 2;
    max-width: 80%;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-text p {
    font-size: 18px;
}


/* SOBRE NOSOTROS */
.about {
    background: #f8f9fa;
    padding: 50px 10%;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about .text {
    flex: 1;
}

.about .text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.about .text h3 {
    color: #0077cc;
    margin-top: 20px;
}

.about .text p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.about .image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about .image img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}


/* NUESTROS VALORES */
.values {
    text-align: center;
    padding: 60px 10%;
    background: #e8f5e9;
}

.values h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.value {
    text-align: center;
    max-width: 150px;
}

.value img {
    width: 60px;
    margin-bottom: 10px;
}

.value p {
    font-size: 16px;
    font-weight: bold;
}

/* FOOTER */
/* FOOTER MODERNO */
/* FOOTER MODERNO Y UNIFICADO */
.footer {
  background-color: #0d1e2a;
  color: white;
  padding: 3rem 1rem 1rem;
}

.footer-contenido {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-contacto h4,
.footer-mapa h4,
.footer-newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #f3c419;
}

.footer-contacto p,
.footer-contacto a,
.footer-mapa p,
.footer-newsletter p {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
}

.footer-newsletter input[type="email"] {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-top: 0.5rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter input[type="email"].invalid {
  border: 2px solid #dc3545;
  box-shadow: 0 0 5px rgba(220, 53, 69, 0.6);
}

.footer-newsletter button {
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-newsletter button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.footer-mapa iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 6px;
}

.footer-inferior {
  border-top: 1px solid #3a4c5c;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-inferior .footer-redes {
  margin-bottom: 1rem;
}

.footer-redes a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-redes a:hover {
  color: #f3c419;
  transform: scale(1.2);
}

.footer-frase {
  font-style: italic;
  font-weight: 500;
  color: #aaa;
  margin-top: 0.5rem;
}

.whatsapp-btn {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 10px 16px;
  margin-top: 12px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
}

/* Estilo para confirmación de suscripción */
.confirmacion-suscripcion {
  margin-top: 10px;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  font-size: 0.9rem;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .footer-contenido {
    grid-template-columns: 1fr;
    text-align: center;
  }
}




  
  



/*  COSAS NUEVAS */
body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-family: 'Arimo', Calibri, sans-serif;
}

/* OBJETIVO */
.objetivo {
    padding: 40px 10%;
    background-color: #ffffff;
    text-align: center;
}

.objetivo h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.objetivo p {
    font-size: 16px;
    color: #555;
    max-width: 900px;
    margin: auto;
}

/* ELEGIRNOS */
.elegir {
    padding: 50px 10%;
    background: #f0f8ff;
}

.elegir-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.elegir .text {
    flex: 1;
}

.elegir .text h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

.elegir .text ul {
    list-style-type: none;
    padding-left: 0;
}

.elegir .text li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
}

.elegir .image {
    flex: 1;
    text-align: center;
}

.elegir .image img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* BOTONES RÁPIDOS */
.botones-rapidos {
    background: #d1e3ee;
    text-align: center;
    padding: 40px 10%;
}


.botones-rapidos h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #444;
}

.botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    background-color: #0077cc;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #005fa3;
}



/* servcios.html */

/* BANNER DE SERVICIOS */
.banner-services {
    background: url('/assets/images/banner-services.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    position: relative;
}

.banner-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 10px;
}

/* SECCIÓN SERVICIOS */
.services {
    text-align: center;
    padding: 50px 10%;
}

.services h1 {
    font-size: 36px;
    color: #012b3d;
    margin-bottom: 20px;
    border-bottom: 3px solid #006400;
    display: inline-block;
    padding-bottom: 5px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.service {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service img {
    width: 60px;
    margin-bottom: 15px;
}

.service h3 {
    font-size: 20px;
    color: #004d00;
    margin-bottom: 10px;
}

.service p {
    font-size: 16px;
    color: #333;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}


/* SECCIÓN "¿POR QUÉ ELEGIRNOS?" */
.why-us {
    text-align: center;
    padding: 50px 10%;
    background: #eaf4fc;
}

.why-us h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.why-us-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.why-us-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    text-align: center;
}

.why-us-card img {
    width: 50px;
    margin-bottom: 10px;
}

.why-us-card h3 {
    color: #0077cc;
    font-size: 18px;
}

.why-us p {
    font-size: 16px;
    color: #333;
}

.why-us:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

/*   NUEVAS COSAAAS  */


.filosofia-banner-video {
    position: relative;
    height: 300px;
    overflow: hidden;
  }
  
  .filosofia-banner-video .video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
  }
  
  .filosofia-banner-video .filosofia-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.4); /* oscurece el video */
    color: white;
    text-align: center;
    padding: 20px 40px;
  }
  

.filosofia-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filosofia-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
}

.historia, .mision-vision, .valores {
    padding: 60px 10%;
}

.historia h2,
.mision h2,
.vision h2,
.valores h2 {
    color: #012b3d;
    font-size: 30px;
    margin-bottom: 15px;
}

.historia p, .mision p, .vision p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/*ICONOS MISION VISION*/
.mision-vision {
    display: flex;
    flex-direction: column;
    gap: 50px;
    background: linear-gradient(to bottom, #ffffff, #f1faff);
    padding: 60px 10%;
  }
  
  .bloque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .bloque img {
    width: 100px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .bloque .texto {
    flex: 1;
    min-width: 250px;
  }
  
  .bloque h2 {
    font-size: 28px;
    color: #012b3d;
    margin-bottom: 10px;
    border-bottom: 2px solid #006400;
    display: inline-block;
  }
  
  .bloque p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
  }
  
  /* Este es el truco para invertir visión */
  .bloque.vision {
    flex-direction: row-reverse;
  }

/*ICONOS MISION VISION*/


.valores {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.valores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.valor {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Efecto al pasar el mouse */
.valor:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Zoom sutil a la imagen */
.valor img {
    width: 60px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.valor:hover img {
    transform: scale(1.1);
}

/* Título con línea animada debajo */
.valor h3 {
    font-size: 18px;
    color: #006400;
    margin-bottom: 10px;
    position: relative;
    transition: color 0.3s ease;
}
.valor p {
    font-size: 15px;
}

.valor h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #006400;
    transition: width 0.3s ease, left 0.3s ease;
}

/* Activación del efecto */
.valor:hover h3 {
    color: #004080; /* Azul más fuerte */
}

.valor:hover h3::after {
    width: 100%;
    left: 0;
}


/* HOOVER */

/* Estilos de hover para bloques de Misión y Visión */
.bloque {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .bloque:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  /* Imagen con escala al pasar el mouse */
  .bloque img {
    transition: transform 0.3s ease;
  }
  
  .bloque:hover img {
    transform: scale(1.05);
  }
  
  /* Línea decorativa animada en el título */
  .bloque h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease;
  }
  
  .bloque h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #006400;
    transition: width 0.3s ease;
  }
  
  .bloque:hover h2::after {
    width: 100%;
  }
  
  /* Cambio de color en el texto al pasar el mouse */
  .bloque:hover h2 {
    color: #004d00;
  }
  
/* HOOVER */



/* PRUEBAS.HTML */
/* Sección de Pruebas */
/* Banner */
/* Banner con video */
.servicios-banner-video {
    position: relative;
    height: 300px;
    overflow: hidden;
  }
  
  .video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
  }
  
  .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  /* Lista de servicios */
  .servicios-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 60px 20px;
    gap: 30px;
    background: #f1f8ff;
  }
  
  .servicio {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .servicio:hover {
    transform: translateY(-10px);
  }
  
  .servicio img {
    height: 60px;
    margin-bottom: 15px;
  }
  
  .servicio h2 {
    color: #063970;
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .servicio p {
    font-size: 16px;
    color: #444;
  }
  
  /* CTA */
  .contacto {
    background: #e3f2fd;
    text-align: center;
    padding: 50px 20px;
  }
  
  .contacto h2 {
    font-size: 26px;
    color: #063970;
  }
  
  .contacto p {
    font-size: 18px;
    margin: 10px 0;
  }
  
  .btn-contacto {
    display: inline-block;
    padding: 12px 25px;
    background: #00796b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
  }
  
  .btn-contacto:hover {
    background: #005a4f;
  }
  

/* Sección de Contacto */
.contacto {
    text-align: center;
    padding: 50px 20px;
    background: #e3f2fd;
}

.contacto h2 {
    font-size: 26px;
    color: #063970;
}

.contacto p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.btn-contacto {
    display: inline-block;
    padding: 12px 25px;
    background: #00796b;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-contacto:hover {
    background: #005a4f;
}

/* contacto.HTML */

.contacto-container {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    background: #f5f5f5;
}

.contacto-info {
    width: 40%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.contacto-info h2, h3 {
    color: #063970;
}

.contacto-info p {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.contacto-info img {
    width: 20px;
    margin-right: 10px;
}

.formulario {
    width: 55%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.formulario h2 {
    color: #063970;
}

form {
    display: flex;
    flex-direction: column;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 100px;
}

button {
    margin-top: 10px;
    background: #00796b;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

button:hover {
    background: #005a4f;
}


/* VER MAS (SERVICIOS)*/

.btn-ver-mas {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0074cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: 500;
  }
  
  .btn-ver-mas:hover {
    background-color: #005a99;
  }
  


/* SERVICIOS */
.header-servicio {
    background-color: #004c7f;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .banner-servicio {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    
  }
  
  .banner-servicio img,
  .banner-servicio video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0px;
    filter: brightness(0.4); /* oscurece la imagen */
  }
  
  .banner-texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-family: 'Arimo', sans-serif;
    text-align: center;
  }
  
  .contenido-servicio {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
  }
  
  .descripcion-servicio p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .descripcion-servicio ul {
    list-style: disc;
    padding-left: 1.5rem;
  }
  
  .descripcion-servicio li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  
/* Connstruccion*/

.tarjeta-servicio {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    gap: 20px;
  }
  
  .tarjeta-servicio .icono-servicio img {
    width: 80px;
    height: 80px;
  }
  
  .tarjeta-servicio .texto-servicio h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #003366;
  }
  
  .tarjeta-servicio .texto-servicio p {
    margin: 8px 0 0 0;
    font-size: 1em;
    color: #333;
  }

  .tarjeta-servicio:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Responsive: columnas verticales en móvil */
  @media (max-width: 768px) {
    .tarjeta-servicio {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .tarjeta-servicio .icono-servicio img {
      margin-bottom: 10px;
    }
  }
  
  

  /* suministro */

  .lista-servicio {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
  }
  
  .lista-servicio li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .lista-servicio li::before {
    content: "✅";
    font-size: 1.2rem;
  }


  .item-servicio.no-icon {
    background-color: #f1faff;
    border-left: 5px solid #0077b6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .item-servicio.no-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
  }
  
  .item-servicio.no-icon h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #034078;
    font-weight: 500;
  }
  
  .descripcion-servicio p.eslogan {
    font-style: italic;
    font-weight: bold;
    margin-top: 30px;
    text-align: center;
    color: #0077b6;
    font-size: 1.1rem;
  }
  

  /* DIAGNOSTICO */

 /* DIAGNOSTICO */

.item-servicio-img {
    display: flex; /* Usa flexbox */
    align-items: center; /* Centra el contenido verticalmente */
    background-color: #f9fcff;
    border-left: 5px solid #023e8a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .item-servicio-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(2, 62, 138, 0.15);
  }
  
  .item-servicio-img img {
    width: 40%; /* La imagen ocupa el 40% del contenedor */
    height: auto; /* Ajusta la altura proporcionalmente */
    object-fit: cover;
    border-radius: 6px;
    margin-right: 16px; /* Espacio entre la imagen y el texto */
  }
  
  .item-servicio-img h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #023e8a;
    font-weight: 500;
  }
  

  /* fotovoltaico */

  /* BANNER */

.banner-sistemas-fotovoltaicos {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner-sistemas-fotovoltaicos video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.banner-texto-sistemas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 2rem;
}

.banner-texto-sistemas h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.banner-texto-sistemas p {
  font-size: 1.25rem;
}

/* DIAGNOSTICO */


.contenido-servicios-fotovoltaico {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-servicio-fotovoltaico {
  display: flex;
  align-items: center;
  background-color: #f1faff;
  border-left: 5px solid #0077b6;
  border-radius: 10px;
  padding: 16px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-servicio-fotovoltaico:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.item-servicio-fotovoltaico img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.item-servicio-fotovoltaico p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #034078;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .item-servicio-fotovoltaico {
    flex-direction: column;
    text-align: center;
  }

  .item-servicio-fotovoltaico img {
    margin: 0 0 10px 0;
  }
}


/* FotoVoltaico */

.banner-servicio {
    position: relative;
    height: 350px;
    overflow: hidden;
  }
  
  /*.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }*/
  
  .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }
  
  .banner-overlay h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
  
  .frase-banner {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 700px;
  }


  /* CONTENIDO DE SERVICIOS - MANTENIMIENTO */
.contenido-servicios-soporte {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-servicio-soporte {
  display: flex;
  align-items: center;
  background-color: #f1faff;
  border-left: 5px solid #0077b6;
  border-radius: 10px;
  padding: 16px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-servicio-soporte:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.item-servicio-soporte img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.item-servicio-soporte p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #023e8a;
}

/* Responsive */
@media (max-width: 600px) {
  .item-servicio-soporte {
    flex-direction: column;
    text-align: center;
  }

  .item-servicio-soporte img {
    margin: 0 0 10px 0;
  }
}
  

  /* CONTACTENOS */

  .contacto-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
  }
  
  .info-contacto {
    flex: 1 1 400px;
    background: #f4f4f4;
    padding: 2rem;
    border-radius: 10px;
  }
  
  form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  form button {
    background-color: #0c7b5f;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  form button:hover {
    background-color: #095f49;
  }
  
  .whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
  }
  
  .whatsapp-btn:hover {
    background-color: #1ebe57;
  }
  
  .banner-contacto {
    background-color: #00223a;
    color: white;
    padding: 2rem;
    text-align: center;
    font-weight: bold;
  }
  


/* FORM*/

.formulario-contacto {
    display: flex;
    flex-direction: column;
    min-width: 500px;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }
  
  .formulario-contacto label {
    margin: 10px 0 5px;
    font-weight: bold;
  }
  
  .formulario-contacto input,
  .formulario-contacto textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
  }
  
  .formulario-contacto button {
    margin-top: 20px;
    padding: 10px;
    background-color: #0073e6;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .formulario-contacto button:hover {
    background-color: #005bb5;
  }
  
  .mensaje-exito {
    text-align: center;
    margin-top: 20px;
    color: green;
    font-size: 1.1em;
    font-weight: bold;
  }
  


  /* BANNER VIDEO */


  /* ESTILO GENERAL PARA TODOS LOS BANNERS CON VIDEO */
.banner-video {
    position: relative;
    height: 300px;
    overflow: hidden;
  }
  
  .banner-video .video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.4); /* oscurece el video */
  }
  
  /* Superposición para texto centrado */
  .banner-video .banner-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px 40px;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }


  .banner-video .banner-texto h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  }
  
  .banner-video .banner-texto p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  }
  



  /* BANNER PRINCIPAL MEJORADO*/

  
  /* BANNER CON IMAGEN DE FONDO */
.banner-imagen {
    position: relative;
    height: 300px;
    overflow: hidden;
  }
  
  .banner-imagen .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4); /* oscurece la imagen */
    z-index: 1;
  }
  
  .banner-imagen .banner-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    text-align: center;
  }
  
  .banner-imagen .banner-texto h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  }
  
  .banner-imagen .banner-texto p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  }


  /* ... Código CSS original aquí ... */

/* ===================== RESPONSIVE DESIGN ===================== */

/* Tablet (pantallas <= 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 10px 20px;
  }
  .about-content,
  .elegir-content,
  .why-us-container,
  .services-container,
  .valores-container,
  .footer-contenido {
    flex-direction: column;
    align-items: center;
  }
  .about .image img,
  .elegir .image img {
    max-width: 100%;
  }
}

/* Móviles (pantallas <= 768px) */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-text p {
    font-size: 16px;
  }
  .objetivo p,
  .elegir .text li,
  .services h1,
  .service p,
  .why-us p,
  .contacto p {
    font-size: 15px;
  }
  .service,
  .why-us-card {
    width: 90%;
  }
  .formulario,
  .contacto-info {
    width: 100%;
  }
  .footer-redes,
  .footer-contacto,
  .footer-mapa {
    flex: 1 1 100%;
    text-align: center;
  }
  .input-group {
    flex-direction: column;
  }
  .formulario-contacto {
    min-width: auto;
    width: 100%;
  }
  .banner-texto-sistemas h1 {
    font-size: 2rem;
  }
  .banner-texto-sistemas p {
    font-size: 1rem;
  }
}

/* Dispositivos pequeños (<= 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 22px;
  }
  .hero-text p,
  .objetivo p,
  .btn,
  .btn-ver-mas,
  .btn-contacto {
    font-size: 14px;
    padding: 10px 18px;
  }
  .banner-overlay h1,
  .banner-video .banner-texto h1,
  .banner-imagen .banner-texto h1 {
    font-size: 1.5rem;
  }
  .tarjeta-servicio,
  .service,
  .why-us-card,
  .valor {
    width: 100%;
  }
  .footer-frase {
    font-size: 0.85rem;
  }
}

/* Imágenes y videos adaptables */
img, video {
  max-width: 100%;
  height: auto;
}

  

/* === Menú hamburguesa general === */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  transition: transform 0.3s ease;
}

.menu-toggle i {
  font-size: 26px;
  transition: transform 0.3s ease;
}

.menu-toggle.active i {
  transform: rotate(90deg);
  color: #0077cc;
}

/* === Ajustes para móviles === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
  }

  nav ul.show {
    max-height: 500px; /* suficiente para mostrar todo el contenido */
    padding: 10px 0;
  }

  nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  header {
    position: relative;
  }
}


/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  text-align: center;
  line-height: 56px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  background-color: #1ebe57;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 22px;
    line-height: 48px;
    bottom: 16px;
    right: 16px;
  }
}


/*CSS para transparencia*/


/* SOLO PARA INDEX */
.index-page header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 15px 30px;
}

.index-page header.scrolled {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.index-page .logo img {
  height: 50px;
  transition: opacity 0.3s ease;
}

.index-page .logo .logo-dark {
  display: none;
}

.index-page header.scrolled .logo .logo-dark {
  display: inline;
}

.index-page header.scrolled .logo .logo-white {
  display: none;
}

.index-page .banner-imagen {
  height: 100vh;
}

.index-page body {
  padding-top: 90px;
}

/* Color del icono hamburguesa dinámico SOLO en index */
.index-page .menu-toggle {
  color: white;
  z-index: 1000;
  transition: color 0.3s ease;
}

/* Cambia a negro cuando haces scroll */
.index-page header.scrolled .menu-toggle {
  color: black;
}

/* Enlaces blancos sobre banner */
.index-page header:not(.scrolled) nav#nav-menu a {
  color: white;
}

/* Enlaces negros cuando haces scroll */
.index-page header.scrolled nav#nav-menu a {
  color: black;
}

/* Color del icono hamburguesa dinámico SOLO en index */
.index-page .menu-toggle {
  color: white;
  z-index: 1000;
  transition: color 0.3s ease;
}

/* Cambia a negro cuando haces scroll */
.index-page header.scrolled .menu-toggle {
  color: black;
}


/* Ajuste de enlaces en el menú cuando está abierto (solo en index y móvil) */
@media (max-width: 768px) {
  /* Fondo claro para el menú */
  .index-page #nav-menu ul.show {
    background-color: white;
    padding: 20px;
    border-top: 1px solid #ddd;
  }

  /* Enlaces visibles en fondo blanco */
  .index-page #nav-menu ul.show a {
    color: black !important;
  }

  /* Enlaces cuando NO está abierto y aún estás arriba (header transparente) */
  .index-page header:not(.scrolled) #nav-menu a {
    color: white;
  }

  /* Enlaces cuando haces scroll (header blanco) */
  .index-page header.scrolled #nav-menu a {
    color: black;
  }
}

.index-page .menu-toggle i {
  font-size: 1.5rem;
  z-index: 1001;
}



/* === OPCIÓN 1: Fade in desde abajo para el h1 === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

/* === OPCIÓN 2: Máquina de escribir para el p === */
.typing {
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white;
  animation: typing 3s steps(40, end) forwards, blink 0.6s step-end 6; /* solo 6 parpadeos */
  font-size: 1.2rem;
  display: inline-block;
}

/* Esta clase se añadirá por JS después */
.typing.done {
  border-right: none !important;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}
