@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Nunito+Sans:wght@400;500;600&display=swap');

/* --- VARIABLES --- */
:root {
    --color-primary: #00685E;
    --color-secondary: #B9975B;
    --color-white: #ffffff;
    --color-bg-hero: #ffffff;
    --color-text-main: #1A1A1A;
    --color-text-muted: #666666;
    --color-border: #E0E0E0;
    --font-heading: "Lora", ui-serif, Georgia, "Times New Roman", serif;
    --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --color-light-green: #BEE3D9;
}
/* --- FIN VARIABLES --- */

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    color: var(--color-secondary);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

h1, h2, h3, h4, h5, h6,
.hero-content h1,
.form-body h2,
.panel-title,
.split-title,
.ventaja-title,
.modelo-header h2,
.up-section-header h2,
.accordion-title {
    font-family: var(--font-heading);
}

h1, .hero-content h1, h2, h3, .hero-content span {
    font-size: clamp(1.60rem, 2vw + 1rem, 2.25rem);
    font-weight: 500;
}

p {
    font-family: var(--font-body);
    font-size: 1rem;
}

span {
    font-size: 1rem;
}
/* --- FIN RESET Y BASE --- */

/* --- NAVEGACION --- */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.navbar.nav-hidden {
    transform: translateY(-100%);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    width: 60px;
    height: 60px;
    font-weight: 600;
}

.logo img {
    max-width: 100%;
    object-fit: contain;
}

.btn-nav {
    background-color: var(--color-primary);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    padding: 0 20px;
    font-weight: 500;
    font-size: 0.875rem;
    height: 40px;
    border: 1px solid transparent;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-nav:hover {
    background-color: #004d45;
}
/* --- FIN NAVEGACION --- */

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-start;
    background-image: url(./img/Banner.webp);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 1;
    padding-top: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to left, rgb(0 39 33 / 72%) 30%, rgb(0 39 33 / 15%) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 10; 
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0px 20px;
    align-items: flex-start;
}

.hero-mountain-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 5;
}

.hero-mountain-wave svg {
    display: block;
    width: 100%;
    height: 35px;
}

.hero-mountain-wave .shape-fill {
    fill: #ffffff;
}

.hero-content {
    flex: 1 1 50%;
}

.hero-content h1 {
    line-height: 1.05;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    max-width: 80%;
    line-height: 1.5;
}

.badge {
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-body) !important;
    border-radius: 1rem;
    width: 35%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-bg-hero);
    gap: 10px;
    width: fit-content;
    padding: 10px 18px;
    font-size: 0.9rem;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.badge-icon {
    font-size: 1rem !important;
    color: var(--color-secondary) !important;
}

.text-gold {
    color: var(--color-secondary);
}

.info-panel {
    display: flex;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: 10px 18px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.info-icon {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-secondary);
}
.info-icon svg{
    width: 24px;
    height: 24px;
    display: block
}
.info-text strong {
    display: block;
    font-size: 1.1rem;
    color: #ffffff;
}

.info-text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-form-wrapper {
    flex: 1 1 30%; 
}
/* --- FIN HERO SECTION --- */

/* --- TABS NAVEGACION --- */
.tabs-wrapper {
    background-color: var(--color-white);
    padding: 40px 20px;
}

.tabs-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    z-index: 997;
    background-color: var(--color-white);
    position: sticky;
    top: 64px;
}

.tabs-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: space-evenly;
    padding: 0.5rem;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border-radius: 1rem;
    border-color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 15px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease, border-color 0.3s ease;
    width: 100%;
}

.tab-btn:hover, .tab-btn.active {
    color: var(--color-bg-hero);
    background: var(--color-secondary);
    border-radius: 1rem;
}

.tab-btn.active {
    border-bottom-color: #A5864F;
}

