/* Reset global */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
}


/*------------------PORTADA INICIO--------------------*/

.hero-section {
  position: relative;
  display: flex;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 65vh; 
  overflow: hidden;
  background-color: #ffffff; 
  color: white;
  z-index: 10;
  margin-top: 80px;
  
}

/* Sección de Texto Izquierda */
.hero-left {
  background-color: #002244; 
  width: 45%; 
  padding: 60px 80px 60px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2; 
  border-radius: 10px;
}


.hero-left .caption {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 400px;
}

.rotating-title {
  margin-bottom: 10px;
  transition: opacity 0.5s ease-in-out;
}

.rotating-title h2 {
  font-size: 3.5rem;
  margin-bottom: 5px;
  line-height: 1;
}

.rotating-title .subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ddd;
}


.cta-group {
  display: flex;
  flex-direction: row; 
  justify-content: flex-start; 
  align-items: center;
  flex-wrap: wrap;
  gap: 0; 
  margin-top: 15px;
  font-size: 1rem;
}

.cta-group .link {
  color: white;
  font-weight: 500;
  display: inline-block;
  margin: 0 5px;
}

/* Barra separadora entre enlaces */
.cta-group .link:not(:last-child)::after {
  content: " | ";
  color: #87CEEB;
  margin-left: 5px;
}

.separator {
  color: #87CEEB;
  margin: 0 5px;
}

.cta-button {
  display: inline-block;
  background-color: #89aff7;
  color: #002244; 
  padding: 10px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background-color: #37c3ff;
}

/* Sección Derecha - Carrusel */
.hero-right {
  width: 70%; 
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* Contenedor de las diapositivas */
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  /*clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 5;*/
}

/* Cada imagen individual del slide */
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  object-position: center right; 
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}


.hero-slide-item::before {
  content: none;
}
/* Animación de aparición del texto */
.text-fade {
  opacity: 0;
  transform: translateY(10px); 
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/*----------------infor-----------*/
.info-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: nowrap; 
    width: 80%; 
    max-width: 1000px; 
    margin: 0 auto; 
    margin-bottom: 40px;
    margin-top: -100px; 
    padding-top: 130px;
    position: relative; 
    z-index: 5;
    background: #ffffff;

}

.info-text {
    flex: 1 1 60%;
  }
  
  
.info-text h1 {
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.0;
    color: #000;
    margin-bottom: 12px;
}
.info-text h2 {
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 0;
  color: #000;
  margin-bottom: 12px;
}

.info-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #222;
    margin-bottom: 30px;
}

.info-image {
  flex: 1 5 90%; 
  display: flex;
  justify-content: flex-end; 
}

.info-image img {
  width: 100%; 
  height: 100%;
  border-radius: 5;
  max-width: 500px;
}


.gallery {
    --g: 8px; 
    
    display: grid;
    clip-path: inset(1px); 
  }
  .gallery > img {
    --_p: calc(-1*var(--g));
    grid-area: 1/1;
    width: 350px; 
    aspect-ratio: 1;
    cursor: pointer;
    transition: .4s .1s;
  }
  .gallery > img:first-child {
    clip-path: polygon(0 0, calc(100% + var(--_p)) 0 , 0 calc(100% + var(--_p)))
  }
  .gallery > img:last-child {
    clip-path: polygon(100% 100%, 100% calc(0% - var(--_p)), calc(0% - var(--_p)) 100%)
  }
  .gallery:hover > img:last-child,
  .gallery:hover > img:first-child:hover{
    --_p: calc(50% - var(--g));
  }
  .gallery:hover > img:first-child,
  .gallery:hover > img:first-child:hover + img{
    --_p: calc(-50% - var(--g));
  }




/*------CARUSEL LOGOS CLIENTES-----------------*/

.clients-title {
  position: relative;
  font-size: 3em;
  color: #333;
  margin: 40px auto 10px;   
  text-align: center;      
  display: block;           
  width: fit-content;     
  font-weight: 900;
  font-size: 4rem;
  line-height: 1.0;
}



.clients-title {
  text-align: center;
  margin-bottom: 20px;
}
.linea-scroll {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  margin: 20px 0;
}

.scroll-strip {
  display: inline-block;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 35s;
}

.elemento {
  display: inline-block;
  margin: 0 30px;
}

.elemento img {
  width: 130px;
  height: auto;
  filter: grayscale(20%);
  transition: 0.3s;
}

.elemento img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.scroll-left .scroll-strip {
  animation-name: mover-izq;
}

@keyframes mover-izq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.scroll-right .scroll-strip {
  animation-name: mover-der;
}

