.footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0 15px;
    margin-top: 50px;
    border-top: 3px solid #495057;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer .col-md-4 {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.footer .text-center {
    text-align: center;
}

.footer .text-end {
    text-align: right;
}

.footer h5 {
    color: #f8f9fa;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer p {
    color: #adb5bd;
    margin-bottom: 10px;
    line-height: 1.5;
}

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

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffffff;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-links a:last-child {
    margin-right: 0;
}

/* Theme Switcher Styles - Ahora en el lado derecho */
.theme-switcher {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.theme-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn i {
    font-size: 1.1em;
}

/* Asegurar que la columna derecha esté alineada a la derecha */
.footer .row .col-md-4:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Estilos específicos para la disposición de las columnas */
.footer .row .col-md-4:first-child {
    justify-content: flex-start;
}

.footer .row .col-md-4:nth-child(2) {
    justify-content: center;
}

.footer .row .col-md-4:last-child {
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer .col-md-4 {
        flex: 100%;
        text-align: center;
        justify-content: center !important;
    }
    
    .footer .text-end {
        text-align: center;
    }
    
    .theme-switcher {
        justify-content: center;
        margin: 15px 0;
    }
    
    .theme-toggle-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .footer .row .col-md-4:last-child {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
}

/* Dark theme styles for footer */
body.dark-theme .footer {
    background-color: #1a1a1a;
    border-top-color: #333;
}

body.dark-theme .footer h5 {
    color: #e9ecef;
}

body.dark-theme .footer p {
    color: #ced4da;
}

body.dark-theme .footer a {
    color: #ced4da;
}

body.dark-theme .footer a:hover {
    color: #ffffff;
}