html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: rgba(229, 180, 226, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgb(157, 136, 176);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: black;
}
body {
    background-image: url(fondomorado.png);
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: rgba(229, 180, 226, 0.911);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
    color: black;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

h2 {
    font-weight: 300;
    font-size: 24px;
    color: rgb(7, 7, 7);
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(157, 136, 176, 0.8);
}

.info h1 { margin: 0; font-size: 28px; }
.info h2 { margin: 2px 0; font-size: 16px; }

/* --- SECCIÓN PRINCIPAL Y TARJETAS --- */
section.contenedor-casillas {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: rgb(157, 136, 176);
    padding: 30px;
    border-radius: 10px;
}

article {
    margin: 10px;
    padding: 20px;
    background-color: rgb(228, 181, 215);
    width: 250px;
    height: 350px;
    border-style: solid;
    border-color: black;
    border-width: 3px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5); 
}

.consulta {
    background-color: black;
    color: white;
}

.consulta h2 {
    color: white;
    text-shadow: 0 0 8px rgba(228, 181, 215, 0.6);
}

.consulta li {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

article ul li a {
    text-decoration: none;
    color: inherit; 
    font-weight: bold;
    transition: color 0.3s ease;
}

article ul li a:hover {
    color: #ffb6c1; 
}

.boton-enlace {
    background-color: rgb(157, 136, 176);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.boton-enlace:hover {
    background-color: black;
    color: rgb(228, 181, 215);
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(229, 180, 226, 0.911);
    padding: 20px 40px;
    border-radius: 10px;
    margin-top: 20px;
}

.footer-info h3, .footer-info p {
    margin: 5px 0;
    color: black;
    font-weight: bold;
}

.logo-itm {
    width: 120px;
    height: auto;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    article {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@keyframes entrarSuave {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

section.contenedor-casillas article {
    animation: entrarSuave 0.8s ease forwards;
}