/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --celeste: #00d4ff;
    --celeste-dark: #0072ff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f8fafc;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --border-radius: 20px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   NAVBAR (Logo Izquierda, Botón Derecha)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    color: var(--celeste-dark);
}

.logo-box span {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-panel {
    background: #f1f5f9;
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    color: #475569 !important;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.btn-panel:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* =========================================
   HERO / BANNER PRINCIPAL
   ========================================= */
.hero-section {
    background: white;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #edf2f7;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* =========================================
   BOTONES
   ========================================= */
.main-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--celeste) 0%, var(--celeste-dark) 100%);
    color: white !important;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 212, 255, 0.3);
}

/* =========================================
   TARJETAS MODERNAS (Index y Perfil)
   ========================================= */
.main-panel, .container-perfil {
    max-width: 750px; /* Limita el ancho para que no se estire */
    margin: 60px auto !important; /* Centrado automático */
    padding: 0 20px;
}

.grid-layout, .perfil-grid {
    display: grid;
    gap: 20px;
}

.card-modern {
    background: white;
    padding: 25px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    text-align: left;
}

.card-modern:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.card-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.card-info p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   ESPECÍFICO PERFIL (Bienvenida)
   ========================================= */
.welcome-box {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-box h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* =========================================
   ANIMACIONES Y EXTRAS
   ========================================= */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.main-footer {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE (Móviles)
   ========================================= */
@media (max-width: 600px) {
    .navbar { padding: 15px 5%; }
    .hero-content h1 { font-size: 2rem; }
    .main-panel, .container-perfil { margin: 30px auto !important; }
    .card-modern { flex-direction: row; padding: 20px; }
    
    /* En móvil, los botones de acción se ponen uno bajo otro */
    .perfil-actions {
        flex-direction: column;
    }
}
