/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar la animación a las secciones */
.custom-section {
    animation: fadeIn 1s ease-in-out;
	animation-delay: 0.3s;
}

/* Estilos para las secciones */
.custom-section {
    width: 80%;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.custom-section h2 {
    color: dimgrey;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 35px;
    position: relative;
    padding-left: 30px;
    padding-bottom: 5px;
}

.custom-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    bottom: 0;
    width: 16px;
    height: 40px;
    background-color: #78536b;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

/* Footer */
/* Estilo principal del pie de página */
.footer-section {
    background-color: #8e9173; /* Tono más oscuro para mejor contraste */
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-logo {
    width: 300px;
    display: block;
    margin: 0 auto;
    margin-left: 30px;
    border-right: 3px solid #b17a45;
    padding-right: 60px;
    transition: transform 0.3s ease-in-out;
}

.footer-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.footer-col {
    flex: 1;
    padding-left: 80px;
    padding-top: 10px;
    color: white;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
}

.footer-col h4::after {
    content: ''; 
    display: block;
    height: 2px;
    width: 25%; 
    background-color: #b17a45;
    position: absolute;
    bottom: -10px; 
    left: 0;
}

.footer-col ul {
    list-style-type: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    font-size: 13px;
    font-weight: bold;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

.footer-col:last-child {
    margin-right: 50px;
}

/* Pie de página inferior */
.footer-section2 {
    background-color: #adb5bd; /* Mantiene tu tono solicitado */
    color: white;
    margin: 5px 0;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border-top: none;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.footer-section2 p {
    margin: 0;
    color: white;
}

/* Estilo de los recuadros de trámites */
.tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tramite-card {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tramite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Títulos de los trámites */
.tramite-card h4 {
    font-size: 18px;
    font-weight: bold;
    color: #78536b;
    margin-bottom: 15px;
}

/* Texto de los trámites */
.tramite-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
    text-align: justify; /* Justificar el texto */
}

/* Enlace del trámite */
.tramite-card a {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #78536b;
    text-decoration: none;
    margin-top: 10px;
    padding: 8px 12px;
    border: 2px solid #78536b;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.tramite-card a:hover {
    background-color: #78536b;
    color: #ffffff;
}

/* Media Queries */

/* Media Queries para pantallas medianas (tabletas) */
@media (max-width: 1024px) {
    .container-alineado {
        flex-direction: column;
    }
    .custom-section {
        padding: 20px;
    }
}

/* Media Queries para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Ajuste a una columna para pantallas más pequeñas */
    }
	    .menu-lateral {
        width: 100%;
        margin-bottom: 20px;
    }

    .contenido-tramites {
        width: 100%;
    }

    .tramites-grid {
        grid-template-columns: 1fr;
    }
}

/* Pantallas extra pequeñas */
@media (max-width: 576px) {
    .footer-col {
        padding: 5px;
    }

    .custom-section {
        width: 90%; /* Asegurar que todas las secciones tengan el mismo ancho */
    }
}

/* Pantallas grandes */
@media (min-width: 1200px) {
    .container-alineado {
        flex-direction: row;
    }

}
/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Mosaico Responsivo */
.menu-mosaico {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15; /* Elimina el espacio entre las tarjetas */
    margin: 30px auto;
    padding: 10px;
    max-width: 1000px;
    justify-content: center;
}

/* Tonalidades elegantes para las tarjetas */
/* Fila 1 - Morados */
.area-tarjeta:nth-child(5n+1) {
    background-color: #4a2c4f;
}
.area-tarjeta:nth-child(5n+2) {
    background-color: #5e3d5f;
}
.area-tarjeta:nth-child(5n+3) {
    background-color: #6f4f6d;
}
.area-tarjeta:nth-child(5n+4) {
    background-color: #72546f;
}
.area-tarjeta:nth-child(5n+5) {
    background-color: #78536b;
}

/* Fila 2 - Grises */
.area-tarjeta:nth-child(n+6):nth-child(-n+10) {
    background-color: #444444;
}
.area-tarjeta:nth-child(n+7):nth-child(-n+11) {
    background-color: #5c5c5c;
}
.area-tarjeta:nth-child(n+8):nth-child(-n+12) {
    background-color: #737373;
}
.area-tarjeta:nth-child(n+9):nth-child(-n+13) {
    background-color: #8a8a8a;
}
.area-tarjeta:nth-child(n+10):nth-child(-n+14) {
    background-color: #a0a0a0;
}

/* Fila 3 - Dorados */
.area-tarjeta:nth-child(n+11):nth-child(-n+15) {
    background-color: #7a542e;
}
.area-tarjeta:nth-child(n+12):nth-child(-n+16) {
    background-color: #8b6036;
}
.area-tarjeta:nth-child(n+13):nth-child(-n+17) {
    background-color: #9d6d3f;
}
.area-tarjeta:nth-child(n+14):nth-child(-n+18) {
    background-color: #aa7844;
}
.area-tarjeta:nth-child(n+15):nth-child(-n+19) {
    background-color: #b17a45;
}

/* Fila 4 - Verdes */
.area-tarjeta:nth-child(n+16):nth-child(-n+20) {
    background-color: #2d4a44;
}
.area-tarjeta:nth-child(n+17):nth-child(-n+21) {
    background-color: #3f6559;
}
.area-tarjeta:nth-child(n+18):nth-child(-n+22) {
    background-color: #548276;
}
.area-tarjeta:nth-child(n+19):nth-child(-n+23) {
    background-color: #5f8f82;
}
.area-tarjeta:nth-child(n+20):nth-child(-n+24) {
    background-color: #6a9c8c;
}

/* Fila 5 - Azules */
.area-tarjeta:nth-child(n+21):nth-child(-n+25) {
    background-color: #1f3f5b;
}
.area-tarjeta:nth-child(n+22):nth-child(-n+26) {
    background-color: #2c5472;
}
.area-tarjeta:nth-child(n+23):nth-child(-n+27) {
    background-color: #456f91;
}
.area-tarjeta:nth-child(n+24):nth-child(-n+28) {
    background-color: #5c84a6;
}
.area-tarjeta:nth-child(n+25):nth-child(-n+29) {
    background-color: #6c90b9;
}

.area-tarjeta {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.area-tarjeta:hover {
    background-color: #b17a45;
    transform: scale(1.05);
	color: white; /* Mantiene el texto blanco */
}

.area-tarjeta i {
    font-size: 38px;
    margin-bottom: 10px;
}

.area-tarjeta span {
    font-size: 14px;
    padding: 0 8px;
}

.area-tarjeta:hover i,
.area-tarjeta:hover span {
    color: white; /* Mantiene el ícono y el texto en blanco */
}
/* Media Queries para Responsividad */

/* Pantallas grandes: 5 tarjetas por fila */
@media (min-width: 1200px) {
    .menu-mosaico {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Pantallas medianas: 3 tarjetas por fila */
@media (max-width: 1199px) and (min-width: 768px) {
    .menu-mosaico {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pantallas pequeñas: 2 tarjetas por fila */
@media (max-width: 767px) {
    .menu-mosaico {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pantallas extra pequeñas: 1 tarjeta por fila */
@media (max-width: 480px) {
    .menu-mosaico {
        grid-template-columns: 1fr;
    }
}

.destacados-section {
    width: 80%;
    margin: 0 auto 50px;
    background-color: white;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.destacados-section h2 {
    font-size: 22px;
    color: #78536b;
    font-weight: bold;
    margin-bottom: 30px;
    border-left: 10px solid #b17a45;
    padding-left: 20px;
}

.destacado-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #b17a45;
    border-radius: 6px;
    background-color: #f9f9f9;
    gap: 20px;
}

.destacado-item img {
    width: 180px;
    border-radius: 6px;
    object-fit: cover;
}

.destacado-info h3 {
    color: #78536b;
    font-size: 18px;
    margin-bottom: 10px;
}

.destacado-info p {
    color: #555;
    font-size: 14px;
    margin: 4px 0;
    line-height: 1.4;
    text-align: justify;
}

.destacado-detalle p,
.destacado-detalle ul {
    margin: 4px 0;
    font-size: 13.5px;
}

.destacado-detalle ul {
    padding-left: 18px;
}

.destacado-detalle li {
    margin-bottom: 4px;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .destacado-item {
        flex-direction: column;
        text-align: center;
    }

    .destacado-item img {
        margin-bottom: 15px;
        width: 100%;
    }
}