/* Invitation Footer Styles */

/* Root Variables - Paleta del diseño principal */
:root {
    --footer-primary-color: #2b7dc4;
    --footer-secondary-color: #5eb5e8;
    --footer-accent-color: #1e4c8a;
    --footer-light-blue: #9ed8f1;
    --footer-extra-light-blue: #b5e3f5;
    --footer-text-dark: #1a3a52;
    --footer-text-light: #5a7a8f;
    --footer-gradient-primary: linear-gradient(135deg, #2b7dc4 0%, #5eb5e8 100%);
    --footer-gradient-light: linear-gradient(135deg, #5eb5e8 0%, #9ed8f1 100%);
    --footer-shadow-light: 0 2px 10px rgba(43, 125, 196, 0.1);
    --footer-shadow-medium: 0 5px 20px rgba(43, 125, 196, 0.15);
}

/* Main Footer Component */
.invitation-footer {
    background: var(--footer-gradient-primary);
    border-radius: 25px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: var(--footer-shadow-medium);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Reset box-sizing within footer to prevent conflicts */
.invitation-footer *,
.invitation-footer *::before,
.invitation-footer *::after {
    box-sizing: border-box;
}

.invitation-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Left Side - Text Content */
.footer-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

/* Made with Love Section */
.made-with-love {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.made-with-love i {
    color: #ffffff;
    font-size: 1rem;
    animation: heartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.studio-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.by-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.studio-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.studio-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.studio-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.studio-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 380px;
    margin-top: 1rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Right Side - Action Buttons */
.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.portfolio-btn {
    background: #ffffff;
    color: var(--footer-primary-color);
    border: 2px solid #ffffff;
}

.portfolio-btn:hover {
    transform: translateY(-2px);
    background: transparent;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

.action-btn i {
    font-size: 1.1rem;
}

/* Demo Section Styles */
.demo-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--footer-shadow-medium);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--footer-extra-light-blue);
}

.demo-section h2 {
    color: var(--footer-primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.demo-section p {
    color: var(--footer-text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-actions {
        width: 100%;
        max-width: 300px;
    }

    .action-btn {
        width: 100%;
    }

    .description {
        max-width: 100%;
    }

    .invitation-footer {
        margin: 1rem;
        padding: 1.5rem;
    }

    .demo-section {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .invitation-footer {
        padding: 1.2rem;
    }

    .studio-name {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .action-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .demo-section h2 {
        font-size: 1.5rem;
    }

    .demo-section p {
        font-size: 1rem;
    }
}

/* Animation Classes for JS */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}
