body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Montserrat, sans-serif;
    background-image: url('/ASS2WebPage/img/fondo-index.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}


/******************************************************************************************/

/* Estilos básicos para la sección */

.servicios-container {
    margin-top: 15px; /* Espacio entre el título y el contenido */
}

.servicio {
    margin-bottom: 20px; /* Espacio entre servicios si hay más */
}

h2 {
    color: #2c3e50; /* Color del título principal */
    text-align: center; /* Centrar título */
}

h3 {
    color: #3498db; /* Color del subtítulo */
    margin-bottom: 10px; /* Espacio inferior del subtítulo */
}



.btn-secondary {
    display: block; /* Hacer que el botón ocupe toda la línea */
    margin: auto; /* Centrar botón horizontalmente */
    padding: 10px 20px; /* Espaciado interno del botón */
    background-color: #7b94a5; /* Color de fondo del botón */
    color: white; /* Color del texto del botón */
    border: none; /* Sin borde */
    border-radius: 4px; /* Bordes redondeados del botón */
    cursor: pointer; /* Cambiar cursor al pasar sobre el botón */
    transition: background-color 0.3s ease; /* Transición suave al cambiar color */
}

.btn-secondary:hover {
    background-color: #5d6d77; /* Color al pasar el mouse sobre el botón */
}


/******************************************************************************************/
#toast-message {
    visibility: hidden; 
    min-width: 250px;
    background-color: #3da0e2; /* verde éxito */
    color: white; 
    text-align: center; 
    border-radius: 6px; 
    padding: 16px; 
    position: fixed;
    top: 20px; 
    left: 20px;       /* Cambiado de right a left */
    z-index: 9999;
    font-weight: bold; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: visibility 0s, opacity 0.5s linear; 
    opacity: 0;
}



/*****************************************************************************************************/

/*=======================*/
/*   HERO SECTION        */
/*=======================*/

#hero {
    width: 100%;
    min-height: 100vh; /* Adapta el tamaño de la seccion para que no se haga mucho scroll y pase a la siguiente seccion*/
    background: url('/ASS2WebPage/img/sec-hero-1.jpg') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.26);
}

/* Filtro azul translúcido encima de la imagen */
#hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(35, 102, 168, 0.35);
    z-index: 0;
}

/* Título hero principal, escalable */
#hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* Título hero secundario, escalable */
#hero h5 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 1000;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Hero layout principal */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Logo hero en blanco (si lo usas) */
.hero-logo img {
    filter: grayscale(1) brightness(0) invert(1);
    height: 250px;
    margin-left: auto;
    align-items: left;
}

/* Bloque destacado para título y texto */
.hero-text-box {
    /*background: rgba(255, 255, 255, 0.38);*/
    border-radius: 25px;
    /*border: 2px solid #fff;*/
    padding: 20px 20px 0 0;
    margin-bottom: 28px;
    /*box-shadow: 0 8px 32px rgba(0,0,0,0.11);*/
    /*backdrop-filter: blur(4px);*/
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* Estilo del título dentro del bloque destacado */
.hero-text-box h5 {
    color: #2366a8;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 1000;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

/* Párrafo destacado y justificado */
.texto-justificado {
    color: #ffffff;
    font-size: 1.2rem;
    text-align: justify;
    font-weight: bold;
    font-family: inherit;
    line-height: 1.6;
    margin-bottom: 50px;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Botonera alineada y sensible a columna/fila */
.hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
    margin-left: 0;
}

/* Botones transparentes con contorno blanco */
#hero button {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    position: relative;
    width: auto;
}

/* Estilo del link dentro del botón */
#hero button a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0;
}

/* Hover visual para los botones */
#hero button:hover {
    background: #174a76;
    color: #fff;
}

/*===========================*/
/*   ANIMACIONES HERO        */
/*===========================*/

.anim-fade-up {
    opacity: 0;
    transform: translateY(32px);
    animation: fadeUp 1s cubic-bezier(.65,.05,.36,1) forwards;
    animation-delay: 0s;
}
@keyframes fadeUp {
    to { opacity:1; transform:translateY(0);}
}

.anim-fade-float {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: fadeFloat 1.3s cubic-bezier(.4,0,.2,1) forwards;
    animation-delay: .18s;
}
@keyframes fadeFloat {
    to { opacity: 1; transform:translateY(0) scale(1);}
}

