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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #dadada !important;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header y Logo */
.header {
    padding: 2rem 0;
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo {
    height: 100px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px dashed #1e3a8a;
    color: #1e3a8a;
    font-weight: 500;
}

.logo-placeholder i {
    font-size: 2rem;
}

.logo-placeholder span {
    font-size: 0.9rem;
}

/* Contenido Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.hero-section {
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: black;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Botones de Navegación */
.buttons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
    justify-items: center;
    align-items: stretch;
}

.nav-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    min-height: 180px;
    min-width: 320px;
    max-width: 320px;
    border: 2px solid transparent;
    overflow: hidden;
    z-index: 1;
}

.nav-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 1);
    border-color: #1e3a8a;
    z-index: 2;
}

.nav-button i {
    font-size: 2.5rem;
    color: #1e3a8a;
    transition: color 0.3s, transform 0.3s;
}

.nav-button:hover i {
    color: #3b82f6;
    transform: scale(1.1);
}

.nav-button span {
    text-align: center;
    line-height: 1.4;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Menú flotante (popover) */
.popover-menu {
    position: absolute;
    min-width: 170px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(30,58,138,0.18);
    border-radius: 12px;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 100;
    transition: opacity 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    pointer-events: none;
}
.popover-menu.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.popover-option {
    background: none;
    border: none;
    color: #1e3a8a;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.9rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.popover-option:hover {
    background: #e0e7ff;
    color: #3b82f6;
}

/* Opciones de botón como overlay centrado */
.button-options { display: none !important; }

.download-btn {
    background: #059669;
}
.download-btn:hover {
    background: #10b981;
    box-shadow: 0 4px 16px rgba(16,185,129,0.18);
}

.view-btn {
    background: #1e3a8a;
}
.view-btn:hover {
    background: #3b82f6;
    box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design Mejorado */
@media (max-width: 1024px) {
    .buttons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .nav-button {
        min-width: 320px;
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .buttons-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-button {
        min-width: 320px;
        padding: 1.2rem 0.8rem;
    }
    
    .option-btn {
        min-width: 110px;
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }
    
    .popover-menu {
        min-width: 140px;
        font-size: 0.95rem;
    }
    .popover-option {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        max-height: 60px;
        max-width: 200px;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .hero-section {
        margin-bottom: 2rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .nav-button {
        min-width: 320px;
        padding: 1rem 0.5rem;
    }
    
    .option-btn {
        min-width: 90px;
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}

/* Animaciones adicionales */
.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #c7c7c7;
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1e3a8a;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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