/* --- Variables & Theme Setup --- */
* {
    box-sizing: border-box;
}

:root {
    --color-dominant: #56307c;

    --color-secondary: #009ADA;
    --color-tonic-yellow: #F7BE09;
    --color-tertiary: #004582;

    --brand-primary: var(--color-secondary);
    --brand-light: #f3f9ff;
    --brand-focus: var(--color-secondary);

    --academic-dark: var(--color-dominant);
    --academic-gold: var(--color-tonic-yellow);

    --font-sans: 'Alan Sans', 'Inter', sans-serif;
    --font-serif: 'Libre Baskerville', serif;

    --bs-body-font-family: var(--font-sans);
    --bs-body-font-weight: 400;
    --bs-body-bg: #fdfbff;

    --bs-body-color: #2d2433;

    --bs-primary: var(--brand-primary);
    --bs-secondary: #64748b;
}

/* --- Global Typography --- */
body {
    font-weight: 400;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--academic-dark);
}

.font-serif {
    font-family: var(--font-serif);
}

.text-academic-gold {
    color: var(--academic-gold) !important;
}

.text-academic-dark {
    color: var(--academic-dark) !important;
}

/* Contrast improvements for readability */
.text-muted {
    color: #475569 !important;
}

.text-secondary {
    color: #334155 !important;
}

#nosotros .text-muted,
#nosotros .text-secondary {
    color: #334155 !important;
}

/* Quote and Section Styles */
.fw-semibold-custom {
    font-weight: 600 !important;
}

/* Fix checkmark alignment */
.bi-check-circle-fill,
.bi-check-lg {
    align-self: flex-start !important;
    margin-top: 0.12rem !important;
    line-height: 1 !important;
}

.bg-academic-dark {
    background-color: var(--academic-dark) !important;
}

.bg-academic-gold {
    background-color: var(--academic-gold) !important;
}

/* --- Utilities --- */

/* --- Components --- */

/* Buttons */
.btn-academic {
    background-color: var(--color-secondary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-academic:hover {
    background-color: var(--color-tertiary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline-academic {
    background-color: white;
    color: var(--color-tertiary);
    border: 2px solid var(--color-tertiary);
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-academic:hover {
    background-color: var(--color-tertiary);
    color: white;
    border-color: var(--color-tertiary);
}

.btn-tonic {
    background-color: var(--color-tonic-yellow);
    color: #1a0124;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-tonic:hover {
    background-color: #e5af08;
    color: #1a0124;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(86, 48, 124, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.navbar .navbar-brand {
    color: white !important;
}

.nav-link {
    font-weight: 600;
    color: white !important;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--color-tonic-yellow) !important;
    opacity: 1;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-tonic-yellow) !important;
}

.navbar.scrolled .navbar-brand {
    color: white !important;
}

.navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-dominant);
    color: white;
}

.hero-image-container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 650px;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: none !important;
}

.hero-image-card:hover {
    transform: none !important;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.4) !important;
}

.hero-image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero-image-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(86, 48, 124, 0.2) 0%, transparent 40%, rgba(86, 48, 124, 0.4) 100%);
    pointer-events: none;
}