.anim-fade-scale {
    opacity: 0;
    transform: scale(0.91);
    animation: fadeScale 1s cubic-bezier(.7,0,.3,1) forwards;
    animation-delay: .36s;
}
@keyframes fadeScale {
    to { opacity:1; transform:scale(1);}
}

/*======================*/
/*   RESPONSIVE HERO    */
/*======================*/

@media (max-width: 990px) {
    #hero {
        min-height: 600px;
        padding: 32px 12px 0 12px;
    }
    .hero-text {
        margin-left: 0;
        max-width: 100%;
        align-items: center;
    }
    .hero-text-box,
    .hero-text-box h5 {
        max-width: 100%;
        text-align: center;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-left: 0;
        margin-top: 18px;
    }
    #hero button {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
    }
    .texto-justificado {
        font-size: 1rem;
        margin-bottom: 24px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    #hero {
        min-height: 400px;
        padding: 14px 5px 0 5px;
    }
    .hero-text-box {
        padding: 12px 8px 0 8px;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    }
    #hero h1,
    #hero h5,
    .hero-text-box h5 {
        font-size: 1.5rem;
        margin: 0 0 12px 0;
    }
    .texto-justificado {
        font-size: 0.95rem;
    }
}

/*******************************************************************************************/
/*====================*/
/*   SECCION RESUM    */
/*====================*/

.resum {
    width: 100%;
    padding: 150px 0px;  /* Más espacio arriba y abajo */
    background: transparent;
    text-align: center;  /* Centrar horizontalmente todo el texto dentro */
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
}

.resum h2 {
    max-width: 750px;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.5;
    margin: 0 auto 30px auto; /* Centra y separa el título del párrafo */
    font-family: Arial, sans-serif;
}

.resum p.resum-text {
    max-width: 750px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #333333;
    line-height: 1.7;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    letter-spacing: 0.2px;
    text-align: center;  /* Centra el texto del párrafo */
}

/* Estado inicial: invisible y desplazado abajo */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Cuando se activa la clase 'visible' se muestra el elemento */
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 600px) {
    .resum h2 {
        font-size: 1.4rem;
        padding: 0 10px;
    }
    .resum p.resum-text {
        font-size: 1rem;
        padding: 0 10px;
    }
}




/*******************************************************************************************/
/*==============================*/
/*   SECCION CONTROLVOL-TEXT    */
/*==============================*/


.controlvol_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /*flex-wrap: wrap;*/
    position: relative;
    padding: 40px 300px;
    /*max-width: 1380px;*/
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0 auto;
    background-color: #00558c; /* Fondo azul */
    color: #ffffff;
    /*border-radius: 10px;       /* Opcional: activa el borde redondeado si lo deseas */
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
}

.controlvol-text {
    flex: 1 1 600px;        /* Ocupa el lado izquierdo, mínimo 600px cuando es posible */
    margin-top: 0;
    text-align: left;
}

.controlvol-text p {
    font-size: 23px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    max-width: 100%;
    text-align: justify;
}

.controlvol-image {
    flex: 0 1 200px;        /* Ocupa el lado derecho, con máximo 300px de ancho */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
}

.controlvol-image img {
    max-width: 350px;
    height: auto;
}

/* Estado inicial para animar */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estado visible final */
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividad: apila en pantallas pequeñas */
@media (max-width: 768px) {
    .controlvol_container {
        flex-direction: column;
        padding: 24px 12px;
        gap: 24px;
    }
    .controlvol-text, .controlvol-image {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }
    .controlvol-text {
        margin-bottom: 20px;
        text-align: center;
    }
    .controlvol-image {
        justify-content: center;
    }
}

   


/*********************************************************************************************/
/* Sección principal */
#servicios {
  max-width: 1100px;
  margin: 0px auto;
  padding: 140px 20px;
  font-family: Arial, sans-serif;
  color: #121212;
  text-align: center;
}

#servicios h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  /*text-transform: uppercase;*/
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* Contenedor de cada servicio */
.servicio {
  display: flex;
  align-items: center;
  background: #fff;
  /*border-radius: 12px;*/
  /*box-shadow: 0 5px 20px rgba(0,0,0,0.1);*/
  margin-bottom: 0px;
  overflow: hidden;
  min-height: 260px;
  /*padding: 0px 0px 0px 20px;*/
  gap: 40px;
}

.servicio img {
  width: 50%;  
  height: 50%; 
  object-fit: cover; 
  flex-shrink: 0;
}

