/* ==========================================================================
Martín Goerling - Senador Nacional por Misiones
Archivo CSS mejorado con diseño responsivo y moderno
========================================================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración del cuerpo */
body {
    font-family: 'Montserrat', sans-serif;
    /* CORRECCIÓN AQUÍ */
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('images/bkg-martingoerling.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenido principal */
.content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    animation: fadeInUp 1s ease-out;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección del nombre */
.name-section {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

/* Título principal */
.name-section h1 {
    color: #fff;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Subtítulo */
.name-section h2 {
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Ornamento decorativo */
.ornament {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7));
    margin-bottom: 40px;
    border-radius: 2px;
}

/* Redes sociales */
.social {
    margin-top: 40px;
}

.social ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social li {
    display: inline-block;
}

.social a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.social a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social a:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
ACCESIBILIDAD
========================================================================== */

/* Enlace de salto para accesibilidad */
.accessibility-skip {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.accessibility-skip:focus {
    top: 6px;
}

/* Navegación por teclado */
.keyboard-nav *:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
PANTALLA DE CARGA
========================================================================== */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
RESPONSIVE DESIGN
========================================================================== */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    body {
        /* CORRECCIÓN AQUÍ */
        background-image: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5)), url('images/bkg-martingoerling-m.png');
    }

    .container {
        padding: 0 15px;
    }

    .content {
        text-align: center;
        padding: 40px 0;
    }

    .name-section {
        max-width: 100%;
    }

    .name-section h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .name-section h2 {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .ornament {
        margin: 20px auto 30px auto;
    }

    .social ul {
        justify-content: center;
    }
}

/* Móviles */
@media (max-width: 480px) {
    body {
        /* CORRECCIÓN AQUÍ */
        background-image: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5)), url('images/bkg-martingoerling-xs.png');
    }

    .name-section h1 {
        font-size: clamp(2rem, 12vw, 3rem);
        letter-spacing: -1px;
    }

    .name-section h2 {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
    }

    .social a {
        width: 45px;
        height: 45px;
    }

    .social img {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
ANIMACIONES ADICIONALES
========================================================================== */

/* Efecto flotante para escritorio */
@media (min-width: 769px) {
    .name-section {
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
}

/* Animaciones para focus */
.social a:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ==========================================================================
MEJORAS PARA PERFORMANCE
========================================================================== */

/* Optimización de renderizado */
.social a,
.ornament {
    will-change: transform;
}

/* Preload de imágenes críticas */
.social img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ==========================================================================
DARK MODE SUPPORT (opcional)
========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Ya está optimizado para modo oscuro */
}

/* ==========================================================================
PRINT STYLES (opcional)
========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .name-section h1,
    .name-section h2 {
        color: black;
        text-shadow: none;
    }

    .social {
        display: none;
    }

    .loading {
        display: none;
    }
}