.btn-tab-action {
    margin-left: auto;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-tab-action:hover {
    background-color: #004d45;
}

.tabs-content-container {
    max-width: 1200px;
    margin: 40px auto 0;
}

.tab-panel {
    display: none;
    animation: fadeInTab 0.4s ease-in-out;
}

.tab-panel.active {
    display: block;
}

.panel-title {
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-size: 2rem;
}
/* --- FIN TABS NAVEGACION --- */

/* --- SECCION VENTAJAS --- */
.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.ventaja-card {
    position: relative;
    border: 1px solid #E2E8F0;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    background: #f1f3ef;
}

.ventaja-card:hover {
    border-color: #2DD4BF;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
    transform: translateY(-5px);
}

.program-card__topline {
    position: absolute;
    top: 0;
    left: 0;
    width: 92px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 0 0 8px 0;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.icon-circle {
    width: 76px;
    height: 76px;
    background-color: var(--color-bg-hero);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
    color: #19877E;
}

.ventaja-title {
    margin: 0;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--color-secondary);
    margin: 0 0 16px 0;
}

.ventaja-text {
    line-height: 1.5;
    margin-bottom: 16px;
    color: #6b6f6c;
}

.ventaja-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ventaja-list li {
    color: #6b6f6c;
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.ventaja-list li::before {
    content: "•";
    color: var(--color-secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    position: absolute;
    left: 0;
}
/* --- FIN SECCION VENTAJAS --- */

/* --- SECCION PERFILES MODERNOS --- */
.perfiles-modern {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0px 20px;
}

.perfil-card {
    border-radius: 20px;
    padding: 35px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    overflow: hidden;
}

.card-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
    background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.card-dark .perfil-title,
.card-dark .perfil-subtitle {
    color: var(--color-white);
}

.card-dark .perfil-desc {
    color: rgba(255, 255, 255, 0.9);
}

.card-dark .perfil-desc-sm {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.card-light {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.card-light .perfil-title {
    color: var(--color-primary);
}

.card-light .perfil-desc {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.card-light .step-line {
    background-color: var(--color-border);
}

.card-light .perfil-subtitle {
    color: var(--color-text-main);
}

.bg-shape {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-color: #f2f7f5;
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
}

.perfil-col-left, .perfil-col-right {
    position: relative;
    z-index: 1;
}

.perfil-title {
    font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
    line-height: 1.1;
    margin-bottom: 15px;
}

.perfil-desc {
    font-family: var(--font-body);
    line-height: 1.6;
    margin-bottom: 40px;
}

.perfil-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.perfil-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.perfil-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
}

.card-dark .perfil-list li {
    color: rgba(255, 255, 255, 0.9);
}

.card-light .perfil-list li {
    color: var(--color-text-muted);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.card-light .icon-check {
    color: var(--color-primary);
}

.icon-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-white);
    opacity: 0.8;
}

.icon-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.perfil-highlight {
    background-color: var(--color-light-green);
    padding: 25px;
    border-radius: 12px;
    margin-top: 4rem;
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.highlight-header svg {
    width: 16px;
    height: 16px;
}

.perfil-highlight strong {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-size: 1.1rem;
    line-height: 1.4;
    display: block;
}
/* --- FIN SECCION PERFILES MODERNOS --- */

/* --- PLAN DE ESTUDIOS --- */
.curriculum-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

.curriculum-brochure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -5rem;
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
}

.curriculum-brochure .btn-nav {
    width: auto;
    min-width: 200px;
    background-color: var(--color-secondary);
    font-weight: bold;
}

.curriculum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.curriculum-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.curriculum-nav-item .nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #a0aec0;
}

.curriculum-nav-item .nav-text {
    display: flex;
    flex-direction: column;
}

.curriculum-nav-item .nav-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #cbd5e0;
}

.curriculum-nav-item .nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #4a5568;
}

.curriculum-nav-item.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.curriculum-nav-item.active .nav-icon,
.curriculum-nav-item.active .nav-num,
.curriculum-nav-item.active .nav-title {
    color: #fff;
}

.curriculum-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    overflow: hidden;
}

.curriculum-pane {
    display: none;
    padding: 20px 35px;
    animation: fadeIn 0.4s ease;
}

.curriculum-pane.active {
    display: block;
}

.pane-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.pane-icon-box {
    width: 55px;
    height: 55px;
    background: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.pane-icon-box svg {
    width: 60%;
}

.pane-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

.pane-main-title {
    font-size: 1.5rem;
    color: #1a202c;
    margin: 0;
}

.pane-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.subjects-section {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
}

.subjects-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.subject-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.subject-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #b3e3dc;
    border-radius: 50%;
    margin-right: 12px;
}
/* --- FIN PLAN DE ESTUDIOS --- */

/* --- FORMULARIO COMPACTO Y MODAL --- */
.form-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.form-body p:first-of-type {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.8rem;
}

