:root {
    /* Paleta de colores principal */
    --marian-blue: #1E3A8A;
    --marian-blue-light: #576fb3;
    --penn-blue: #0B1F50;
    --citrine: #EDCF1C;
    
    /* Variables para el tema oscuro */
    --dark-bg-primary: var(--penn-blue);
    --dark-bg-secondary: #1f3b8a;
    --dark-bg-tertiary: var(--marian-blue);
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #e0e0e0;
    --dark-text-tertiary: #cfcfcf;
    --dark-text-muted: #a0a0a0;
    --dark-accent: var(--citrine);
    --dark-border: #2a4073;
    --dark-card-bg: rgba(30, 58, 138, 0.2);
    --dark-input-bg: rgba(255, 255, 255, 0.1);
    --dark-black: #07091a;
}

/* Base Styles */
html {
    height: 100vh;
    width: 100%;
}

body {
    background-color: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

/* Utility Classes */
.section-full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.border-color-icp{
    border-color: var(--citrine) !important;
}

.btn-icp{
    color: var(--citrine) !important;
    border: 1px solid var(--citrine) !important;
}

.btn-icp:hover{
    color: var(--dark-bg-secondary) !important;
    background-color: var(--citrine) !important;
}

.form-control:disabled, .form-control[readonly] {
    background-color: transparent !important;
    opacity: 1;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: var(--dark-bg-secondary) !important;
    background-color: var(--citrine);
}

#pills-home-tab{
    color: var(--citrine);
    border: 1px solid var(--citrine) !important;
}

#pills-profile-tab {
    color: var(--citrine);
    border: 1px solid var(--citrine) !important;
}

.color-dark {
    color: var(--dark-bg-tertiary) !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column{
    flex-direction: column;
}

.visible {
    display: flex !important;
}

.pointered:hover {
    cursor: pointer;
}

.transition-effect {
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--penn-blue), var(--marian-blue)) !important;
    border-bottom: 2px solid var(--dark-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 0.725rem 0 !important;
}

.navbar-brand {
    padding: 0;
}

.navbar-logo {
    height: 50px;
    padding: 0;
}

.navbar-container {
    background-color: transparent !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--dark-text-secondary);
    background-color: transparent;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--dark-accent);
}

.dropdown-menu-dark {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

.dropdown-item {
    color: var(--dark-text-secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--dark-black);
    color: var(--dark-accent);
}

/* Hero Section */
#hero {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-video.playing {
    opacity: 1;
}

.placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.placeholder-img.hidden {
    display: none;
}

.hero_mask {
    display: block;
    height: 100vh;
    position: absolute;
    width: 50%;
    z-index: 1;
    left: 0;
}

#hero-title {
    opacity: 0;
    font-size: 2rem;
    transform: translateX(100px);
}

#hero-subtitle {
    font-size: 1rem;
}

.hero-container {
    z-index: 2;
    background-color: transparent !important;
}

/* Scroll Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--dark-text-primary);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 6px;
    height: 10px;
    background-color: var(--dark-accent);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--dark-accent);
    border-bottom: 2px solid var(--dark-accent);
    transform: rotate(45deg);
    margin: 2px 0;
    animation: arrow-pulse 1.5s infinite;
}

.arrow-down:nth-child(2) {
    animation-delay: 0.3s;
}

/* Sections */
#services,
#contact {
    background-color: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary);
}

#features {
    background-color: var(--dark-bg-secondary) !important;
    color: var(--dark-text-primary);
}

/* Footer Styles - Sección corregida */
.footer-area {
    position: relative;
    z-index: 1;
    color: #fff;
}

