/* *** ESTILO GENERAL *** */
    * {
        font-family: 'Lato', sans-serif;
        color: #373737;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        background-color: #f5f5f5;
        margin: 0;
        padding: 0;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    ul {
        list-style-type: square;
        text-align: justify;
        margin: 0 10px;
        max-width: 800px;
    }
    
    ol {
        text-align: justify;
        margin: 0 10px;
        max-width: 800px;
    }
    
    li {
        font-size: 1rem;
        margin: 10px;
    }

    a {
        color: #2A7ACE;
        text-decoration: none;
    }
    
    a:hover {
        text-decoration: solid;
    }


/* *** ESTILO DEL HEADER *** */
header {
    background-color:  rgba(255, 255, 255, 0.9);
    position: fixed;
    margin: auto;
    top: -100px;
    left: 0;
    width: 100%;
    padding: 5px 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); */
    transition: background-color 0.3s ease;
    transition: top 0.5s ease-in-out;
}

header a {
    color: #353535
}

.navbar {
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
}

.logo {
    height: 50px;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin: 0;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links li a {
    text-decoration: none;
    position: relative;
}

.nav-links li a:hover::after {
    content: '';                    /* Pseudo-elemento vacío para la línea */
    position: absolute;
    width: 100%;
    height: 2px;                    /* Grosor de la línea */
    background-color: #373737;    /* Color de la línea */
    left: 0;
    bottom: -3px;                   /* Posición de la línea debajo del texto */
    transition: width 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #373737;
    left: 0;
    bottom: -3px;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.active::after {
    width: 100%;
    background-color: #373737;
}

.social-icons {
    display: flex;
    flex-basis: 20%;
    justify-content: flex-end;
    align-items: center;
}

.social-icons a img {
    width: 25px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

/* **** ESTILO DE SECCIONES **** */
.section {
    position: relative;
    padding: 100px 20px;
    text-align: jus;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 1.2rem;
}

/* Capa transparente General */
.overlay {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 50px;
    margin: 0 auto;
    max-width: 800px;
}

.inicio {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(55, 55, 55, 1);
    /* background-image: url('img/inicio-bg.jpg');   */
    /* background-size: cover; */
    /* background-position: center; */
    /* padding: 100px 20px; */
    /* color: white; */
    text-align: center;
    position: relative;
}

.inicio img {
    max-width: 80%; /* Ajustar el logo para que sea responsive */
    width: 480px;
    height: auto;
}

.inicio p {
    color: white;
}

.inicio .overlay {
    background-color: rgba(238, 171, 171, 0.05);
    /* padding: 50px;
    width: 80%;
    margin: 0 auto; */
}

.quienes-somos {
    background-image: url('/img/fondo-quienes-somos.jpg');
    /* background-color: rgba(255, 255, 255, 0.9); */
    text-align: justify;
}

.accidentes-de-transito {
    background-image: url('/img/fondo-accidentes-de-transito.jpg');
    /* background-color: rgba(123, 59, 59, 0.9); */
    text-align: justify;
}

.accidentes-de-trabajo {
    background-image: url('/img/fondo-accidentes-laborales.jpg');
    /* background-color: rgba(59, 123, 65, 0.9); */
    text-align: justify;
}

.enfermedad-profesional {
    background-image: url('/img/fondo-enfermedad-profesional.jpg');
    /* background-color: rgba(59, 60, 123, 0.9); */
    text-align: justify;
}

.despidos {
    background-image: url('/img/fondo-despidos.jpg');
    /* background-color: rgba(255, 0, 0, 0.9); */
    text-align: justify;
}

.contacto {
    /* background-image: url('/img/fondo-contacto.jpg'); */
    background-color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

.quienes-somos::before,
.accidentes-de-transito::before,
.accidentes-de-trabajo::before,
.enfermedad-profesional::before,
.despidos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Película de color negro semitransparente */
    z-index: 1; /* Mantener la película debajo del contenido */
}

.quienes-somos .overlay,
.accidentes-de-transito .overlay,
.accidentes-de-trabajo .overlay,
.enfermedad-profesional .overlay,
.despidos .overlay {
    position: relative;
    z-index: 2; /* Asegurarse de que el contenido esté encima de la película */
}

.map-container {
    width: 100%;
    max-width: 100%;
    height: 400px;
    margin: 20px 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* **** ESTILO DE ACORDEON **** */
.accordion {
    color: #373737;
  }
  
  .accordion-item {
    margin-bottom: 5px;
  }
  
  .accordion-button {
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  
  .toggle_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20px; /* Tamaño del icono */
    height: 20px;
    margin-right: 10px;
  }
  
  .vert_icon, .hor_icon {
    position: absolute;
    background-color: #373737;
  }

  .vert_icon {
    height: 15px; /* Alto del signo + */
    width: 1.5px; /* Ancho de la línea vertical */
  }
  
  .hor_icon {
    height: 1.5px;  /* Alto del signo + (horizontal) */
    width: 15px;    /* Largo de la línea horizontal */
  }
  
  .accordion-content {
    padding: 5px 15px 5px 40px;
    display: none;
    background-color: rgba(255,255,255,.75);
  }
  
  .accordion-content p,
  .accordion-content li,
  .accordion-content ul,
  .accordion-content ol {
    font-size: 0.8rem;
    margin: 5px 20px 10px 5px;
  }

  /* Mostrar el contenido y cambiar los íconos cuando está activo */
  .accordion-button.active .vert_icon {
    display: none;
  }
  
  .accordion-button.active + .accordion-content {
    display: block;
  }
  
  .accordion-button.active {
    background-color: rgba(255,255,255,.85);
  }
  
/* **** ESTILO DEL FOOTER  **** */
.footer {
    background-color: rgba(55, 55, 55, .8);
    padding: 30px 0px 0px 0px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0px 20px;
}

.footer-block {
    flex-basis: 22%;        /* Ajusta el ancho de cada bloque */
    margin-bottom: 20px;
}

.footer-block h3 {
    /* font-size: 1.2rem; */
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: left;
}

.footer-block ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-block ul li {
    color: white;
    /* font-size: 1rem; */
    align-items: center;
}

.footer-block ul li a {
    color: white;
    text-decoration: none;
    /* font-size: 1rem; */
    display: flex;
    align-items: center;
}

.footer-block ul li a img {
    width: 20px;
    margin-right: 10px;
    align-items: left;
}

.footer-block .social-icons {
    justify-content: flex-start; 
}

.footer-block .social-icons a {
    margin-right: 10px;
    
}

.footer-block .social-icons img {
    width: 40px;
    transition: transform 0.3s ease;
}

.footer-block .social-icons img:hover {
    transform: scale(1.2);
}

/* FOOTER BOTTOM: Derechos reservados */
.footer-bottom {
    margin-top: 2px;
}

/* SEPARADOR */
.footer-bottom hr {
    border: 0;
    border-top: .8px solid white;
    margin: 10px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: white;
    margin: 0;
    padding: 10px;
    text-align: center;
}

/* **** ESTILO DEL MODAL **** */

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content form label {
    display: block;
    margin-top: 10px;
}

.modal-content h2 {
    margin: 0px 0px;
    font-size: 1.4rem;
}

.modal-content form input {
    width: 100%;
    padding: 8px;
}

.modal-content form button {
    width: 100%;
    padding: 10px 5px;
    background-color: #25d366;
    color: white;
    border: none;
    cursor: pointer;
}

.modal-content form button:hover {
    background-color: #128c7e;
}

.form-flex {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.form-flex div {
    flex: 1;
}

.form-flex label {
    display: block;
    margin-bottom: 5px;
}

.form-flex input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    /* border-radius: 4px; */
}

/* **** ESTILO BOTÓN VOLVER A INICIO **** */
    .scroll-to-top {
        position: fixed;
        bottom: 20px;                                   /* Espaciado desde la parte inferior */
        right: 20px;                                    /* Espaciado desde la parte derecha */
        background-color: rgba(55, 55, 55, .3);       /* Color de fondo del botón */
        border-radius: 50%;                             /* Convertir el botón en círculo */
        width: 50px;                                    /* Tamaño del botón */
        height: 50px;
        display: none;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra del botón */
        z-index: 1000;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    .scroll-to-top img {
        width: 24px;
        height: 24px;
    }

    .scroll-to-top:hover {
        background-color: #1e2957;
        transform: scale(1.1);
    }


/* **** ESTILOS PANTALLAS < 920px **** */
@media (max-width: 920px) {
    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.2rem; /* Ajusta según sea necesario */
    }

    h3 {
        font-size: 1rem;
    }

    p, 
    ul, 
    ol, 
    li {
        font-size: 0.95rem;
        margin: 5px 0px;
    }

    .overlay {
        padding: 20px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        text-align: left;
        padding: 10px;
        box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        font-size: 1rem;
        padding: 5px 0;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    /* Menú hamburguesa */
    .menu-toggle {
        display: none;
        flex-direction: column;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: #373737;
        margin: 5px 0;
        transition: 0.4s;
        align-items: left;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar .social-icons a img {
        display: none;
    }
    
    .scroll-to-top {
        display: none;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: left;
    }

    .footer-block {
        flex-basis: 100%;
        text-align: left;
    }
}