.form-subtitle {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0.7rem;
}

.compact-form {
    max-width: 375px !important;
    margin: 0 auto !important;
    font-size: 0 !important;
}

.compact-form .ic-class-form-row {
    display: inline-block;
    width: 100% !important;
    margin-bottom: 8px !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    padding-right: 6px !important;
    font-size: 11px !important;
}

.compact-form .ic-class-form-row-full {
    display: block;
    width: 100% !important;
    clear: both !important;
}

.compact-form .ic-class-form-label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    display: block !important;
    letter-spacing: 0.03em !important;
    line-height: 1.2 !important;
    height: 11px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-family: var(--font-body);
}

.compact-form .ic-class-form-input,
.compact-form .form-control {
    padding: 0px 5px !important;
    font-size: 12px !important;
    height: 35px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    font-family: var(--font-body);
}

.compact-form .ic-class-form-check {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 16px !important;
}

.compact-form .ic-class-form-check-input, .compact-form #terms-check {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.compact-form .ic-class-form-check-label, .ic-default-7.form-check.form-check-inline.ic-class-form-check-legal {
    font-size: 10px !important;
    line-height: 1.1 !important;
    color: #4a5568 !important;
    flex: 1 !important;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-primary) !important;
}

#terms-link {
    color: #84ba3f !important;
}

.compact-form .ic-class-form-button-submit {
    padding: 6px 12px !important;
    font-size: 11px !important;
    height: 30px !important;
    background-color: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    margin-top: 4px !important;
    font-family: var(--font-body);
}

#formModal {
    width: 400px !important;
    transition: all 0.2s ease;
}

label.ic-default-7.ic-class-form-check-label-legal.form-check-label.dhx-terms {
    font-size: 10px !important;
    margin-left: 0.3rem;
    font-family: var(--font-body);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #000000;
}

.modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333333;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}
/* --- FIN FORMULARIO COMPACTO Y MODAL --- */

/* --- SECCION VENTAJAS (BENTO GRID) --- */
.up-advantages-bento {
    padding: 40px 20px;
    background-color: #f7f7f7;
}   

#up-advantages-bento .container {
    background-color: #f7f7f7;
}

.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: stretch;
}