.footer-main {
    background: linear-gradient(145deg, var(--penn-blue), var(--marian-blue));
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(237, 207, 28, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.footer-info {
    text-align: left;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-img {
    height: 5rem !important;
}

.footer-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 10px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.widget-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--dark-accent);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sedes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.sede-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.sede-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(237, 207, 28, 0.3);
}

.sede-title {
    color: var(--dark-accent);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sede-title i {
    font-size: 14px;
    color: var(--dark-accent);
}

.sede-address {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.sede-phone {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sede-phone::before {
    content: '\f095';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--dark-accent);
    font-size: 12px;
}


.contact-general-title {
    color: var(--dark-accent) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.contact-info li:hover {
    transform: translateX(5px);
}

.contact-info .icon {
    color: var(--dark-accent);
    font-size: 14px;
    margin-right: 12px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info .text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    background: var(--dark-black);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.footer-social {
    text-align: right;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--dark-accent);
    color: var(--dark-bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.xtwitter {
    width: 16px;
    height: 16px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sedes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-main {
        padding: 50px 0 30px;
    }
}

@media (max-width: 767px) {
    .sedes-container {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .copyright-text {
        text-align: center;
    }
    
    .sede-info {
        padding: 15px;
    }
    
    .widget-title {
        font-size: 18px;
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .footer-logo img {
        max-width: 150px;
    }
    
    .sede-title {
        font-size: 14px;
    }
    
    .sede-address,
    .sede-phone {
        font-size: 12px;
    }
    
    .contact-info .text {
        font-size: 13px;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.footer-links li a i {
    color: var(--dark-accent);
    margin-right: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links li a:hover i {
    color: #fff;
}

/* Social Media */
.footer-social {
    margin-top: 20px;
}

.social-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Forms */
.form-control {
    background-color: var(--dark-input-bg);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--dark-accent);
    box-shadow: 0 0 0 0.25rem rgba(237, 207, 28, 0.25);
    color: var(--dark-text-primary);
}

.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-text-primary);
    border-radius: 8px;
    padding-right: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23edcf1c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-position: right 0.75rem center;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--dark-accent);
    box-shadow: 0 0 0 0.25rem rgba(237, 207, 28, 0.25);
    color: var(--dark-text-primary);
}

.form-select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--dark-accent);
}

.form-select option {
    background-color: var(--dark-bg-primary);
    color: var(--dark-text-primary);
    padding: 10px;
}

/* Buttons */
.btn-primary {
    background-color: var(--marian-blue);
    border-color: var(--marian-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2a4073;
    border-color: #2a4073;
}

.btn-secondary {
    background-color: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

.btn-accent {
    background-color: var(--citrine);
    border-color: var(--citrine);
    color: var(--dark-bg-primary);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #d9bc19;
    border-color: #d9bc19;
    color: var(--dark-bg-primary);
}

/* Links */
a {
    color: var(--dark-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: #d9bc19;
}

/* Tables */
.table {
    color: var(--dark-text-primary);
    border-color: var(--dark-border);
}

.table-dark {
    background-color: var(--dark-bg-secondary);
}

.table-striped > tbody > tr > * {
    color: var(--dark-text-primary) !important;
    text-align: left !important;
}

/* Cards */
.card,
.login-card,
.container-glass {
    background: rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Utility Classes */
.border {
    border-color: var(--dark-border) !important;
}

.text-muted {
    color: var(--dark-text-muted) !important;
}

.hover-effect:hover {
    border-color: var(--dark-accent);
}

/* Sidebar */
.sidebar {
    background-color: var(--dark-bg-secondary);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: var(--dark-text-secondary);
    transition: color 0.3s ease;
}

.sidebar .nav-link:hover {
    color: var(--dark-accent);
}

.sidebar .nav-link.active {
    color: var(--dark-accent);
}

/* Loading */
.conteneur_general_load_9 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Calendar */
.fc-toolbar-title {
    text-transform: capitalize;
}

.fc-daygrid-event-harness {
    background-color: #0a58ca;
    border: 1px solid whitesmoke;
    border-radius: 5px;
}

.fc-daygrid-event-harness:hover {
    cursor: pointer !important;
}

.fc-col-header-cell-cushion {
    text-transform: capitalize;
    text-decoration: none;
}

.fc-daygrid-day-number {
    text-decoration: none;
    font-weight: bold;
}

.fc-event {
    color: #cdcdd9;
    transition: color 0.3s ease;
}

.fc-event:hover {
    color: white;
}

/* Fieldset */
fieldset {
    padding: 0 2rem;
    border: 1px solid #ced4da;
    border-radius: 7px;
}

legend {
    display: block;
    width: auto;
    float: none;
    font-size: inherit;
    font-weight: bold;
    line-height: 1.5;
}

/* Animations */
@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes arrow-pulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceY {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    }
}

@keyframes load_neuf {
    0%, 80%, 100% {
        box-shadow: 0 0 #6E6E6E;
        height: 80px;
        background: #6E6E6E;
    }
    40% {
        box-shadow: 0 -15px #0059ff;
        height: 100px;
        background: #0059ff;
    }
}

/* Course Cards */
.course-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.course-card:nth-child(2) {
    animation-delay: 0.2s;
}

.course-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Media Queries */
@media (min-width: 576px) {
    .hero_mask {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }

    .hero_mask {
        display: block !important;
        height: 100vh;
        object-fit: fill;
    }

    #hero-title {
        font-size: 3rem;
    }
    
    #hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .footer-legal {
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .footer-links li a {
        font-size: 13px;
    }
    
    .footer-legal {
        gap: 15px;
    }
    
    .footer-legal a {
        font-size: 12px;
    }
}
