/* =====================================================
   INSTITUTO ÁNGELES DE LA VIDA - CSS Principal v2.0
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
    /* Colores Institucionales */
    --color-primary: #3d58a1;
    --color-primary-dark: #2d4275;
    --color-primary-light: #5a7bc4;
    --color-primary-rgb: 61, 88, 161;

    --color-secondary: #e13844;
    --color-secondary-dark: #c42d38;
    --color-secondary-light: #f05a65;
    --color-secondary-rgb: 225, 56, 68;

    /* Neutros */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;

    /* Semánticos */
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;

    /* Tipografía */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Tamaños de fuente */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.75rem;
    --fs-7xl: 4.5rem;

    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;

    /* Bordes */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
    margin-top: 0;
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); color: var(--color-primary); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ----- Utility Classes ----- */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-white { color: var(--color-white) !important; }
.text-muted { color: var(--color-gray-600) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-light { background-color: var(--color-gray-100) !important; }
.bg-dark { background-color: var(--color-gray-900) !important; }
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.bg-gradient-mixed {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

/* ----- Section Styles ----- */
.section {
    padding: var(--spacing-5xl) 0;
}

.section-sm {
    padding: var(--spacing-3xl) 0;
}

.section-lg {
    padding: var(--spacing-5xl) 0;
}

/* Fachada - Quiénes Somos */
.fachada-container {
    position: relative;
}

.fachada-slogan {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(61, 88, 161, 0.85);
    color: #fff;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 500;
    font-style: italic;
    text-align: center;
    min-height: 12%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Partner Logos - Carrusel infinito */
.logos-carousel {
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

.logos-carousel:hover .logos-track {
    animation-play-state: paused;
}

.logo-slide {
    flex-shrink: 0;
    width: 210px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.logo-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.logo-slide img {
    max-height: 100px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .logo-slide {
        width: 120px;
        height: 80px;
    }
    .logo-slide img {
        max-height: 55px;
        max-width: 100px;
    }
    .logos-track {
        gap: 2rem;
        animation-duration: 30s;
    }
}

/* Facebook Feed Component */
.fb-feed {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.fb-feed-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #1877f2, #0d5bbf);
    color: white;
}

.fb-page-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    padding: 3px;
    object-fit: contain;
}

.fb-page-info h5 {
    margin: 0 0 5px 0;
    color: white;
}

.btn-facebook {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-facebook:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.fb-posts {
    max-height: 600px;
    overflow-y: auto;
}

.fb-post {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-gray-200);
}

.fb-post:last-child {
    border-bottom: none;
}

.fb-post-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--color-gray-100);
    padding: 2px;
}

.fb-post-message {
    font-size: var(--fs-base);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    white-space: pre-line;
}

.fb-post-image {
    margin: 0 calc(var(--spacing-lg) * -1);
    margin-bottom: var(--spacing-md);
}

.fb-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fb-post-stats {
    display: flex;
    justify-content: space-between;
    color: var(--color-gray-600);
    font-size: var(--fs-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-gray-100);
}

.fb-feed-footer {
    padding: var(--spacing-lg);
    text-align: center;
    background: var(--color-gray-50);
}

/* Social Links Bar */
.social-links-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-links-bar span {
    color: var(--color-gray-600);
    font-weight: 500;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.facebook:hover {
    background: #0d5bbf;
    color: white;
    transform: translateY(-2px);
}

.social-link.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
}

.social-link.instagram:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
}

/* News Cards */
.news-card {
    border: none;
    overflow: hidden;
    transition: all var(--transition-base);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-card-img {
    position: relative;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--color-primary);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header .subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header .lead {
    font-size: var(--fs-lg);
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--fs-lg);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--fs-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ----- Cards ----- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-xl);
}

.card-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
}

/* Program Card */
.program-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.program-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.program-card .card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card:hover .card-img {
    transform: scale(1.05);
}

