/* Footer Styles */
.modal-footer {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,255,255,0.1) 100%);
    border-top: 2px solid rgba(0,255,255,0.4);
    padding: 30px 40px 40px 40px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    margin-top: 20px;
}

.modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan-footer 4s linear infinite;
}

@keyframes scan-footer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 25px;
}

.footer-section h4 {
    color: #00ffff;
    font-size: 1.2em;
    margin-bottom: 18px;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
    font-weight: 700;
}

.footer-section p,
.footer-section li {
    color: rgba(255,255,255,0.8);
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 10px;
}

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

.footer-section li {
    position: relative;
    padding-left: 15px;
}

.footer-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00ffff;
    font-size: 0.8em;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    border-color: #00ffff;
    background: rgba(0,255,255,0.1);
    box-shadow: 0 0 20px rgba(0,255,255,0.5);
    transform: scale(1.1) rotate(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,255,255,0.2);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8em;
    margin: 0;
}

.footer-logo {
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
}

/* Attribution Section */
.attribution-section {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(0,255,255,0.2);
    padding: 15px 30px;
    text-align: center;
}

.attribution-section p {
    color: rgba(255,255,255,0.5);
    font-size: 0.75em;
    margin: 5px 0;
    line-height: 1.4;
}

.attribution-section a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.attribution-section a:hover {
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .modal-footer {
        padding: 25px;
        min-height: 180px;
    }

    .footer-section h4 {
        font-size: 1.1em;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.9em;
    }

    .social-links {
        justify-content: center;
    }

    .attribution-section {
        padding: 15px 25px;
    }

    .attribution-section p {
        font-size: 0.75em;
    }

    .quick-facts {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .fact-item {
        padding: 10px;
    }

    .fact-value {
        font-size: 1em;
    }

    .fact-label {
        font-size: 0.8em;
    }
}

/* Interactive Elements */
.interactive-stat {
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 8px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-stat:hover {
    background: rgba(0,255,255,0.2);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0,255,255,0.4);
    transform: translateX(3px);
}

.stat-number {
    color: #00ffff;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    margin-top: 4px;
}

/* Quick Facts */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.fact-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.fact-item:hover {
    border-color: #00ffff;
    background: rgba(0,255,255,0.1);
    transform: translateY(-2px);
}

.fact-value {
    color: #00ffff;
    font-weight: 700;
    font-size: 1.1em;
    display: block;
}

.fact-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85em;
    margin-top: 4px;
}

/* Contact Info */
.contact-info {
    background: rgba(0,255,255,0.05);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85em;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    color: #00ffff;
    width: 16px;
    text-align: center;
}

/* Animated Background Elements */
.footer-bg-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    animation: rotate-slow 20s linear infinite;
    pointer-events: none;
}

.footer-bg-element::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate-fast 10s linear infinite reverse;
}

@keyframes rotate-slow {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes rotate-fast {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Specialized Info Sections */
.specialized-info {
    margin-top: 20px;
    border-top: 1px solid rgba(0,255,255,0.2);
    padding-top: 20px;
}

/* Production Chains Table */
.production-chains-table {
    overflow-x: auto;
    margin-top: 15px;
}

.chains-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

.chains-table th,
.chains-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0,255,255,0.2);
}

.chains-table th {
    background: rgba(0,255,255,0.2);
    color: #00ffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
}

.chains-table td {
    color: rgba(255,255,255,0.9);
    font-size: 0.95em;
}

.chains-table .totals-row {
    background: rgba(0,255,255,0.1);
    border-top: 2px solid rgba(0,255,255,0.4);
}

.chains-table .percentage-row {
    background: rgba(0,255,255,0.15);
    color: #00ffff;
}

.chains-table tr:hover {
    background: rgba(0,255,255,0.05);
}

/* Water Management List */
.water-management-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.water-management-list li {
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
    position: relative;
    padding-left: 40px;
}

.water-management-list li:before {
    content: "💧";
    position: absolute;
    left: 15px;
    top: 12px;
}

.water-management-list li:hover {
    background: rgba(0,255,255,0.15);
    border-color: rgba(0,255,255,0.4);
}

/* Organizations List */
.organizations-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.organizations-list li {
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
    position: relative;
    padding-left: 40px;
}

.organizations-list li:before {
    content: "🏢";
    position: absolute;
    left: 15px;
    top: 12px;
}

.organizations-list li:hover {
    background: rgba(0,255,255,0.15);
    border-color: rgba(0,255,255,0.4);
}

/* IMOX Section */
.imox-info {
    background: rgba(0,255,255,0.1);
    border: 2px solid rgba(0,255,255,0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.imox-info:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #9B59B6, #FF6B35);
}

.imox-title {
    color: #00ffff;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
}

.imox-description {
    color: rgba(255,255,255,0.9);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.imox-info:hover {
    background: rgba(0,255,255,0.15);
    border-color: rgba(0,255,255,0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Responsive para nuevas secciones */
@media (max-width: 768px) {
    .chains-table th,
    .chains-table td {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    .water-management-list li,
    .organizations-list li {
        padding: 10px 12px;
        padding-left: 35px;
        font-size: 0.9em;
    }

    .water-management-list li:before,
    .organizations-list li:before {
        left: 12px;
        top: 10px;
        font-size: 0.9em;
    }

    .imox-info {
        padding: 15px;
        margin: 10px 0;
    }

    .imox-title {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .imox-description {
        font-size: 0.9em;
        line-height: 1.5;
    }
}
