/* ============================================
   Estilos para index.html
   Página de Inicio - Sistema de Registro
   ============================================ */

/* Variables CSS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #17a2b8;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --bg-light: #f7fafc;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Layout Principal
   ============================================ */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-bottom: 60px; /* Espacio para el footer fijo */
}

/* Contenedor principal */
.index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container-fluid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   Sección de Inicio
   ============================================ */

.inicio {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ============================================
   Portada
   ============================================ */

.portada {
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden;
    position: relative;
}

.portada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.portada:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

/* ============================================
   Título
   ============================================ */

.titulo {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2rem;
    line-height: 1.4;
    padding: 0 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.titulo::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ============================================
   Imagen
   ============================================ */

.disc {
    border-radius: var(--border-radius);
    width: 100%;
    height: auto;
    display: block;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeIn 1s ease-out 0.3s both;
}

.disc:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Animaciones
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    .index-container {
        padding: 1.5rem 1rem;
    }
    
    .portada {
        padding: 1.5rem;
    }
    
    .titulo {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .inicio {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .portada {
        padding: 1.25rem;
        margin: 0 10px;
    }
    
    .titulo {
        font-size: 1.5rem;
        padding: 0 15px;
        margin-bottom: 1.5rem;
    }
    
    .titulo::after {
        width: 60px;
        margin: 0.75rem auto 0;
    }
    
    .disc {
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .portada {
        padding: 1rem;
        margin: 0 5px;
    }
    
    .titulo {
        font-size: 1.25rem;
        padding: 0 10px;
        margin-bottom: 1rem;
    }
    
    .titulo::after {
        width: 50px;
        height: 3px;
    }
}


/* ============================================
   Mejoras de Accesibilidad
   ============================================ */

.portada:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   Efectos Adicionales
   ============================================ */

.portada {
    position: relative;
}

.portada::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    pointer-events: none;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portada:hover::after {
    opacity: 1;
}