.hero-section h1 {
    color: white !important;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-badge-pill {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-stat-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 154, 218, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(247, 190, 9, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(86, 48, 124, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(0, 154, 218, 0.1) 0px, transparent 50%);
    filter: blur(60px);
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 154, 218, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.bg-soft-gradient {
    background: linear-gradient(135deg, #fdfbff 0%, #f3f0ff 100%);
}


/* Responsive adjustments for hero image */
@media (min-width: 1400px) {
    .hero-image-card {
        max-width: 750px;
    }
}

.lang-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    margin: 0 auto 3rem auto;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.lang-tile {
    position: relative;
    flex: 1 1 250px;
    min-height: 250px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.lang-tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s ease;
    z-index: 0;
}

.lang-tile:hover .lang-tile-bg,
.lang-tile.active .lang-tile-bg {
    opacity: 1;
    transform: scale(1);
}

.lang-tile-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

.lang-tile-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.lang-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.lang-tile:hover::after,
.lang-tile.active::after {
    opacity: 1;
}

.lang-tile:nth-child(6n+1) {
    background-color: #56307c;
}

.lang-tile:nth-child(6n+2) {
    background-color: #009ADA;
}

.lang-tile:nth-child(6n+3) {
    background-color: #F7BE09;
}

.lang-tile:nth-child(6n+4) {
    background-color: #004582;
}

.lang-tile:nth-child(6n+5) {
    background-color: #6420AA;
}

.lang-tile:nth-child(6n+6) {
    background-color: #0077B6;
}

.lang-tile.active {
    z-index: 10;
    box-shadow: inset 0 0 0 4px var(--color-tonic-yellow);
    transform: none;
}

.lang-tile:hover {
    z-index: 5;
}

.category-pill.disabled,
.modality-pill.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
    color: #94a3b8;
}

.category-pill.disabled:hover,
.modality-pill.disabled:hover {
    background: transparent;
    color: #94a3b8;
}


.schedule-header-section {
    width: 100%;
}

.schedule-header-section h2 {
    line-height: 1.2;
}

.schedule-filters-wrapper {
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .schedule-header-section {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .schedule-header-section h2 {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .schedule-header-section h2 .text-muted {
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }

    .schedule-filters-wrapper {
        align-items: flex-start !important;
        width: 100%;
    }
}

.schedule-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.schedule-list-scroll {
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.schedule-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.schedule-list-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.schedule-list-scroll::-webkit-scrollbar-thumb {
    background: var(--color-dominant);
    border-radius: 4px;
}

.schedule-list-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-tertiary);
}

.category-filter-pills,
.modality-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    background: #ffffff;
    padding: 0.25rem;
    border-radius: 50rem;
    width: fit-content;
}

.category-pill,
.modality-pill {
    padding: 0.45rem 1.25rem;
    border-radius: 50rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover,
.modality-pill:hover {
    color: var(--color-dominant);
    background: #f8fafc;
}

.category-pill.active {
    background: var(--color-dominant);
    color: white;
    box-shadow: 0 4px 12px rgba(86, 48, 124, 0.2);
}

.modality-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.modality-pill.active {
    background: var(--color-tonic-yellow);
    color: var(--color-dominant);
    box-shadow: 0 4px 12px rgba(247, 190, 9, 0.2);
}

.modality-pill i {
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {

    .category-filter-pills,
    .modality-filter-pills {
        max-width: calc(100vw - 2rem);
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        box-sizing: border-box;
    }

    .category-filter-pills::-webkit-scrollbar,
    .modality-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .category-pill,
    .modality-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
}

.schedule-list-header {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.5fr 1.3fr;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(86, 48, 124, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.schedule-row {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.5fr 1.3fr;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
    transition: background 0.2s ease;
}

.schedule-row:hover {
    background: rgba(86, 48, 124, 0.02);
}

.schedule-row:last-of-type {
    border-bottom: none;
}

.schedule-col-level {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.schedule-category-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: capitalize;
}

.schedule-level-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
}

.schedule-level-note {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    margin-top: 2px;
}

.schedule-col-mode {
    display: flex;
    align-items: center;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.mode-badge i {
    font-size: 0.9rem;
}

.mode-virtual {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mode-presencial {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.mode-hibrido {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.schedule-col-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.schedule-days,
.schedule-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
}

.schedule-days i,
.schedule-time i {
    color: #94a3b8;
    font-size: 0.95rem;
}

.schedule-days {
    font-weight: 500;
}

.schedule-time {
    font-size: 0.85rem;
    color: #64748b;
}

.schedule-col-date {
    display: flex;
    align-items: center;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.5rem 0.85rem;
    min-width: 60px;
    text-align: center;
}

.date-box .date-value {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.3;
}

/* Responsive: Mobile layout */
@media (max-width: 767.98px) {
    .schedule-row {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding: 1.25rem 1.25rem;
        align-items: flex-start;
    }

    .schedule-col-level {
        width: 100%;
    }

    .schedule-level-name {
        font-size: 1.1rem;
    }

    .schedule-col-mode,
    .schedule-col-schedule,
    .schedule-col-date {
        width: 100%;
    }

    .schedule-col-schedule {
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .date-box {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .schedule-card {
        border-radius: 1rem;
    }

    .schedule-list-header {
        padding: 0.75rem 1.25rem;
    }
}

/* --- Footer --- */
footer {
    background-color: var(--color-dominant);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    padding-top: 3.25rem;
    padding-bottom: 1.75rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 154, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

footer .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

footer .footer-link:hover {
    color: var(--color-tonic-yellow);
}

footer .footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

footer .footer-social-icon:hover {
    background-color: var(--color-tonic-yellow);
    color: var(--color-dominant);
    border-color: var(--color-tonic-yellow);
}

.footer-ucv-section {
    background-color: var(--color-tonic-yellow);
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    margin-top: 1.25rem !important;
}

footer .container.pb-5 {
    padding-bottom: 2rem !important;
}

footer .row.gy-4.mb-4 {
    margin-bottom: 0 !important;
}

footer .col-lg-6:first-child>.d-flex.align-items-center.gap-3.mb-4 {
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

footer .col-lg-6:first-child>.d-flex.align-items-center.gap-3.mb-4 img {
    height: 48px !important;
    width: auto;
}

footer .border-top.border-secondary.border-opacity-25.pt-4 {
    padding-top: 1rem !important;
}

footer h6 {
    margin-bottom: 0.4rem !important;
}

footer p.text-white-50 {
    margin-bottom: 0.2rem !important;
    line-height: 1.45;
}

footer ul.list-unstyled.small li {
    margin-bottom: 0.2rem;
}

footer .footer-link {
    margin-bottom: 0 !important;
}

footer .btn.btn-outline-light.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
}


/* --- Responsive Tweaks --- */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
        text-align: center;
        display: block;
    }

    .hero-content {
        align-items: center;
    }

    .hero-image-container {
        height: 450px;
    }


    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        margin-top: 1rem;
    }

    .navbar .navbar-collapse .nav-link,
    .navbar.scrolled .navbar-collapse .nav-link {
        color: var(--color-dominant) !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
    }

    .navbar .navbar-collapse .nav-link:hover,
    .navbar.scrolled .navbar-collapse .nav-link:hover {
        background-color: rgba(0, 154, 218, 0.05);
        color: var(--color-secondary) !important;
    }

    .navbar-collapse .btn-tonic {
        padding: 0.85rem 1.5rem !important;
        font-size: 0.95rem;
    }

    footer {
        padding-top: 2rem !important;
        padding-bottom: 1.2rem !important;
    }

    footer .container.pb-5 {
        padding-bottom: 1.25rem !important;
    }

    footer .row.gy-4.mb-4 {
        --bs-gutter-y: 1rem;
    }

    footer .col-lg-6:first-child>.d-flex.align-items-center.gap-3.mb-4 {
        margin-bottom: 0.85rem !important;
    }

    footer h5,
    footer h6 {
        font-size: 0.88rem !important;
        margin-bottom: 0.35rem !important;
    }

    footer p.text-white-50 {
        font-size: 0.8rem !important;
        margin-bottom: 0.15rem !important;
    }

    footer .footer-social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .footer-ucv-section {
        margin-top: 0.85rem !important;
    }
}

@media (max-width: 767.98px) {
    footer {
        padding-top: 1.5rem !important;
        padding-bottom: 1rem !important;
    }

    footer .row.gy-4.mb-4 {
        --bs-gutter-y: 0.85rem;
    }

    footer .col-lg-6 {
        text-align: center;
    }

    footer .col-lg-6:first-child>.d-flex.align-items-center.gap-3.mb-4 {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem !important;
        margin-bottom: 0.75rem !important;
    }

    footer .col-lg-6:first-child>.d-flex.align-items-center.gap-3.mb-4 img {
        height: 42px !important;
    }

    footer .border-top.border-secondary.border-opacity-25.pt-4 {
        padding-top: 0.8rem !important;
    }

    footer .d-flex.gap-2 {
        justify-content: center;
    }

    footer .footer-link {
        font-size: 0.8rem;
    }

    footer .btn.btn-outline-light.btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.78rem;
    }

    .footer-ucv-section {
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        margin-top: 0.7rem !important;
    }
}

/* --- Course Configurator Section --- */
.configurator-section {
    background-color: var(--color-dominant);
    color: white;
    position: relative;
    overflow: hidden;
}

.configurator-section::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    width: 400px;
    height: 400px;
    background: var(--color-tonic-yellow);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
    pointer-events: none;
}

.configurator-section::after {
    content: '';
    position: absolute;
    bottom: 25%;
    right: 0;
    width: 400px;
    height: 400px;
    background: white;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
    pointer-events: none;
}

.configurator-section h2 {
    color: white !important;
}

.configurator-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.configurator-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--color-dominant);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dominant) !important;
    margin: 0;
}

.modality-toggle-wrapper {
    display: flex;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 1rem;
    gap: 0;
}

.modality-toggle-btn {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modality-toggle-btn:hover {
    color: var(--color-dominant);
}

.modality-toggle-btn.active {
    background: white;
    color: var(--color-dominant);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    outline: 3px solid var(--color-tonic-yellow);
}

.modality-toggle-btn i {
    font-size: 1.1rem;
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.configurator-left {
    display: flex;
    flex-direction: column;
}

.planning-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.planning-option {
    cursor: pointer;
}

.planning-option input {
    display: none;
}

.planning-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.planning-option input:checked+.planning-option-content {
    border-color: var(--color-tonic-yellow);
    background: rgba(247, 190, 9, 0.05);
}

.planning-option-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.planning-option-info>i {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.planning-option input:checked+.planning-option-content .planning-option-info>i {
    color: var(--color-tonic-yellow);
}

.planning-option-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dominant);
    margin: 0;
}

.planning-option-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.planning-option-check {
    color: var(--color-tonic-yellow);
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.planning-option input:checked+.planning-option-content .planning-option-check {
    opacity: 1;
}

.configurator-right {
    display: flex;
    align-items: stretch;
}

.pricing-summary-card {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.pricing-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: rgba(247, 190, 9, 0.2);
    color: var(--color-tonic-yellow);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50rem;
    margin-bottom: 0.75rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-dominant);
    line-height: 1;
}

.price-currency {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.pricing-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.pricing-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    color: var(--color-dominant);
}

.btn-complete-inscription {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-dominant);
    color: white;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(86, 48, 124, 0.25);
}

.btn-complete-inscription:hover {
    background: #7b4aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(86, 48, 124, 0.35);
}

/* Configurator Responsive */
@media (max-width: 991.98px) {
    .configurator-section .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .configurator-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .configurator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .configurator-step.mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .modality-toggle-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .price-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .configurator-section .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .configurator-section .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .configurator-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .modality-toggle-wrapper {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.35rem;
    }

    .modality-toggle-btn {
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .step-header {
        gap: 0.5rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-header.mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .planning-options {
        gap: 0.5rem;
    }

    .planning-option-content {
        padding: 0.85rem 1rem;
    }

    .planning-option-info {
        gap: 0.5rem;
    }

    .planning-option-info>i {
        font-size: 1.25rem;
    }

    .planning-option-title {
        font-size: 0.95rem;
    }

    .planning-option-desc {
        font-size: 0.8rem;
    }

    .planning-option-check {
        font-size: 1rem;
    }

    .pricing-summary-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .pricing-header {
        margin-bottom: 1rem;
    }

    .pricing-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .price-value {
        font-size: 2.25rem;
    }

    .price-currency {
        font-size: 0.9rem;
    }

    .pricing-details {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .pricing-detail-item {
        padding-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    .btn-complete-inscription {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 0.625rem;
    }
}


/* --- Fechas Importantes Banner --- */
.fechas-banner {
    background: linear-gradient(135deg, var(--color-tonic-yellow) 0%, #f9d423 100%);
    border-radius: 3rem;
    display: flex;
    align-items: center;
    padding: 3.5rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(247, 190, 9, 0.2);
}

.fechas-left {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.fechas-title-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.fechas-title {
    color: #1a0124 !important;
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
}

.fechas-icon-main {
    font-size: 4.5rem;
    color: rgba(26, 1, 36, 0.4);
}

.fechas-divider {
    width: 2px;
    height: 180px;
    background-color: rgba(26, 1, 36, 0.1);
    margin: 0 3rem;
}

.fechas-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fechas-warning {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a0124;
    margin: 0;
}

.fechas-content-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.fechas-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    position: relative;
    z-index: 5;
}

.fechas-list li {
    font-size: 1.25rem;
    color: #1e293b;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    line-height: 1.4;
}

.fechas-list li strong {
    font-weight: 800;
    color: var(--color-dominant);
}

.fechas-icon-clock {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 10rem;
    color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .fechas-banner {
        flex-direction: column;
        padding: 2.5rem;
        border-radius: 2.5rem;
        text-align: center;
    }

    .fechas-left {
        flex: none;
        width: 100%;
        margin-bottom: 2rem;
        align-items: center;
    }

    .fechas-title-group {
        text-align: center;
        align-items: center;
    }

    .fechas-title {
        font-size: 2.5rem;
    }

    .fechas-divider {
        width: 100%;
        height: 2px;
        margin: 0 0 2rem 0;
    }

    .fechas-warning {
        text-align: center;
    }

    .fechas-content-card {
        padding: 1.5rem;
    }

    .fechas-list li {
        font-size: 1.1rem;
        justify-content: center;
        text-align: center;
    }
}


/* --- Team Section Styles --- */
.team-section {
    background: linear-gradient(to bottom, #ffffff 0%, #fdfbff 50%, #f8f9fa 100%);
    position: relative;
}

.team-section-title {
    color: var(--academic-dark);
    line-height: 1.3;
}

.team-subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
}

.team-images-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.team-image-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.team-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.12);
}

.team-info-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.team-info-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--academic-gold) 0%, #e5af08 100%);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--academic-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(247, 190, 9, 0.25);
}

.team-info-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--academic-dark);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.team-info-text {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.team-quote-banner {
    padding: 2rem 1rem;
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}


.team-quote-banner-text {
    color: var(--academic-dark);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    position: relative;
}

.team-quote-footer {
    color: var(--academic-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 1.5rem;
    border-top: 2px solid var(--academic-gold);
    display: inline-block;
    opacity: 0.8;
}

/* --- Team Section Mobile Responsive --- */
@media (max-width: 991.98px) {
    .team-section .container.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .team-section-title {
        font-size: 1.75rem !important;
    }

    .team-subtitle {
        font-size: 0.95rem;
    }

    .team-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-image-secondary {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .team-info-card {
        padding: 2rem 1.5rem;
    }

    .team-info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .team-info-title {
        font-size: 1.2rem;
    }

    .team-info-text {
        font-size: 0.9rem;
    }

    .team-quote-banner {
        padding: 2.5rem 2rem;
    }


    .team-quote-banner-text {
        font-size: 1.05rem;
        padding-left: 0;
    }

    .team-quote-footer {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .team-section-title {
        font-size: 1.5rem !important;
    }

    .team-subtitle {
        font-size: 0.9rem;
    }

    .team-image-secondary {
        grid-template-columns: 1fr;
    }

    .team-info-card {
        padding: 1.75rem 1.25rem;
    }

    .team-quote-banner {
        padding: 2rem 1.5rem;
    }

    .team-quote-banner-text {
        font-size: 0.95rem;
    }

    .team-quote-footer {
        font-size: 0.9rem;
    }
}