/* =============================================
   ESTILOS PARA HEADER Y FOOTER
   ============================================= */

/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #fff;
    --bg-dark: #1a252f;
    --bg-light: #f8f9fa;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

/* Barra de anuncios */
.announcement-bar {
    background-color: #2c3e50;
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.9rem;
    text-align: center;
}

.announcement-bar a {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: underline;
}

.announcement-bar a:hover {
    opacity: 0.9;
}

/* Header principal */
.main-header {
    background-color: var(--text-light);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: auto;
    max-width: 60px;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.5rem;
}

/* Navegación principal */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 10px;
}

.nav-list a {
    color: var(--dark-color);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* Botones de acción */
.header-actions {
    display: flex;
    align-items: center;
}

.btn-donate {
    background-color: #2c3e50;
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-left: 15px;
    transition: var(--transition);
}

.btn-donate:hover {
    background-color: #6182a2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    padding: 5px;
}

/* Menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--text-light);
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-list a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    color: var(--secondary-color);
    background-color: #f5f5f5;
}

.mobile-nav-list .btn-donate {
    display: inline-block;
    margin: 20px;
    text-align: center;
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 50px;
}

.footer-top {
    padding-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}
.footer-logo{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo span {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-light);
    margin-left: 10px;
    font-size: 1.3rem;
}

.footer-logo img {
    height: auto;
    max-width: 60px;
    

}

.footer-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.service-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
}

.btn-subscribe {
    background-color: #2c3e50;
    color: var(--text-light);
    border: none;
    padding: 15px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe:hover {
    background-color: #2980b9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: #2c3e50;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #bbb;
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    color: #bbb;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--text-light);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    color: var(--text-light);
}

/* Botón de ir arriba */
.back-to-top {
    margin-right: 50px;
    position: fixed;
    bottom: 100px;
    right: 50px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-list li {
        margin: 0 5px;
    }
    
    .nav-list a {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo-text {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
    }
    
    .footer-legal {
        margin-top: 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 80px;
        right: 20px;
    }
}