:root {
    --bg-color: #F0F8FF; /* Alice Blue como MCE */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-blue: #2563eb;
    --accent-teal: #2aa5ae; /* El color de MCE */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(42, 165, 174, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.08) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Animations */
.bg-shape { display: none; } /* Quitamos las formas flotantes de rayos x */
.bg-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(42, 165, 174, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 165, 174, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Container */
.portal-container {
    width: 100%; max-width: 1000px; padding: 2rem; z-index: 1; display: flex; flex-direction: column; align-items: center;
}

/* Header */
.portal-header { text-align: center; margin-bottom: 3rem; animation: fadeDown 0.8s ease-out; }
.logo-wrapper {
    display: inline-flex; justify-content: center; align-items: center;
    width: 100px; height: 100px;
    background: #ffffff;
    border: 2px solid rgba(42, 165, 174, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem; 
    box-shadow: 0 10px 25px rgba(42, 165, 174, 0.15);
    padding: 15px;
}
.hospital-logo {
    width: 100%; height: 100%; object-fit: contain;
}
.badge {
    display: inline-block; padding: 0.35rem 1.2rem; background: rgba(42, 165, 174, 0.1);
    border: 1px solid rgba(42, 165, 174, 0.2); border-radius: 999px;
    color: var(--accent-teal); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
    margin-bottom: 1rem; text-transform: uppercase;
}
.portal-header h1 { 
    font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.5rem; 
    color: var(--text-primary);
}
.portal-header h2 { font-size: 1.15rem; font-weight: 400; color: var(--text-secondary); }

/* Grid */
.modules-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; width: 100%; margin-bottom: 3rem;
}

/* White Clean Card */
.glass-card {
    position: relative; background: var(--card-bg); 
    border: 1px solid var(--card-border); border-radius: 20px; padding: 2rem;
    display: flex; align-items: center; gap: 1.25rem; text-decoration: none; color: inherit;
    transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.glass-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(42, 165, 174, 0.4); 
    box-shadow: 0 20px 25px -5px rgba(42, 165, 174, 0.1), 0 10px 10px -5px rgba(42, 165, 174, 0.04); 
}

.icon-box {
    position: relative; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 16px; flex-shrink: 0;
    transition: transform 0.3s;
}
.icon-box.green { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.icon-box.blue { background: #f0f9ff; color: var(--accent-teal); border: 1px solid #e0f2fe; }
.glass-card:hover .icon-box { transform: scale(1.05); }

.card-content { flex: 1; }
.card-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text-primary); }
.card-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }

.card-arrow { 
    width: 36px; height: 36px; display: flex; justify-content: center; align-items: center; 
    border-radius: 50%; background: #f1f5f9; color: var(--text-secondary); 
    transition: all 0.3s; transform: translateX(-10px); opacity: 0; 
}
.glass-card:hover .card-arrow { transform: translateX(0); opacity: 1; background: var(--accent-teal); color: white; }

.portal-footer { text-align: center; color: var(--text-secondary); font-size: 0.85rem; padding-top: 2rem; border-top: 1px solid var(--card-border); width: 100%; max-width: 600px;}

/* Animations */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) { 
    .portal-header h1 { font-size: 1.75rem; } 
    .modules-grid { grid-template-columns: 1fr; } 
    .glass-card { padding: 1.5rem; }
    .card-arrow { display: none; }
}