@keyframes mover-der {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.linea-scroll:hover .scroll-strip {
  animation-play-state: paused;
}

  /*-----SERVICIOS-----*/
  
  .contener {
    position: relative; 
    width: 100%;
    margin: 0 ;
    text-align: center;
    align-items: center;
  }
  
  .contener img {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-height: 400px; 
    object-fit: cover; 
    display: block;
  }
  
.oscurecer-degradado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 102, 161, 0.5));
    z-index: 1;
}

.content1 {
    position: absolute;
    top: 30%;
    right: 18%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    text-align: center; 
    max-width: 65%;
    padding: 20px;
    
}

 .content1 h2{
  font-weight: 900;
  font-size: 4rem;
  line-height: 1.0;
 }

 .content1 p{
  font-size: 1.3rem;
  line-height: 1.0;
 }

 /*----SERVICIOS TARJETA---*/
.tarjeta {
  position: absolute;
  top: 84%; 
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  width: 100%;
  padding: 0; 
  margin: 0;
}
.cards-container {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 0; 
  width: 100%; 
  max-width: none; 
  margin: 0 ;
  background-color: transparent; 
}

/* Cada tarjeta */
.card {
  flex: 1;
  background-color: transparent;
  color: #f9f6fd;
  padding: 10px 5px; 
  border: 1px solid #b7bfd4;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 80px; 
  display: flex;
  justify-content: center; 
  align-items: center; 
  overflow: hidden; 
}

/* Contenedor interno */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  gap:5px;
}

/* Icono */
.icon-placeholder {
  font-size: 2em;
  line-height: 1;
  color: #f8f8fa;
  transition: color 0.3s ease;
}

.plant-icon svg {
  width: 1.4em;
  height: 1.4em;
  stroke: currentColor;
  fill: none;
}

/* Texto */
.text-group strong {
  font-size: 0.85em;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis; 
  overflow: hidden; 
  max-width: 100%; 
}

/* Flecha */
.arrow {
  font-size: 1.5em;
  color: #002244;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 3px;
}

/* Hover */
/*
.card:hover {
  border-color: #002244;
}*/

.card:hover .icon-placeholder {
  color: #002244;
}

.card:hover .arrow {
  opacity: 1;
}



/*-------------MOSAICO 6S---------------*/
.ventajas-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: #3c95ee;
  font-family: 'Roboto', sans-serif;
  margin-top: 40px; 
  margin-bottom: 40px;
}

.ventajas-header {
  background-color: #0066a1;
  color: white;
  text-align: center;
  padding: 20px 10px;
}

.ventajas-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Contenido (texto + imagen) */
.ventajas-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background-color: #f9f9f9;
  min-height: 260px;
  overflow: hidden;
}

/* Cambia el orden en los bloques con clase .reverse */
.ventajas-content.reverse {
  flex-direction: row-reverse;
}

/* Columna de texto */
.ventajas-texto {
  flex: 1 1 41%;
  color: #0066a1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.ventajas-texto h3 {
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 10px;
}

.ventajas-texto p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Columna de imagen */
.ventajas-imagen {
  flex: 1 1 47%;
  position: relative;
  overflow: hidden;
}

.ventajas-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.ventajas-imagen img:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}



/*-----CONTACTO----*/

.contact-section {
  display: flex;
  align-items: flex-start; 
  padding: 40px;
  background-color: #f8f8f8; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  width: 100%; 
  box-sizing: border-box; 
  max-width: 1400px; 
  margin: 0 auto;
}


.contact-info {
  text-align: center;
  margin-right: 40px; 
  flex-shrink: 0;
  width: 150px;
}


/* ESTILOS PARA EL CONTENEDOR (EL CÍRCULO) */
.profile-pic-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 0 0 4px #ddd;
  overflow: hidden; 
  

  display: flex;
  justify-content: center; 
  align-items: center; 
}

.profile-pic {
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  object-position: center; 
  margin-bottom: 0; 
}

.name {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.title {
  font-size: 0.9em;
  color: #666;
}

.contact-message h2 {
  font-size: 2.2em;
  color: #333;
  margin-bottom: 15px;
}


/* Modifica esta clase */
.contact-message {
  flex-grow: 1;
  min-width: 0; 
}

/* Asegúrate que el párrafo pueda saltar de línea */
.contact-message p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
  word-wrap: break-word; 
}

.contact-button {
  background-color: #155e93;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-button:hover {
  background-color: #002244;
}

/*=========VIDEO============*/

.contenedor-video {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 10px;

}

.video_portada {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}



/*====RESPONSIVE GENERAL====*/