.program-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.program-card .card-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-card .card-title {
    font-size: var(--fs-lg);
    min-height: 56px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card .card-text {
    flex-grow: 1;
    min-height: 72px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card .btn {
    margin-top: auto;
}

.program-card .badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.program-card .badge-licenciatura { background: var(--color-primary); color: white; }
.program-card .badge-maestria { background: var(--color-secondary); color: white; }
.program-card .badge-doctorado { background: var(--color-gray-800); color: white; }
.program-card .badge-tecnico { background: #28a745; color: white; }

/* ----- Header & Navbar ----- */
.top-bar {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--spacing-sm) 0;
    font-size: var(--fs-sm);
}

.top-bar a {
    color: var(--color-white);
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.top-bar .social-links a {
    margin-left: var(--spacing-md);
    font-size: var(--fs-lg);
}

.navbar {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Navbar Brand - Logo Left */
.navbar-brand {
    padding: 0;
    margin-right: var(--spacing-xl);
}

.navbar-brand img {
    height: 100px;
    width: auto;
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.15));
}

.navbar.scrolled .navbar-brand img {
    height: 70px;
    filter: none;
}

/* Navbar Collapse - Right aligned */
.navbar-collapse {
    justify-content: flex-end;
}

/* Campus Virtual NExO - Special link style */
.nav-link-campus {
    color: var(--color-secondary) !important;
    font-weight: 600;
}

.nav-link-campus:hover {
    color: var(--color-secondary-dark) !important;
}

/* Plataforma Educativa - Icono en navbar */
.nav-link-plataforma {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(61, 88, 161, 0.35);
}

.nav-link-plataforma:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(225, 56, 68, 0.4);
}

@media (max-width: 991.98px) {
    .nav-link-plataforma {
        width: auto;
        height: auto;
        border-radius: 8px;
        padding: 0.5rem 1rem !important;
        justify-content: flex-start;
    }
}

/* Badge for Curso Tecnico */
.badge-tecnico {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--fs-base);
    color: var(--color-gray-800);
    padding: var(--spacing-sm) var(--spacing-md) !important;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.navbar .btn {
    margin-left: var(--spacing-sm);
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 70px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 60px;
    }

    .navbar-collapse {
        padding-top: var(--spacing-md);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: var(--spacing-sm) 0 !important;
    }
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ----- Hero Slider Fullscreen ----- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider .carousel {
    height: 100%;
}

.hero-slider .carousel-inner {
    height: 100%;
}

.hero-slider .carousel-item {
    height: 100vh;
    min-height: 700px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: 50% center;
    background-repeat: no-repeat;
}

/* Panoramic Ken Burns animation - slow, subtle, all start from center */
@keyframes panSlowRight {
    0% {
        background-position: 50% center;
    }
    100% {
        background-position: 60% center;
    }
}

@keyframes panSlowLeft {
    0% {
        background-position: 50% center;
    }
    100% {
        background-position: 40% center;
    }
}

@keyframes zoomSlowIn {
    0% {
        transform: scale(1);
        background-position: 50% center;
    }
    100% {
        transform: scale(1.08);
        background-position: 50% center;
    }
}

/* Apply animation when slide is active - slow 15 second movement */
.carousel-item.active .hero-slide {
    animation: panSlowRight 15s ease-out forwards;
}

/* Alternate direction for each slide - all start from center */
.carousel-item:nth-child(1).active .hero-slide {
    animation: panSlowRight 15s ease-out forwards;
}

.carousel-item:nth-child(2).active .hero-slide {
    animation: panSlowLeft 15s ease-out forwards;
}

.carousel-item:nth-child(3).active .hero-slide {
    animation: zoomSlowIn 15s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--color-white);
}

.hero-title-xl {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: var(--fs-xl);
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Hero Quote */
.hero-quote {
    font-size: var(--fs-lg);
    font-style: italic;
    opacity: 0.9;
    border-left: 3px solid var(--color-warning);
    padding-left: var(--spacing-md);
    margin: 0;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--fs-base);
    color: rgba(255,255,255,0.9);
}