.bento-main-card {
    background-color: var(--color-primary);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.bento-shape-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.bento-shape-2 {
    position: absolute;
    bottom: -80px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.bento-main-content {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.bento-main-content > p {
    color: var(--color-white) !important;
}

.bento-icon-dark {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.bento-icon-dark svg {
    width: 22px;
    height: 22px;
    color: var(--color-white);
}

.bento-main-content h2 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: clamp(1.8rem, 2.5vw + 1rem, 2.2rem);
    line-height: 1.2;
}

.bento-main-content p {
    font-family: var(--font-body);
    color: var(--color-primary);
    max-width: 90%;
}

.bento-side-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
}

.bento-side-card {
    background-color: var(--color-white);
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: default;
    height: 100%;
}

.bento-side-card:hover {
    background-color: #b3e3dc;
    border-color: #b3e3dc;
}

.bento-icon-light {
    width: 45px;
    height: 45px;
    background-color: #e6f0ef;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.bento-icon-light svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.bento-side-text h3 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.bento-side-text p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.bento-awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.bento-header-inline {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-bottom: 15px;
}

.bento-header-inline .bento-icon-dark {
    margin-bottom: 0;
    flex-shrink: 0; 
}

.card-source {
    font-size: 0.6rem;
    line-height: 1.55;
    color: #6b6f6c;
    min-height: 50px;
}

.bento-award-item {
    background-color: var(--color-bg-hero); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.bento-award-item:hover {
    transform: translateY(-3px);
}

.bento-award-logo {
    height: 30px;
    margin-bottom: 12px;
    object-fit: contain;
}

.bento-award-rank {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.bento-award-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-primary);
    line-height: 1.3;
}
/* --- FIN SECCION VENTAJAS (BENTO GRID) --- */

/* --- SECCION MODELO ACADEMICO --- */
.modelo-academico {
    padding: 40px 20px;
    background-color: var(--color-white);
    border-top: 1px solid #eee;
}

.modelo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.modelo-header {
    text-align: center;
    display: flex;
    margin-bottom: 50px;
    flex-direction: column;
    align-items: center;
}

.modelo-header h2 {
    color: var(--color-text-main);
    margin-bottom: 15px;
    font-weight: 500;
    width: 80%;
}

.modelo-header p {
    color: var(--color-text-muted);
    max-width: 850px;
    margin: 0 auto;
}

.modelo-grid {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 70%;
    margin: 0 auto;
    overflow: hidden;
}

.modelo-item {
    flex: 0 0 50%;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.modelo-item:nth-child(2n) {
    border-right: none;
}

.modelo-item:nth-child(3),
.modelo-item:nth-child(4) {
    border-bottom: none;
}

.modelo-item .number {
    font-size: 2rem;
    color: var(--color-primary);
    display: block;
}

.modelo-tag {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}
/* --- FIN SECCION MODELO ACADEMICO --- */

/* --- SECCION FACULTAD (CARRUSEL) --- */
.facultad-desc {
    margin-bottom: 50px;
    color: var(--color-text-muted);
}

.carousel-wrapper {
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.carousel-track.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel-track.dragging * {
    user-select: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.faculty-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    align-self: flex-start;
}

.faculty-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--color-secondary);
    padding: 6px;
    margin-bottom: 20px;
}

.faculty-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #E5E7EB;
}

.faculty-role {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.faculty-name {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.faculty-bio {
    font-size: 0.85rem;
    color: #888888;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.more-text {
    display: none !important;
}

.faculty-bio.expanded .more-text {
    display: inline !important;
}

.btn-faculty {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-faculty:hover {
    background-color: #004d45;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: #888888;
}

.carousel-arrow {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 990; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

.carousel-arrow:hover {
    background-color: #004d45; 
    transform: translateY(-50%) scale(1.05);
}

.left-arrow {
    left: 10px; 
}

.right-arrow {
    right: 10px; 
}
/* --- FIN SECCION FACULTAD --- */
/* --- TESTIMONIOS (DISEÑO SHORTS ORIGINAL Y CORREGIDO) --- */
.testimoniosVideoUP {
    background-color: var(--color-bg-hero);
    overflow: hidden;
}
.testimoniosVideoUP__arrow svg {
    width: 24px;
    height: 24px;
    display: block;
}
.testimoniosVideoUP__arrow svg path {
    stroke: currentColor;
}
.info-icon svg rect,
.info-icon svg polygon {
    stroke: currentColor;
}
.testimoniosVideoUP__wrap {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box; 
    width: 100%;
}

.testimoniosVideoUP__headerSlider {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimoniosVideoUP__arrows {
    display: flex;
    gap: 15px;
}

.testimoniosVideoUP__arrow {
    width: 45px;
    height: 45px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 50%;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimoniosVideoUP__arrow:hover {
    background: #f0f0f0;
}

.testimoniosVideoUP__viewport {
    overflow: hidden;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.testimoniosVideoUP__track {
    display: flex;
    justify-content: flex-start !important;
    align-items: stretch;
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    width: 100%; 
    will-change: transform;
}

.testimoniosVideoUP__card {
    flex: 0 0 calc(25% - 15px);
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
}

.testimoniosVideoUP__videoLink {
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
}

/* El contenedor principal de la tarjeta vertical */
.testimoniosVideoUP__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* Obliga a la tarjeta a tener formato celular */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-primary);
}

.testimoniosVideoUP__card:hover .testimoniosVideoUP__thumb {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* LA MAGIA: La imagen de YouTube se escala para llenar el alto (100%)
  y recorta lo que sobra a los lados (las franjas oscuras),
  dejando el diseño verde central perfecto.
*/
.testimoniosVideoUP__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    z-index: 1;
}

/* Sutil degradado negro abajo para que el texto blanco sea legible siempre */
.testimoniosVideoUP__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 39, 33, 0.95) 0%, rgba(0, 39, 33, 0.4) 35%, transparent 60%);
    z-index: 2;
}

/* Textos posicionados abajo encima de la imagen */
.testimoniosVideoUP__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 75px 25px 20px; /* Padding derecho para no pisar el botón */
    z-index: 3;
    text-align: left;
}

.testimoniosVideoUP__meta h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0 0 4px;
    font-weight: 700;
    line-height: 1.2;
}

.testimoniosVideoUP__meta p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.3;
}

