:root {
    --bg-color: #ffffff;
    --bg-secondary: #f9f7f7;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --uide-maroon: #862633;
    --uide-gold: #FFC627;
    --uide-gold-muted: rgba(255, 198, 39, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 2px solid var(--uide-gold);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--uide-maroon);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #fff 0%, #f4f0f0 100%);
    padding: 5%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    color: var(--uide-maroon);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

/* Vision & PS Grid */
.section {
    padding: 8rem 5%;
}

.section-title-left {
    font-size: 2.5rem;
    color: var(--uide-maroon);
    border-left: 5px solid var(--uide-gold);
    padding-left: 20px;
    font-family: var(--font-heading);
}

.lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--uide-maroon);
    margin: 2rem 0 1rem;
}

.excellence-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.ps-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.ps-item h4 {
    color: var(--uide-maroon);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abstract-image-placeholder {
    width: 100%;
    height: 450px;
    background: #fdfbfb;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.stats-overlay {
    display: flex;
    gap: 2rem;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--uide-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Projects & Dashboard */
.simulation-section {
    background: var(--bg-secondary);
}

.live-badge {
    background: var(--uide-maroon);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
}

.simulation-timeline {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    overflow-x: auto;
}

.timeline-step {
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s;
    min-width: 140px;
}

.timeline-step.active {
    opacity: 1;
    color: var(--uide-maroon);
}

.timeline-step.active::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--uide-gold);
    margin-top: 15px;
}

.timeline-step .day {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.timeline-step .date {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.sim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    transition: 0.3s;
}

.premium-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--uide-gold);
}

.premium-card.featured {
    border-left: 6px solid var(--uide-gold);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--uide-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.premium-card h3 {
    font-size: 1.6rem;
    color: var(--uide-maroon);
    margin-bottom: 1rem;
}

.premium-card p {
    flex-grow: 1;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Mini Cards for "Otros" */
.mini-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}

.mini-card:hover {
    border-color: var(--uide-gold);
    transform: scale(1.02);
}

.mini-card .dot {
    width: 8px;
    height: 8px;
    background: var(--uide-gold);
    border-radius: 50%;
}

/* Mentors list */
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.mentor-card {
    text-align: center;
}

.mentor-avatar {
    width: 100px;
    height: 100px;
    background: var(--uide-maroon);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    border: 4px solid var(--uide-gold);
}

.mentor-card h4 {
    font-size: 1.1rem;
    color: var(--uide-maroon);
    margin-bottom: 5px;
}

.mentor-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--uide-maroon);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(134, 38, 51, 0.2);
}

.btn-secondary {
    background: #fff;
    color: var(--uide-maroon);
    border: 1px solid var(--uide-maroon);
}

.btn-secondary:hover {
    background: var(--uide-maroon);
    color: #fff;
}

.btn-primary.small,
.btn-secondary.small {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 12px;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-overlay.visible .modal-card {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--uide-maroon);
}

.members-list {
    list-style: none;
    margin-top: 2rem;
}

.members-list li {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .excellence-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .problem-solution-grid {
        grid-template-columns: 1fr;
    }

    .section-title-left {
        border-left: none;
        padding-left: 0;
        border-top: 5px solid var(--uide-gold);
        padding-top: 15px;
    }
}
/* Footer Overhaul */
footer {
    background: var(--uide-maroon);
    color: white;
    padding: 6rem 5% 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-grid h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--uide-gold);
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-social a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    opacity: 1;
    color: var(--uide-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-links,
    .footer-social {
        align-items: center;
    }
}

/* Schedule & Header Flex */
.live-header .header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.modal-card.wide {
    max-width: 900px;
    width: 95%;
}

.schedule-table-wrap {
    margin-top: 2rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.schedule-table th {
    background: var(--bg-secondary);
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--uide-gold);
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.day-cell {
    font-weight: 800;
    color: var(--uide-maroon);
    background: var(--bg-secondary);
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.room-badge {
    background: var(--uide-gold-muted);
    color: var(--uide-maroon);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.subject-cell {
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .live-header .header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}