/* ----------- Tablets ----------- */
@media (max-width: 1024px) {

  /* HERO */
  .hero-section {
    height: auto;
    flex-direction: column;
  }

  .hero-left {
    width: auto;
    padding: 40px 40px;
    border-radius: 0;
    text-align: center;
    align-items: center;
  }

  .hero-left .caption {
    max-width: 100%;
  }

  .rotating-title h2 {
    font-size: 2.8rem;
  }

  .cta-group {
    justify-content: center;
    width: auto;
  }

  .hero-right {
    width: 100%;
    height: 45vh;
  }

  .hero-slide {
    object-fit: cover;
  }

  /* INFO */
  .info-section {
    flex-wrap: wrap;
    margin-top: 0px;
    gap: 20px;
  }

  .info-text {
    flex: 1 1 100%;
    text-align: center;
  }

  .info-image {
    flex: 1 1 100%;
    justify-content: center;
  }

  .info-image img {
    max-width: 350px;
  }

  /* SERVICIOS */
  .content1 {
    right: 10%;
    max-width: 80%;
  }

  .content1 h2 {
    font-size: 3rem;
  }

  .cards-container {
    gap: 0;
  }

  .card {
    padding: 10px;
  }
}

/* ----------- Móviles grandes ----------- */
@media (max-width: 768px) {

  /* HERO */
  .hero-section {
    margin-top: 40px;
    height: auto;
  }

  .hero-left {
    width: auto;
    padding: 30px 20px;
    align-items: center;
  }

  .rotating-title h2 {
    font-size: 2rem;
  }

  .cta-group {
    justify-content: center;
    width: auto;
  }
  .cta-group .link {
    font-size: 0.7rem;
  }

  .hero-right {
    height: 40vh;
  }

  /* INFO */

  .info-section {
    flex-wrap: wrap;
    margin-top: 0 !important;
    padding-top: 40px !important;
    gap: 20px;
    align-items: center;
    text-align: center;

  }

  .info-text h2 {
    font-size: 2.5rem;
    width: 90%;
  }

  .info-text p {
    font-size: 1.2rem;
  }

  .info-image {
    flex: 1 1 100%;
    justify-content: center;
    width: 50%;
  }

  
  /* SERVICIOS PORTADA */
  .contener img {
    height: 350px !important; 
    object-fit: cover;
}
  .content1 {
    position: absolute;
    top: 20%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    width: 90%;
    padding: 0 10px;
    z-index: 10;
}

.content1 h2 {
    font-size: 2.3rem;
    line-height: 1.1;
}

.content1 p {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-top: 10px;
}

  /* TARJETAS */
  .tarjeta {
    position: relative;
    top: 0;
    transform: none;
    margin-top: -0px; 
    z-index: 20;
    width: 100%;
}

.cards-container {
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.card {
    width: 100%;
    padding: 15px;
    min-height: 70px;
}

  /* CLIENTES */
  .clients-title {
    font-size: 2.2rem;
    margin-top: 60px;
  }

  .elemento img {
    width: 90px;
  }

   /* ===== MOSAICO VENTAJAS ===== */
   .ventajas-content,
   .ventajas-content.reverse {
       flex-direction: column;
       text-align: center;
   }
 
   .ventajas-texto {
       padding: 25px;
   }
 
   .ventajas-texto h3 {
       font-size: 1.4rem;
   }
 
   .ventajas-texto p {
       font-size: 1rem;
   }
 
   .ventajas-imagen img {
       width: 100%;
       max-height: 300px;
   }

  /* CONTACTO*/
.contact-section {
  flex-direction: column; 
  text-align: center;
  padding: 30px 20px;
  gap: 20px; 
}

.contact-info {
  margin-right: 0; 
  margin-bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px auto;
}

.contact-message {
  width: 100%;
}

.contact-message h2 {
  font-size: 2.5rem; 
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 20px;
}

.contact-message p {
  font-size: 1.1rem;
  max-width: 90%; 
  margin: 0 auto 30px auto;
}

.contact-button {
  width: 60%; 
  min-width: 200px;
  padding: 15px;
}
}

/* ----------- Móviles pequeños ----------- */
@media (max-width: 480px) {

  /* HERO */
  .hero-left {
    padding: 20px 15px;
  }

  .rotating-title h2 {
    font-size: 1.9rem;
  }

  .hero-left .caption {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  /* INFO */
  .info-text h2 {
    font-size: 2rem;
  }

  .info-text p {
    font-size: 1rem;
  }

  .info-image {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* SERVICIOS */
  .content1 h2 {
    font-size: 1.9rem;
  }

  .card {
    padding: 8px 10px;
  }

  .text-group strong {
    font-size: 0.75em;
  }

  /* CLIENTES */
  .clients-title {
    font-size: 1.8rem;
  }
}
