/* ========================================
   FOOTER MODERNO - ARC ACADEMIA
   ======================================== */

:root {
    --primary-color: #004c7e;
    --secondary-color: #0077c7;
    --accent-color: #6f42c1;
    --text-light: #cbd5e1;
    --bg-dark: #0a0c1a;
    --bg-darker: #1a1e2e;
    --shadow-color: rgba(111, 66, 193, 0.3);
}

.pie-pagina {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker), #2a2f45);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    min-height: 400px;
}

.pie-pagina::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(111,66,193,0.1)"/></svg>') repeat;
    background-size: 80px 80px;
    opacity: 0.3;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

/* Decorative wave */
.footer-wave {
    height: 60px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, transparent, rgba(111, 66, 193, 0.1), transparent);
}

.footer-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 66, 193, 0.2), transparent);
    animation: footerWave 8s ease-in-out infinite;
}

@keyframes footerWave {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(-40%); }
}

/* Main content grid */
.grupo-1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 992px) {
    .grupo-1 {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .grupo-1 {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px;
    }
}

.box {
    position: relative;
}

/* Logo section */
.box:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.box figure {
    margin: 0 0 25px 0;
    position: relative;
}

#logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 20px var(--shadow-color));
    transition: all 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(111, 66, 193, 0.5));
}

.logo-tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
}

/* Newsletter section */
.newsletter-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(111, 66, 193, 0.2);
}

.newsletter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.newsletter-section p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(111, 66, 193, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-color), #0d6efd);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.4);
}

/* About section */
.box:nth-child(2) h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box:nth-child(2) h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color), #0d6efd);
    border-radius: 2px;
}

.box:nth-child(2) p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Address info */
.address-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #17a2b8;
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
}

.address-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #17a2b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    color: #17a2b8;
}

/* Quick links */
.quick-links {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.quick-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.quick-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-links ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Social section */
.box:nth-child(3) h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.red-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.red-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.red-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.4);
}

.red-social .fa-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.red-social .fa-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e6683c;
}

.red-social .fa-tiktok:hover {
    background: #000000;
    border-color: #000000;
}

.red-social .fa-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* Bottom section */
.grupo-2 {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(111, 66, 193, 0.2);
    backdrop-filter: blur(10px);
}

.grupo-2 small {
    display: block;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
}

.grupo-2 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.grupo-2 a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #0d6efd);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.5);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .red-social {
        gap: 15px;
    }
    
    .red-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}