.newsletter {
    background-color: var(--primary-brown);
    margin: auto;
}

.newsletter-contain {
    background-color: var(--greige);
    position: relative;
    border-radius: 0 0 90px 0;
}

.newsletter-section {
    max-width: var(--base-layout-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
    padding: 40px 0;

}

.newsletter-titles {
    color: var(--primary-black);
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 610px;
    padding: 0 0 0 55px;
}

.newsletter-titles h2 {
    margin: 0;
}

.newsletter-overlay-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 172px;
    height: 172px;
    object-fit: cover;
    pointer-events: none;
}

/* FORM */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* INPUT WRAPPER */
.newsletter-input-wrapper {
    display: flex;
    flex-direction: row;
    gap: 7px;
    margin-bottom: 10px;
}

/* INPUT */
.newsletter-input {
    flex: 1;
    height: 56px;
    border: none;
    outline: none;
    border-radius: 50px;
    padding-left: 29px;
    min-width: 270px;
    background: var(--primary-white);
    color: var(--primary-black);
}

.newsletter-input::placeholder {
    color: var(--grey-1);
}

.newsletter-input:focus {
    outline: none;
}

/* Botón de envío - Ahora usa .btn-circle-search de main.css */

/* PRIVACY CHECKBOX */
.newsletter-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    cursor: pointer;
    border: none;
    background-color: var(--primary-white);
    border-radius: 2px;
    accent-color: var(--primary-orange);
}

.privacy-label {
    color: var(--primary-black);
    cursor: pointer;
    user-select: none;
}

.privacy-label a {
    color: var(--primary-black);
    text-decoration: underline;
    transition: color 300ms ease;
}

.privacy-label a:hover {
    color: var(--primary-orange);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .newsletter-section {
        flex-direction: column;
        gap: 40px;
        padding: 40px 24px;
        align-items: flex-start;
    }

    .newsletter-titles {
        max-width: 100%;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-overlay-icon {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .newsletter-contain {
        border-radius: 0;
    }

    .newsletter-section {
        gap: 32px;
        padding: 32px 20px;
    }

    .newsletter-input {
        min-width: 0;
        padding-left: 24px;
        padding-right: 24px;
    }

    .newsletter-privacy {
        gap: 10px;
    }

    .privacy-checkbox {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .newsletter-overlay-icon {
        width: 100px;
        height: 100px;
    }
}

#newsletterFooterButton svg.is-spinning {
    animation: newsletter-spin 0.8s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes newsletter-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


@media (max-width: 480px) {
    .newsletter-titles {
        padding: 0;
    }

    .newsletter
    {
        width: auto;
    }

    .newsletterForm
    {
        width: 100%;
    }

    .newsletter-contain {
        border-radius: 0 0 40 0;
    }

    .newsletter-section {
        gap: 24px;
        padding: 28px 32px;
    }

    .newsletter-input {
        padding-left: 20px;
        padding-right: 20px;
        height: 48px;
    }

    .newsletterForm .btn-circle-search {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .btn-circle-search:hover {
        width: 48px;
        height: 48px;
    }

    .newsletter-privacy {
        gap: 8px;
    }

    .privacy-checkbox {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .newsletter-overlay-icon {
        display: none;
    }
}