/* Estilos CSS de la página de trámites */

/* Contenedor principal */

.contenedor-body {
    line-height: 1.6;
    text-align: justify;
}

/* Estilos para subtítulos */

.contenedor-body h2 {
    font-size: 2em;
    color: var(--azul-general);
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

/* Títulos*/

.contenedor-body .titulo {
    margin: 10px 0px;
    font-size: 2.2em;
}

.contenedor-body .titulo-central {
    margin: 0px 0px 15px 0px;
}

/*Listas*/

.contenedor-body ul, .contenedor-body ol {
    margin: 0;
}

.contenedor-body .info ul {
    padding-left: 15px;
}

.contenedor-body li {
   margin-bottom: 5px;
}

/* Estilos para párrafos */

.contenedor-body p {
    font-size: 1.2em;
    text-align: justify;
    margin-bottom: 10px;
}

.contenedor-body img {
    width: 100%;
    opacity: 0.8;
}

/* Galería */

.gallery {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10px, 1fr)); /* Cambiado a 250px para pantallas más pequeñas */
    gap: 20px;
}

.gallery-item {
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.text {
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

/* Información sobre la empresa */

.proceso-partes {
    display: flex;
}

.proceso-img {
    width: 50%;
    float: left;
}

.proceso-texto {
    width: 50%;
    float: right;
}

.contacto p {
    margin-bottom: 0px;
}

/* Ajustes para pantallas medianas */
@media (max-width: 992px) {
    .contenedor-body .titulo, .info-section .titulo-categoria  {
        font-size: 2.0rem;
    }
    .contenedor-body p, .contenedor-body li {
        font-size: 1rem;
    }
    .text {
        font-size: 1.5rem;
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .contenedor-body .titulo, .info-section .titulo-categoria  {
        font-size: 1.5rem;
    }
    .contenedor-body p, .contenedor-body li {
        font-size: 0.8rem;
    }

    .proceso-partes {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        padding: 0px;
    }

    .proceso-img {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }

    .proceso-texto {
        width: 100%;
        height: auto;
    }

    .proceso-img img {
        height: auto;
    }

    .proceso-partes ol, .proceso-partes ul {
        padding-left: 15px;
    }
    .text {
        font-size: 1.2rem;
    }
}

/* Ajustes para pantallas muy pequeñas (móviles) */
@media (max-width: 576px) {
    .gallery-grid {
        gap: 10px;
    }
    .text {
        font-size: 1rem;
    }
}