/* --- VARIABLES Y CONFIGURACIÓN GENERAL --- */
:root {
    --color-principal: #2c3e50;
    --color-secundario: #3498db;
    --color-fondo: #f8f9fa;
    --color-texto: #333333;
    --color-blanco: #ffffff;
    --color-borde: #e2e8f0;
    --fuente-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-base);
    line-height: 1.6;
}

/* --- CABECERA Y MENÚ INTEGRADO --- */
.main-header {
    background-color: var(--color-principal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0 auto;
    max-width: 1200px;
}

.logo-item {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.logo-item img {
    border: 2px solid var(--color-blanco);
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.1);
}

.nav-list a {
    color: var(--color-blanco);
    display: block;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-secundario);
}

/* Indicador de página activa (Contacto) */
.nav-list a.active {
    border-bottom: 4px solid var(--color-secundario);
    color: var(--color-secundario);
}

/* --- CONTENIDO PRINCIPAL --- */
.content-container {
    margin: 3rem auto;
    max-width: 800px;
    padding: 0 1.5rem;
}

.section-title {
    color: var(--color-principal);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    background-color: var(--color-secundario);
    bottom: 0;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    width: 60px;
}

/* --- TARJETAS DE CONTACTO (GRID) --- */
.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-card {
    background-color: var(--color-blanco);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Tarjeta del Correo */
.icon-label {
    color: var(--color-principal);
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.email-link {
    color: var(--color-secundario);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--color-principal);
    text-decoration: underline;
}

/* Tarjeta de Twitter / Redes */
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-principal);
    font-size: 1.1rem;
    font-weight: 600;
}

.social-link img {
    height: auto;
    max-width: 50px;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

/* --- ADAPTACIÓN A MÓVILES (MENÚ LATERAL) --- */
@media (max-width: 768px) {
    body {
        padding-left: 80px; /* Deja espacio para el menú lateral */
    }

    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 80px;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    }

    .nav-list {
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem 0;
    }

    .logo-item {
        margin-bottom: 1rem;
        padding: 0;
    }

    .logo-item img {
        width: 45px;
        height: 45px;
    }

    .nav-list a {
        padding: 1rem 0.2rem;
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list a.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 4px solid var(--color-secundario); /* Resalte en la barra lateral */
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* Contenido responsive */
    .content-container {
        margin: 1.5rem auto;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Una tarjeta por fila en móviles */
        gap: 1.2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}
