.modern-footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.content-spacer {
    flex: 1;
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Add Section Button */
.add-section-button {
    margin-top: 1.5rem;
    background: rgba(100, 181, 246, 0.15) !important;
    border: 2px dashed rgba(255, 255, 255, 0.3) !important;
    text-align: center;
    transition: all 0.3s ease;
}

.add-section-button:hover {
    background: rgba(100, 181, 246, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-5px);
}

.add-section-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.add-section-link i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-section-link span {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-section-link:hover i {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Admin Edit Controls */
.footer-section-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.footer-section-wrapper .admin-controls {
    position: absolute;
    right: 5px;
    top: 5px;
    display: flex;
    gap: 5px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Estilos específicos para controles de administrador en elementos de la lista footer-nav */
.footer-nav li.footer-section-wrapper .admin-controls {
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.footer-section-wrapper:hover .admin-controls {
    opacity: 1;
}

.footer-section-wrapper .admin-edit-btn,
.footer-section-wrapper .admin-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section-wrapper .admin-edit-btn {
    background-color: #4CAF50;
}

.footer-section-wrapper .admin-edit-btn:hover {
    background-color: #3d8b40;
    transform: scale(1.1);
}

.footer-section-wrapper .admin-delete-btn {
    background-color: #f44336;
}

.footer-section-wrapper .admin-delete-btn:hover {
    background-color: #d32f2f;
    transform: scale(1.1);
}

.footer-bottom-item-wrapper {
    position: relative;
    display: inline-block;
}

.footer-bottom-item-wrapper .admin-controls {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-bottom-item-wrapper:hover .admin-controls {
    opacity: 1;
}

/* Estilos específicos para botones en footer-bottom */
.footer-bottom-item-wrapper .admin-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f44336;
}

.footer-bottom-item-wrapper .admin-delete-btn:hover {
    background-color: #d32f2f;
    transform: scale(1.1);
}

/* Estilos para el wrapper en enlaces sociales */
.social-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

/* Footer Moderno */
.modern-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="60" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 0rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo-container img {
    max-width: 250px;
    height: auto;
    filter: brightness(1.1);
}

/* Navigation Menu */
.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0; /* Remove default padding */
    text-align: center; /* Center the list items */
}

.footer-nav li {
    transform: translateX(-10px);
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
    position: relative;
}

/* Estilos específicos para los controles de administrador en los enlaces de footer */
.footer-nav li.footer-section-wrapper .admin-controls {
    top: -10px;
    right: -10px;
}

/* Estilos específicos para los controles de administrador en elementos de emergency-contacts */
.emergency-contacts li.footer-section-wrapper {
    position: relative;
}

.emergency-contacts li.footer-section-wrapper .admin-controls {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.emergency-contacts li.footer-section-wrapper:hover .admin-controls {
    opacity: 1;
}

.footer-nav li:nth-child(1) { animation-delay: 0.1s; }
.footer-nav li:nth-child(2) { animation-delay: 0.2s; }
.footer-nav li:nth-child(3) { animation-delay: 0.3s; }
.footer-nav li:nth-child(4) { animation-delay: 0.4s; }

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    color: #64b5f6;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    color: #64b5f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Emergency Section */
.emergency-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Enhanced Emergency Card */
.emergency-card {
    background: rgba(255, 87, 51, 0.25);
    border: 2px solid rgba(255, 87, 51, 0.4);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    color: #fff;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.emergency-card:hover {
    background: rgba(255, 87, 51, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.emergency-card h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.emergency-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emergency-contacts li {
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.emergency-contacts li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.emergency-contacts li strong {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
    display: block;
}

/* Estilos para el botón de agregar elemento a la lista */
.add-list-item-wrapper {
    text-align: center;
    margin-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.add-list-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.add-list-item i {
    margin-right: 5px;
    font-size: 0.9em;
}

.add-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.emergency-card img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

/* Enhanced DeclaraNet Card */
.declaranet-card {
    background: rgba(100, 181, 246, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(100, 181, 246, 0.4);
    line-height: 1.6;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.declaranet-card:hover {
    background: rgba(100, 181, 246, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.declaranet-card a {
    width: 100%;
    display: flex;
    justify-content: center;
}

.declaranet-card img {
    width: 95%;  /* Increased from 85% */
    max-height: 80px;  /* Control the height to make it wider than tall */
    object-fit: contain;  /* Preserve aspect ratio */
}

.map-container {
    background: rgba(100, 181, 246, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(100, 181, 246, 0.4);
    line-height: 1.6;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.map-container:hover {
    background: rgba(100, 181, 246, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 15px;
    filter: grayscale(20%) contrast(120%);
}

/* Enhanced Contact Info */
.contact-info {
    background: rgba(100, 181, 246, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(100, 181, 246, 0.4);
    line-height: 1.6;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info:hover {
    background: rgba(100, 181, 246, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    font-size: 1rem;
    opacity: 0.95;
    position: relative;
    margin-bottom: 1.25rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-block;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(100, 181, 246, 0.4);
    padding-bottom: 0.1rem;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.50rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.85rem;
    margin-bottom: 0.50rem;
}

/* Last paragraph in the footer needs no margin */
.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* Lista de Enlaces Inline */
.list-inline-footer {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.list-inline-item-footer {
    display: inline-block;
    position: relative;
}

.list-inline-item-footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.list-inline-item-footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #64b5f6;
    transition: width 0.3s ease;
}

.list-inline-item-footer a:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.list-inline-item-footer a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.8s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.2s; }
.footer-column:nth-child(2) { animation-delay: 0.4s; }
.footer-column:nth-child(3) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 992px) {
    .footer-container {
        padding: 2rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .logo-container {
        padding: 1.5rem;
    }
    
    .logo-container img {
        max-width: 200px;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .list-inline-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .list-inline-item-footer a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Section separators for mobile */
    .footer-column {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .logo-section, .emergency-section, .contact-section {
        position: relative;
        padding-bottom: 1.5rem;
        width: 100%;
    }
    
    .footer-social {
        margin-bottom: 1rem;
    }
}

/* Prominent Phone Number */
.footer-phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.contact-info:hover .footer-phone-number {
    transform: scale(1.05);
    color: #fff;
}