/* Popup - Tartas Personalizadas Banner */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 38, 24, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1rem;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(107, 62, 46, 0.3);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--brown-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.popup-close:hover {
    background: var(--brown-dark);
    color: white;
    transform: scale(1.1);
}

.popup-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.popup-body {
    padding: 1.5rem;
    text-align: center;
}

.popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--brown-light) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.popup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.popup-subtitle {
    font-size: 0.9rem;
    color: var(--brown-medium);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.popup-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.popup-feature {
    text-align: center;
}

.popup-feature-icon {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.popup-feature-text {
    font-size: 0.72rem;
    color: var(--brown-medium);
    font-weight: 500;
}

.popup-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--brown-medium);
    margin-bottom: 1rem;
}

.popup-price strong {
    font-size: 1.3rem;
    color: var(--brown-dark);
}

.popup-cta {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-medium) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 62, 46, 0.35);
}

@media (max-width: 480px) {
    .popup-container {
        max-width: 340px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-body {
        padding: 1.2rem;
    }

    .popup-features {
        gap: 1rem;
    }
}
