* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Evita que el padding rompa los anchos */
}

:root {
    --color-fondo: #0f172a;      
    --color-tarjeta: #1e293b; /
    --color-texto-principal #f8fafc; 
    --color-texto-secundario: #94a3b8; 
    --color-acento-1: #38bdf8;   
    --color-acento-2: #3486d3; 
    --color-borde: #334155;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-fondo);
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url(/imagen1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-texto-principal);
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-acento-1);
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-acento-2);
    margin-bottom: 15px;
}

p {
    color: var(--color-texto-secundario);
    margin-bottom: 15px;
}

header {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

nav {
    margin: 20px 0;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px); 
    border-radius: 12px;
    border: 1px solid var(--color-borde);
}

section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex; 
    flex-direction: row;
    justify-content: center;
    gap: 20px; 
    flex-wrap: wrap;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    padding: 25px;
    border-radius: 16px;
    background-color: var(--color-tarjeta);
    border: 1px solid var(--color-borde);
    box-shadow: 0 10px 15px -3px rgba(204, 186, 186, 0.979);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(228, 146, 146, 0.4);
}

footer {
    padding: 30px;
    background-color: #557ea8;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--color-borde);
}

button, .boton {
    background-color: transparent;
    border: 2px solid var(--color-acento-1);
    color: var(--color-acento-1);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

button:hover, .boton:hover {
    background-color: var(--color-acento-1);
    color: var(--color-fondo);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.logo-itm{
    width: 150px;
    height: 150px;

}
.logo{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-acento-1);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.fila {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.col50 {
    width: 50%;
}

@media only screen and (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    section {
        flex-direction: column;
        align-items: center;
    }

    article {
        width: 100%;
        max-width: 350px;
    }

    .fila {
        flex-direction: column;
    }

    .col50 {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    section {
        justify-content: center;
    }
}