/* ============================================
   ESTILOS DEL FOOTER - VERSIÓN MEJORADA
   ============================================ */

/* Asegura que html y body ocupen toda la altura */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Contenedor que envuelve todo */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El contenido principal crece para empujar el footer hacia abajo */
main {
    flex: 1;
    padding: 20px;
}

/* ============================================
   FOOTER PRINCIPAL
   ============================================ */

footer {
    background: linear-gradient(135deg, #045b75 0%, #045b75 100%) !important;
    color: white;
    text-align: center;
    padding: 20px 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    position: relative;
    width: 100%;
}

/* Efecto de borde superior */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.3), #ffffff);
}

/* Contenido del footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Secciones del footer */
.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* Enlaces del footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Texto del copyright */
.footer-copyright {
    text-align: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Iconos sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* Footer fijo en la parte inferior (alternativa) */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Footer con efecto de scroll */
.footer-scroll {
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.footer-scroll:hover {
    opacity: 1;
}

/* ============================================
   VERSIÓN SIMPLIFICADA (si no quieres secciones)
   ============================================ */

.footer-simple {
    background: linear-gradient(135deg, #3FC8EC 0%, #1a9bc2 100%);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.footer-simple a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-simple a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    footer {
        padding: 15px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-section h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    main {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
}

/* ============================================
   EFECTO DE APARICIÓN
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    animation: fadeInUp 0.5s ease;
}

/* ============================================
   FOOTER CON FONDO OSCURO (alternativa)
   ============================================ */

.footer-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.footer-dark::before {
    background: linear-gradient(90deg, #3498db, rgba(52, 152, 219, 0.3), #3498db);
}