/* Contenido servicio (texto + botón) */
.contenido-servicio {
  width: 60%;
  text-align: left;
    padding-right: 30px; /* espacio extra a la derecha */
}

.fila-derecha .contenido-servicio {
  padding-right: 0px;
  padding-left: 15px; /* un poco de relleno a la izquierda para balancear */
}

/* Estilos para títulos y párrafos */
.contenido-servicio h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.contenido-servicio p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #333;
}

/* Botón simple */
.btn {
  display: inline-block;
  background-color: #0a4b8e;
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #073366;
}

/* Alternar imagen y texto lado derecho/izquierdo */
.fila-derecha {
  flex-direction: row-reverse;
}

.fila-derecha .contenido-servicio {
  text-align: right;          /* Alinea textos, botones, etc. a la derecha */
  padding-right: 0px;
  padding-left: 30px;
  align-items: flex-end;      /* Alinea los hijos al final (derecha) si usas display:flex; */
  display: flex;              /* Haz el bloque flexible */
  flex-direction: column;     /* Para apilar los textos y botón verticalmente */
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays para imágenes */
.fade-in-up.img-1 { transition-delay: 0.0s; }
.fade-in-up.img-2 { transition-delay: 0.3s; }
.fade-in-up.img-3 { transition-delay: 0.6s; }

/* Delays para textos */
.fade-in-up.text-1 { transition-delay: 0.9s; }
.fade-in-up.text-2 { transition-delay: 1.2s; }
.fade-in-up.text-3 { transition-delay: 1.5s; }

/* Delays para botones */
.fade-in-up.btn-1 { transition-delay: 1.8s; }
.fade-in-up.btn-2 { transition-delay: 2.1s; }
.fade-in-up.btn-3 { transition-delay: 2.4s; }

/* Responsive para móviles */
@media (max-width: 768px) {
  .servicio,
  .fila-derecha {
    flex-direction: column;
  }
  .servicio img,
  .contenido-servicio {
    width: 100%;
    text-align: center;
  }
  .contenido-servicio h3 {
    font-size: 1.6rem;
  }
  .contenido-servicio p {
    font-size: 0.95rem;
  }
}




/***************************************************************************************/

.emp-ubicacion {
  width: 100%;
  padding: 80px 0px;
  background: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #333333;
  box-shadow: 0 0px 32px rgba(0,0,0,0.11);
}

.emp-ubicacion h2 {
  max-width: 750px;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 auto 30px;
}

.emp-ubicacion p {
  max-width: 1000px; /* ancho del contenedor*/
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 auto 60px;
  letter-spacing: 0.2px;
  text-align: justify;
}

/* Contenedor que divide en 2 columnas */
.maps-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 190px;
  flex-wrap: wrap;
}

/* Imagen mapa a la izquierda */
.maps-ubicacion {
  flex: 1 1 480px;
  max-width: 480px;
}

.maps-ubicacion img {
  width: 100%;
  height: auto;
  /*border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);*/
  display: block;
  object-fit: cover;
}

/* Marcadores a la derecha */
.maps-marcador {
  flex: 1 1 300px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  text-align: left;
}

/* Cada marcador */
.marcador-item {
  background-color: #b3b8bd;
  color: white;
  padding: 16px 20px;    /* menos padding para menor tamaño */
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centrar los elementos internos */
  min-width: 100px;      /* ancho mínimo para uniformidad */
  box-shadow: none;      /* quita sombra para menor impacto visual */
  cursor: default;
  transition: background-color 0.3s ease;
}

.marcador-item:hover {
  background-color: #999da1; /* efecto hover sutil opcional */
}