.hero-feature i {
    color: #ffc107;
}

/* Text Gradient Gold */
.text-gradient-gold {
    background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NEW Badge with Pulse */
.hero-badge-new {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
}

.badge-pulse {
    width: 12px;
    height: 12px;
    background: #ffc107;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.badge-text {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffc107;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Side Badges for Slide 1 */
.hero-side-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.side-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    font-size: var(--fs-lg);
    transform: translateX(50px);
    opacity: 0;
    animation: slideInBadge 0.6s ease forwards;
}

.side-badge i {
    font-size: var(--fs-2xl);
    color: #ffc107;
}

.side-badge-1 { animation-delay: 0.3s; }
.side-badge-2 { animation-delay: 0.5s; }
.side-badge-3 { animation-delay: 0.7s; }

@keyframes slideInBadge {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CONOCER Hero Badge */
.conocer-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--fs-sm);
    font-weight: 500;
}

.conocer-hero-badge img {
    filter: brightness(0) invert(1);
}

/* Certification Grid */
.hero-cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.cert-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

/* CONOCER Seal */
.conocer-seal {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
    animation: float 3s ease-in-out infinite;
}

/* SEP Logo in Slide 3 */
.sep-logo-container {
    animation: float 3s ease-in-out infinite;
}

.sep-logo-img {
    max-width: 300px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.seal-inner {
    text-align: center;
    color: white;
}

.seal-inner i {
    font-size: 4rem;
    color: #ffc107;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.seal-inner span {
    font-size: var(--fs-3xl);
    font-weight: 800;
    display: block;
}

.seal-inner small {
    font-size: var(--fs-sm);
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Carousel Controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all var(--transition-base);
}

.hero-slider .carousel-control-prev {
    left: 30px;
}

.hero-slider .carousel-control-next {
    right: 30px;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255,255,255,0.3);
}

.hero-slider .carousel-indicators {
    bottom: 100px;
}

.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.hero-slider .carousel-indicators button.active {
    background: white;
    transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    color: white;
    font-size: var(--fs-sm);
    text-decoration: none;
    opacity: 0.7;
    transition: all var(--transition-base);
}

.scroll-indicator a:hover {
    opacity: 1;
    color: white;
}