.testimoniosVideoUP__meta br {
    display: none; /* Quitamos el salto de línea para que quede compacto */
}

.testimoniosVideoUP__meta span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: block;
    margin-top: 6px;
}

/* Botón flotante Play de la esquina inferior derecha */
.testimoniosVideoUP__play {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #032e29;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 4;
}

.testimoniosVideoUP__card:hover .testimoniosVideoUP__play {
    transform: scale(1.1);
    background: var(--color-primary); /* Se enciende al hacer hover */
}

.testimoniosVideoUP__play svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

/* Indicadores inferiores (puntitos) */
.testimoniosVideoUP__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.testimoniosVideoUP__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimoniosVideoUP__dot.is-active {
    width: 30px;
    border-radius: 5px;
    background: var(--color-primary);
}

/* Estado de video en reproducción */
.testimoniosVideoUP__thumb.is-playing {
    background: #000;
}

.testimoniosVideoUP__iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    border-radius: inherit;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}
/* --- FIN TESTIMONIOS --- */
/* --- SECCION CTA --- */
.up-cta-section {
    padding: 40px 20px;
    background-color: var(--color-primary);
}

.up-cta-section .container {
    text-align: left;
    display: flex;
    justify-content: flex-start;
}

.cta-banner {
    text-align: left;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.eyebrow-gold {
    font-size: 0.75rem !important;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    color: var(--color-secondary) !important;
}

.cta-content h2 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: clamp(1.8rem, 2.5vw + 1rem, 2.4rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 35px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: left;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    font-weight: 500;
    font-size: 0.875rem;
    height: 40px;
    border: 1px solid transparent;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-lg {
    height: 48px;
    padding: 0 24px;
    font-size: 1rem;
}

.icon-sm {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.btn-ghost-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.cta-actions .btn-nav {
    background-color: var(--color-secondary);
}

.cta-btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: bold;
    padding: 15px 35px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cta-btn-secondary:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}
/* --- FIN SECCION CTA --- */

/* --- SECCION PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section {
    padding: 40px 20px;
    background-color: #f7f7f7;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
    margin-bottom: 15px;
}

.faq-header p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
}

.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid #d9d9d9;
    border-top: 1px solid #d9d9d9;
    margin-top: 30px;
}

.faq-accordion-item {
    border-bottom: 1px solid #d9d9d9;
    overflow: hidden;
}

.faq-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-accordion-header:hover {
    background-color: #fafafa;
}

.faq-accordion-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.12rem;
    color: var(--color-text-main);
    padding-right: 20px;
    line-height: 1.4;
}

.faq-accordion-icon {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: var(--color-bg-hero);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-accordion-icon::before,
.faq-accordion-icon::after {
    content: "";
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.faq-accordion-icon::before {
    width: 14px;
    height: 2px;
}

.faq-accordion-icon::after {
    width: 2px;
    height: 14px;
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-icon::after {
    transform: rotate(90deg) scale(0);
}

.faq-accordion-item.active .faq-accordion-icon {
    background-color: var(--color-bg-hero);
}

.faq-accordion-item.active .faq-accordion-title {
    color: var(--color-primary);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-accordion-content-inner {
    padding: 0 25px 25px 25px;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-accordion-item.active .faq-accordion-content-inner {
    border-top-color: #eaeaea;
    padding-top: 20px;
}

.faq-accordion-content-inner p {
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.faq-accordion-content-inner ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.faq-accordion-content-inner ul li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1rem;
}

.faq-accordion-content-inner ul li::before {
    content: "•";
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 10px;
    line-height: 1;
}
/* --- FIN SECCION PREGUNTAS FRECUENTES --- */

/* --- FOOTER --- */
.site-footer {
    background: #ffffff;
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #d9d9d9;
    font-size: 0.75rem;
    color: #6b6f6c !important;
}

.footer-legal a {
    color: #6b6f6c !important;
}

.brand-mark-lg {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.footer-bottom p {
    margin: 0;
}

.serif {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 140px;
    border-radius: 4px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-columns {
    display: grid;
    gap: 40px;
}

.footer-columns a, .footer-columns span {
    font-size: 0.875rem;
cursor: pointer;
    color: #6b6f6c;
    transition: color 160ms ease;
}

.footer-columns ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: #1f2a24;
    font-family: var(--font-body) !important;
}

.footer-brand p {
    max-width: 360px;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

.muted {
    color: #6b6f6c;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}
.testimoniosVideoUP__arrows,
.testimoniosVideoUP__dots {
    display: none;
}
/* --- FIN FOOTER --- */

/* --- BOTÓN FLOTANTE WHATSAPP (Ajustado a botón) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; 
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

/* --- MODAL DE OPCIONES WHATSAPP --- */
.wa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wa-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wa-modal-content {
position: absolute;
    bottom: 105px; 
    right: 90px; 
    background-color: #f7f7f7;
    width: calc(100% - 60px);
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.wa-modal-overlay.active .wa-modal-content {
    transform: translateY(0);
    opacity: 1;
}
.wa-modal-header {
    background-color: var(--color-primary); /* #00685E */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-modal-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Vuelve el logo blanco si el tuyo es de color oscuro */
}

.wa-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.wa-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.wa-modal-body p {
    font-family: var(--font-body);
    color: #4a4a4a;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.wa-modal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-btn {
    background-color: #1ebe57;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 15px;
    border-radius: 25px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.wa-btn:hover {
    background-color: #18a34a;
    transform: translateY(-2px);
}

/* Media Query WhatsApp Float */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
    .wa-modal-content{
        bottom: 85px; 
        right: 20px;
        width: calc(100% - 40px);
    }
}
/* --- ANIMACIONES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- FIN ANIMACIONES --- */

/* --- MEDIA QUERIES UNIFICADAS --- */

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
       grid-template-columns: 1fr 4fr;
        gap: 64px;
    }
}

@media (max-width: 1200px) {
    .testimoniosVideoUP__card {
        flex: 0 0 calc(33.333% - 15px);
    }
}

@media (max-width: 1030px) {
    .pane-icon-box svg {
        width: 40%;
    }

    .nav-container {
        justify-content: space-around;
    }
    .up-advantages-bento {
        padding: 40px 0px;
    }
    .logo {
        width: 75px;
        height: 75px;
    }
    .modelo-header h2 {
        width: 100%;
    }
    .hero::before {
        background: linear-gradient(to left, rgb(0 39 33 / 69%) 30%, rgb(0 39 33 / 67%) 100%);
    }
    .hero-mountain-wave svg {
        height: 55px;
    }
    .hero {
        min-height: 930px;
    }
    .hero-container {
        max-width: 920px;
        flex-direction: column;
    }
    .curriculum-brochure {
        margin-top: 1rem;
    }
    .hero-content {
        margin-bottom: 1rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        margin-bottom: 20px;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .testimoniosVideoUP__arrows,
    .testimoniosVideoUP__dots {
        display: flex;
    }
    .form-body h2 {
        font-size: 1.6rem;
    }
    .hero-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }
    .hero-content, 
    .hero-form-wrapper, 
    .curriculum-brochure {
        width: 100%; 
        flex: auto;
    }
    .curriculum-brochure {
        align-items: center;
        margin-top: 0px;max-width: 100%;
    }
    .curriculum-brochure .btn-nav {
        width: 100%;
    }
    .faculty-card {
        flex: 0 0 calc(50% - 15px);
    }
    .info-panel {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    .info-item {
        padding: 16px 20px;
    }
    .perfil-card {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 40px;
    }
    .perfil-title {
        font-size: 2.5rem;
    }
    .curriculum-container {
        grid-template-columns: 1fr;
    }
    .curriculum-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: center;
    }
    .nav-icon {
        display: none !important;
    }
    .curriculum-nav-item {
        flex-shrink: 0;
        width: 100px !important;
    }
    .curriculum-nav-item .nav-icon {
        width: 20px;
    }
    .curriculum-nav-item .nav-title {
        font-size: 0.7rem;
    }
    .curriculum-nav-item.active .nav-icon, 
    .curriculum-nav-item.active .nav-num, 
    .curriculum-nav-item.active .nav-title {
        font-size: 0.7rem;
    }
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    .bento-container {
        grid-template-columns: 1fr;
    }
    .bento-main-card {
        min-height: 400px;
    }
    .modelo-grid {
        flex-wrap: wrap;
        width: 90%;
    }
    .modelo-item {
        flex: 0 0 50%;
        border-bottom: 1px solid #e0e0e0;
    }
    .modelo-item:nth-child(2) {
        border-right: none;
    }
    .ventajas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimoniosVideoUP__card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 900px) {
    .btn-tab-action {
        margin-left: 0;
        position: sticky;
        right: 0;
        box-shadow: -10px 0 15px var(--color-white);
    }
    .bento-awards-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .cta-actions .btn-nav{
        width: 85%;
        font-size: 14px;
    }
    .btn-ghost-light{
        width: 100%;
        font-size: 13px;
    }
}

@media (max-width: 800px) {
    .compact-form {
        max-width: 280px !important;
    }
    .compact-form .ic-class-form-row {
        width: 100% !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .curriculum-sidebar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        overflow-x: hidden;
    }
    .curriculum-nav-item {
        width: 100%;
        padding: 10px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .curriculum-nav-item .nav-icon {
        margin: 0 auto 5px;
    }
    .tabs-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0;
    }
    .tab-btn:last-child {
        grid-column: 1 / -1;
        width: 100% !important;
    }
    .tab-btn {
        width: 100% !important;
        margin: 0;
        font-size: 0.85rem;
        padding: 10px 5px;
        white-space: normal;
        text-align: center;
    }
    .form-card {
        flex-direction: column;
        padding: 0;
    }
    .hero-mountain-wave svg {
        width: auto;
    }
    .form-body {
        padding: 25px;
    }
    .tabs-nav {
        justify-content: flex-start !important;
        padding: 10px;
        gap: 10px;
    }
    .tabs-nav-container {
        overflow-x: auto;
        top: 0 !important;
        transition: top 0.4s ease;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 1rem 0rem;
    }
    .tab-btn {
        flex-shrink: 0;
        font-size: 0.9rem;
        padding: 10px;
        width: 55%;
    }
    .pane-icon-box {
        width: 85px;
        height: 40px;
    }
    .faq-section {
        padding: 60px 20px;
    }
    .faq-accordion-header {
        padding: 15px 20px;
    }
    .faq-accordion-title {
        font-size: 0.95rem;
        padding-right: 15px;
    }
    .faq-accordion-content-inner {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
    }
    .carousel-arrow {
        top: 30%;
    }
    .left-arrow { left: 10px; }
    .right-arrow { right: 10px; }
}

@media (max-width: 640px) {

    .cta-actions {
        flex-direction: column;
    }
    .testimoniosVideoUP__headerSlider {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 2rem;
    }
    .testimoniosVideoUP__card {
        flex: 0 0 88%;
    }
}

@media (max-width: 600px) {
    .faculty-card {
        flex: 0 0 100%;
    }
    .faculty-img {
        width: 180px;
        height: 180px;
    }
    .perfiles-modern {
        padding: 0px 15px;
    }
    .perfil-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    .perfil-title {
        font-size: 2rem;
    }
    .card-light .perfil-list li {
        padding: 5px;
    }
    .bento-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bento-side-card {
        flex-direction: column;
        gap: 15px;
        padding: 25px 20px;
    }
    .modelo-item {
        flex: 0 0 100%;
        border-right: none;
    }
    .modelo-highlight .number {
        font-size: 2.8rem;
    }
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
    .modelo-item:nth-child(3) {
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: row;
    }
    .btn-nav {
        width: 55%;
    }
    .hero {
        padding: 40px 15px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .faq-section {
        padding: 40px 15px;
    }
    .faq-header h2 {
        font-size: 1.8rem;
    }
    .faq-accordion-title {
        font-size: 0.9rem;
    }
}
/* --- FIN MEDIA QUERIES --- */

/*Bloques seccion cards*/

.bloques-seccion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bloque-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.bloque-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 0 0 8px 0;
}

.bloque-card h5 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 18px;
  padding-top: 6px;
}

.bloque-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 12px;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.45;
}

.bloque-item::before {
  content: "";
  width: 8px;
  height: 8px;
  min-width: 8px;
  margin-top: 7px;
  background: #b3e3dc;
  border-radius: 50%;
}

.bloque-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .bloques-seccion {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .subjects-section {
    padding: 18px;
  }

  .bloque-card {
    padding: 20px;
  }

  .bloque-card h3 {
    font-size: 1.1rem;
  }

  .bloque-item {
    font-size: 0.9rem;
    padding: 12px;
  }
}