/* Número grande destacado */
.marcador-numero {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

/* Texto descriptivo */
.marcador-texto {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap; /* evitar que el texto se divida en varias líneas */
}

/* efectos de transicion de los elementos de la seccion*/
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays para el efecto progresivo */
.ubicacion-text.fade-in-up { transition-delay: 0s; }
.maps-ubicacion.fade-in-up { transition-delay: 0.5s; }
.marcador-item.fade-in-up:nth-child(1) { transition-delay: 1s; }
.marcador-item.fade-in-up:nth-child(2) { transition-delay: 1.3s; }
.marcador-item.fade-in-up:nth-child(3) { transition-delay: 1.6s; }

/* Adaptación responsive: que los marcadores se apilen vertical en móviles */
@media (max-width: 480px) {
  .maps-marcador {
    flex-direction: column;
    gap: 12px;
  }
  .marcador-item {
    min-width: auto;
    width: 100%;
  }
  .marcador-texto {
    white-space: normal;
  }
}







/*********************************************************************************************/
#empresas {
    /*background: #8b8b8b2b;*/
    padding: 50px 20px;
    text-align: center;
  }
  
  #empresas h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    /*text-transform: uppercase;*/
    font-weight: 700;
    letter-spacing: 1.2px;
  }


  #empresas p {
   max-width: 1300px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 auto 60px;
  letter-spacing: 0.2px;
  text-align: justify;
}
  
  .empresas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 170px; /* Más espacio entre imágenes */
    overflow: hidden;
    width: 100%;
    /*max-width: 1100px;*/
    margin: 0 auto;
    position: relative;
    height: 140px; /* Ajusta la altura para imágenes más grandes */
}
  
.empresas-container img {
   filter: grayscale(100%) brightness(1.2) contrast(1.3);
  -webkit-filter: grayscale(100%) brightness(0.95);
  opacity: 0.7;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow 0.9s, filter 0.5s;
  height: 200px;
  width: 200px;
  object-fit: contain;
  z-index: 1;
}

.empresas-container img[src*="hongyang-inx.png"] {
  filter: grayscale(100%) brightness(1.2) contrast(1.3) !important;
  opacity: 0.7 !important;
}

.empresas-container img.active {
    transform: scale(1.25);
    opacity: 1;
    filter: none;
    z-index: 2;
}

/* Media Queries para pantallas pequeñas (móviles grandes) */
@media (max-width: 768px) {
  .empresas-container {
    flex-wrap: wrap;
    gap: 60px;
    height: auto;
  }

  .empresas-container img {
    height: 120px;
    width: 120px;
  }
}

/* Media Queries para móviles pequeños */
@media (max-width: 480px) {
  .empresas-container {
    flex-direction: column;
    gap: 5px;
    height: auto;
  }

  .empresas-container img {
    height: 100px;
    width: 100px;
  }

  #empresas h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 992px) {
  .empresas-text {
    max-width: 98%;
    font-size: 1.05rem;
    margin-bottom: 36px;
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  .empresas-text {
    font-size: 0.98rem;
    margin-bottom: 24px;
    text-align: left;      /* Mejor lectura en móvil */
    padding: 0 5vw;
  }
}






/*******************************************************************************************/
#calidad {
    width: 100%;
    padding: 80px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    box-shadow: 0 px 32px rgba(0,0,0,0.11);
  }
  
  #calidad h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    /*text-transform: uppercase;*/
    font-weight: 700;
    letter-spacing: 1.2px;
  }
  
  
  .calidad-container {
    background: #ffffff;
    /*border-radius: 16px;*/
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 0px 0px 40px ;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 220px;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.06);
  }
  
  .calidad-text {
    flex: 1;
    text-align: left;
    font-size: 1.3rem;
    color: #222;
    font-weight: 400;
    line-height: 1.5;
    padding: 0px 40px 0px 10px;
    display: flex;
  }
  
  .calidad-text p {
    margin: 0;
    font-size: 23px;
    font-weight: 400;
    color: #222;
    text-align: justify;
  }

  .calidad-img {
    width: 600px;          /* ancho automático para mejor control */
    height: 580px;        /* alto fijo mayor (ajusta a tu gusto) */
    max-width: 100%;      /* que no se salga del contenedor */
    object-fit: cover;    /* para cubrir el área sin distorsionar */
    flex-shrink: 0;       /* que no reduzca tamaño en flexbox */
  }
  
  /* Estado inicial: texto invisible y desplazado */
  .calidad-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 3s ease-out, transform 3s ease-out;
  }

  /* Estado visible: texto aparece y se mueve a su posición natural */
  .calidad-text.visible {
    opacity: 1;
    transform: translateY(0);
  }


  @media (max-width: 900px) {
    .calidad-container {
      flex-direction: column;
      padding: 30px 12px;
      min-height: unset;
    }
    .calidad-text {
      padding-right: 0;
      text-align: justify;
      margin-bottom: 16px;
      font-size: 1.1rem;

    }
  }
  
  @media (max-width: 900px) {
    .calidad-img {
      width: 90%;
      margin: 0 auto;
    }
  }
  


  /**************************************************************************************************************************/

  