.scroll-indicator i {
    font-size: var(--fs-lg);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Hide default carousel controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next,
.hero-slider .carousel-indicators {
    display: none;
}

/* Responsive scroll indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* Carousel Fade Animation Enhancement */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active.carousel-item-start,
.carousel-fade .carousel-item.active.carousel-item-end {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-slider {
        min-height: 600px;
    }

    .hero-slide {
        background-attachment: scroll;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .hero-slider .carousel-control-prev {
        left: 15px;
    }

    .hero-slider .carousel-control-next {
        right: 15px;
    }

    .conocer-seal {
        width: 180px;
        height: 180px;
    }

    .seal-inner i {
        font-size: 2.5rem;
    }

    .seal-inner span {
        font-size: var(--fs-2xl);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        min-height: 100vh;
    }

    /* Disable panoramic animation on mobile for better performance */
    .hero-slide {
        background-size: cover;
        background-position: center center;
    }

    .carousel-item.active .hero-slide,
    .carousel-item:nth-child(1).active .hero-slide,
    .carousel-item:nth-child(2).active .hero-slide,
    .carousel-item:nth-child(3).active .hero-slide {
        animation: none;
    }

    .hero-slide .container {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .hero-title-xl {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: var(--fs-base);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-slider .carousel-indicators {
        bottom: 80px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ----- Stats Bar ----- */
.stats-bar {
    background: var(--color-white);
    padding: var(--spacing-2xl) 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    border-right: 1px solid var(--color-gray-200);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----- Programs Grid ----- */
.programs-tabs .nav-tabs {
    border: none;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.programs-tabs .nav-link {
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    padding: var(--spacing-sm) var(--spacing-xl);
    font-weight: 600;
    color: var(--color-gray-600);
    background: transparent;
}

.programs-tabs .nav-link.active,
.programs-tabs .nav-link:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

/* ----- Testimonials ----- */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-text {
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info h5 {
    margin: 0;
    font-size: var(--fs-base);
}

.testimonial-info span {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
}

/* ----- Features/Benefits ----- */
.feature-box {
    text-align: center;
    padding: var(--spacing-2xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--fs-3xl);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.feature-box h4 {
    margin-bottom: var(--spacing-sm);
}

.feature-box p {
    color: var(--color-gray-600);
    margin: 0;
}

/* ----- CTA Section ----- */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-4xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    font-size: var(--fs-lg);
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

/* ----- Footer ----- */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    position: relative;
    z-index: 1031;
}

.footer h5 {
    color: var(--color-white);
    font-size: var(--fs-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 80px;
    margin-bottom: var(--spacing-lg);
}

.footer p {
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-contact i {
    color: var(--color-secondary);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--fs-lg);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* Footer Sedes */
.footer-sedes h4 {
    font-weight: 600;
}

.sede-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all var(--transition-base);
    border: 1px solid rgba(255,255,255,0.1);
}

.sede-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.sede-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--color-white);
}

.sede-card h5 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sede-badge {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.sede-card p:last-of-type {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.sede-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.sede-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.sede-maps-hint {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sede-card:hover .sede-maps-hint {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .sede-card {
        padding: 1.25rem;
    }

    .sede-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    text-align: center;
    font-size: var(--fs-sm);
}

/* ----- WhatsApp Float Button ----- */
/* Inscríbete Float Button */
.inscribete-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: var(--z-fixed);
    cursor: pointer;
    transition: all var(--transition-base);
    animation: bounceIn 1s ease-out, waveHand 2.5s ease-in-out infinite 1s;
}

.inscribete-float img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
    transition: all var(--transition-base);
}

.inscribete-float:hover {
    transform: scale(1.1);
}

.inscribete-float:hover img {
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4));
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes waveHand {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    30% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60%, 100% {
        transform: rotate(0deg);
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 32px;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--color-white);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ----- Modal Styles ----- */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-header {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
    position: relative;
    z-index: 10;
}

.modal-header .btn-close:hover {
    opacity: 0.75;
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
}

/* Historia Modal */
#historiaModal .modal-body {
    padding: 0;
}

.historia-header {
    position: relative;
}

.historia-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.historia-header-overlay h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.historia-section h4 {
    border-bottom: 2px solid var(--color-gray-200);
    padding-bottom: 0.75rem;
}

.valor-item {
    transition: all var(--transition-fast);
}

.valor-item:hover {
    background: var(--color-primary) !important;
    color: var(--color-white);
}

.valor-item:hover i,
.valor-item:hover h6 {
    color: var(--color-white) !important;
}

@media (max-width: 767.98px) {
    .historia-header-overlay h2 {
        font-size: 1.2rem;
    }

    #historiaModal .p-lg-5 {
        padding: 1.5rem !important;
    }
}

/* Form in construction notice */
.form-notice {
    background: var(--color-gray-100);
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-sm);
}

.form-notice i {
    color: var(--color-primary);
    margin-right: var(--spacing-sm);
}

.form-control:disabled {
    background-color: var(--color-gray-100);
    cursor: not-allowed;
}

/* ----- CONOCER Badge ----- */
.conocer-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.conocer-badge img {
    height: 24px;
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: var(--fs-5xl);
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: var(--fs-4xl);
    }

    .hero-stats {
        gap: var(--spacing-xl);
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero {
        min-height: 70vh;
        text-align: center;
    }

    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-subtitle {
        font-size: var(--fs-base);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-lg);
    }

    .hero-stat {
        flex: 0 0 45%;
    }

    .stats-bar {
        margin-top: 0;
        border-radius: 0;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-gray-200);
        padding: var(--spacing-md);
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .hero-stat {
        flex: 0 0 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* ----- AOS Custom Animations ----- */
/* Las animaciones se manejan directamente por la librería AOS */

/* Fade animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Loading Skeleton ----- */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   PÁGINAS INTERNAS
   ===================================================== */

/* ----- Page Hero ----- */
.page-hero {
    position: relative;
    padding: 180px 0 80px;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 88, 161, 0.95) 0%, rgba(29, 42, 85, 0.9) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .breadcrumb {
    margin-bottom: 1rem;
}

.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-hero .breadcrumb-item a:hover {
    color: #fff;
}

.page-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

/* ----- Filter Buttons ----- */
.btn-filter {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--color-gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(61, 88, 161, 0.05);
}

.btn-filter.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.btn-filter .badge {
    font-size: 0.7rem;
}

/* ----- Program Card Full ----- */
.program-card-full {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card-full:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.program-card-full .program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-card-full .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card-full:hover .program-image img {
    transform: scale(1.1);
}

.program-card-full .program-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-card-full .program-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--color-warning);
    color: var(--color-gray-900);
}

.program-card-full .program-body {
    padding: 1.5rem;
    flex: 1;
}

.program-card-full .program-body h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.program-card-full .program-body p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.program-card-full .program-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.program-card-full .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-gray-600);
}

.program-card-full .detail-item i {
    color: var(--color-primary);
}

.program-card-full .program-features h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
}

.program-card-full .program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-card-full .program-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--color-gray-600);
    margin-bottom: 0.35rem;
}

.program-card-full .program-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.program-card-full .program-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* Program Badge Colors */
.badge-doctorado {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
}

.badge-maestria {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: #fff;
}

.badge-licenciatura {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}

.badge-tecnico {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

/* ----- Section Header Alignment ----- */
.section-header.text-start {
    text-align: left;
    max-width: none;
}

.section-header.text-start::after {
    display: none;
}

/* ----- Responsive Internal Pages ----- */
@media (max-width: 991.98px) {
    .page-hero {
        padding: 140px 0 60px;
        min-height: 280px;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 120px 0 50px;
        min-height: 250px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .btn-filter {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .btn-filter .badge {
        display: none;
    }

    .program-card-full .program-image {
        height: 180px;
    }
}

/* =====================================================
   TESTIMONIOS SLIDER + FACEBOOK FEED ROW
   ===================================================== */

/* ----- Section Header Left (para columnas) ----- */
.section-header-left {
    text-align: center;
}

.section-header-left .subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.section-header-left h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.section-header-left .lead {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ----- Testimonios Section ----- */
.testimonios-section {
    display: flex;
    flex-direction: column;
}

/* Testimonial Slide */
.testimonial-slide {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    margin-bottom: 1rem;
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.3;
}

.testimonial-slide .testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-gray-700);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-slide .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.testimonial-slide .testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.testimonial-slide .testimonial-info h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.testimonial-slide .testimonial-info span {
    font-size: 0.85rem;
    color: var(--color-gray-600);
}

/* Carousel Indicators Custom */
#testimoniosCarousel .carousel-indicators {
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
}

#testimoniosCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-gray-400);
    border: none;
    margin: 0 5px;
    opacity: 1;
    transition: all 0.3s ease;
}

#testimoniosCarousel .carousel-indicators button.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* ----- Facebook Feed Scroll ----- */
.fb-posts-scroll {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.fb-posts-scroll::-webkit-scrollbar {
    width: 6px;
}

.fb-posts-scroll::-webkit-scrollbar-track {
    background: var(--color-gray-200);
    border-radius: 3px;
}

.fb-posts-scroll::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 3px;
}

.fb-posts-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Ajustar fb-feed para el nuevo layout */
.fb-feed {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.fb-feed .fb-feed-header {
    flex-shrink: 0;
    padding: 1rem;
}

.fb-feed .fb-feed-header .fb-page-pic {
    width: 45px;
    height: 45px;
}

.fb-feed .fb-feed-header h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.fb-feed .fb-feed-footer {
    flex-shrink: 0;
    padding: 1rem;
    text-align: center;
}

.fb-posts-scroll .fb-post {
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem;
    overflow: hidden;
}

.fb-posts-scroll .fb-post:last-child {
    border-bottom: none;
}

.fb-posts-scroll .fb-post-image {
    margin: 0 -1rem;
    overflow: hidden;
}

.fb-posts-scroll .fb-post-image img {
    max-height: 150px;
    width: 100%;
    object-fit: cover;
}

.fb-posts-scroll .fb-post-message {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fb-posts-scroll .fb-post-header {
    margin-bottom: 0.5rem;
}

.fb-posts-scroll .fb-post-header strong {
    font-size: 0.85rem;
}

.fb-posts-scroll .fb-avatar {
    width: 35px;
    height: 35px;
}

.fb-posts-scroll .fb-post-stats {
    font-size: 0.8rem;
    padding-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .testimonial-slide {
        min-height: auto;
        padding: 1.5rem;
    }

    .testimonial-slide .testimonial-text {
        font-size: 1rem;
    }

    .fb-posts-scroll {
        max-height: 400px;
    }
}

@media (max-width: 767.98px) {
    .testimonios-section h2 {
        font-size: 1.5rem;
    }

    .testimonial-slide {
        padding: 1.25rem;
    }

    .testimonial-slide .testimonial-text {
        font-size: 0.95rem;
    }

    .fb-posts-scroll {
        max-height: 350px;
    }
}

/* =====================================================
   NUEVA OFERTA EDUCATIVA - Galerías Modernas
   ===================================================== */

/* Program Card Premium */
.program-card-premium {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Bachillerato Card especial */
.bachillerato-card {
    border: 2px solid #6f42c1;
    border-top: 5px solid #6f42c1;
}

.bachillerato-img {
    height: 100%;
    overflow: hidden;
}

.bachillerato-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.bachillerato-card:hover .bachillerato-img img {
    transform: scale(1.05);
}

.badge-bachillerato {
    background: linear-gradient(135deg, #6f42c1, #5a32a3) !important;
    color: var(--color-white) !important;
}

.bachillerato-features {
    padding-top: 0.75rem;
    border-top: 1px dashed var(--color-gray-200);
}

.bachillerato-features .feature-check {
    font-size: 0.9rem;
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.bachillerato-features .feature-check i {
    font-size: 1rem;
}

/* Gallery Carousel dentro de la card */
.program-gallery {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.program-gallery .carousel,
.program-gallery .carousel-inner,
.program-gallery .carousel-item {
    height: 100%;
}

/* Usando div con background-image para mejor control de posicionamiento */
.program-gallery .carousel-img {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.program-card-premium:hover .program-gallery .carousel-item.active .carousel-img {
    transform: scale(1.05);
}

/* Indicadores del carousel */
.program-gallery .carousel-indicators {
    margin-bottom: 0.5rem;
}

.program-gallery .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0 4px;
    transition: all var(--transition-fast);
}

.program-gallery .carousel-indicators button.active {
    background-color: var(--color-white);
    width: 24px;
    border-radius: 4px;
}

/* Controles del carousel */
.program-gallery .carousel-control-prev,
.program-gallery .carousel-control-next {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all var(--transition-fast);
}

.program-card-premium:hover .carousel-control-prev,
.program-card-premium:hover .carousel-control-next {
    opacity: 1;
}

.program-gallery .carousel-control-prev {
    left: 12px;
}

.program-gallery .carousel-control-next {
    right: 12px;
}

.program-gallery .carousel-control-prev-icon,
.program-gallery .carousel-control-next-icon {
    width: 16px;
    height: 16px;
    filter: invert(1) grayscale(100) brightness(0.3);
}

/* Badge de categoría sobre la imagen */
.program-badge-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-categoria {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.badge-licenciatura {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-conocer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.badge-certificacion {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    font-size: 0.7rem;
}

/* Contenido de la card */
.program-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.program-content .program-description {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* Info pills */
.program-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-gray-700);
}

.info-pill i {
    color: var(--color-primary);
    font-size: 0.75rem;
}

.info-pill.pill-rvoe {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.info-pill.pill-rvoe i {
    color: #28a745;
}

/* Botón de acción */
.program-action {
    margin-top: auto;
}

.btn-programa {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-programa-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
}

.btn-programa-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1e3057 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 88, 161, 0.4);
}

.btn-programa-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
}

.btn-programa-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Section divider */
.oferta-section-divider {
    text-align: center;
    margin: 4rem 0 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.oferta-section-divider::before,
.oferta-section-divider::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary));
    max-width: 200px;
}

.oferta-section-divider::after {
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.oferta-section-divider .divider-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-white);
    padding: 0 1rem;
}

.oferta-section-divider h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.oferta-section-divider .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(61, 88, 161, 0.3);
}

/* Responsive */
@media (max-width: 991.98px) {
    .program-gallery {
        height: 240px;
    }

    .program-gallery .carousel-img {
        height: 240px;
    }

    .program-content h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 767.98px) {
    .program-gallery {
        height: 220px;
    }

    .program-content {
        padding: 1.25rem;
    }

    .program-content h3 {
        font-size: 1.1rem;
    }

    .program-info-pills {
        gap: 6px;
    }

    .info-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .oferta-section-divider {
        flex-direction: column;
        gap: 0;
    }

    .oferta-section-divider::before,
    .oferta-section-divider::after {
        display: none;
    }

    .oferta-section-divider h3 {
        font-size: 1.25rem;
    }

    .oferta-section-divider .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .program-gallery {
        height: 200px;
    }

    .badge-categoria {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .program-content {
        padding: 1rem;
    }
}

/* =====================================================
   CERTIFICACIONES CONOCER CARDS (Solo evaluación)
   ===================================================== */

.cert-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cert-card:hover .cert-img img {
    transform: scale(1.05);
}

/* Imagen de la certificación */
.cert-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-categoria {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--color-white);
    z-index: 2;
}

.cert-salud .cert-categoria {
    background: #009688;
}

.cert-seguridad .cert-categoria {
    background: #D32F2F;
}

.cert-educacion .cert-categoria {
    background: #FF9800;
}

/* Body */
.cert-body {
    padding: 1rem 1.5rem;
    flex: 1;
}

.cert-codigo {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-500);
    background: var(--color-gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cert-body h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.cert-body p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cert-meta span {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cert-meta span i {
    color: var(--color-primary);
}

/* Footer con botones */
.cert-footer {
    padding: 1rem 1.5rem;
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    gap: 0.75rem;
}

.btn-cert-pdf,
.btn-cert-info {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-cert-pdf {
    background: #D32F2F;
    color: var(--color-white);
    border: 1px solid #D32F2F;
}

.btn-cert-pdf:hover {
    background: #B71C1C;
    border-color: #B71C1C;
    color: var(--color-white);
}

.btn-cert-info {
    background: #25D366;
    color: var(--color-white);
    border: 1px solid #25D366;
}

.btn-cert-info:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: var(--color-white);
}

/* Responsive para cert-cards */
@media (max-width: 991.98px) {
    .cert-card {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .cert-header {
        padding: 1.25rem 1.25rem 0;
    }

    .cert-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .cert-body {
        padding: 1rem 1.25rem;
    }

    .cert-body h4 {
        font-size: 1rem;
    }

    .cert-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
    }

    .btn-cert-pdf,
    .btn-cert-info {
        width: 100%;
    }
}

/* Elfsight Instagram - ocultar título */
.eapps-instagram-feed-title-container {
    display: none !important;
}
