/* BeatLatin — Contacto + Newsletter (Apple glass, sin sombras) */

.bl-contacto {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 48px;
    font-family: var(--bl-font);
    color: var(--bl-system-primary, hsla(0, 0%, 100%, 0.92));
    text-align: left;
}

.bl-contacto--nl-only {
    max-width: var(--bl-content-max, 1200px);
    padding-bottom: 0;
}

.bl-contacto--form-only {
    padding-top: 8px;
}

/* --- Newsletter --- */
.bl-contacto__nl {
    margin: 0 0 36px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--bl-border, rgba(255, 255, 255, 0.08));
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: none !important;
}

.bl-contacto__nl-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bl-contacto__nl-copy {
    flex: 0 1 34%;
    min-width: 0;
}

.bl-contacto__nl-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2941;
    letter-spacing: -0.01em;
    color: var(--bl-system-primary, hsla(0, 0%, 100%, 0.92));
    text-align: left;
}

.bl-contacto__nl-sub {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--bl-muted, rgba(245, 245, 247, 0.55));
}

.bl-contacto__nl-form-wrap {
    flex: 1 1 66%;
    min-width: 0;
}

.bl-contacto__nl-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.bl-contacto__nl-row .bl-contacto__input {
    flex: 1;
    min-width: 0;
}

.bl-contacto__nl-row .bl-contacto__input--email {
    flex: 1.25;
}

.bl-contacto__nl-row .bl-contacto__btn {
    flex-shrink: 0;
}

/* --- Formulario --- */
.bl-contacto__form-block {
    margin: 0;
    padding: 28px 28px 24px;
    border-radius: 16px;
    border: 1px solid var(--bl-border, rgba(255, 255, 255, 0.08));
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: none !important;
}

.bl-contacto__form-header {
    margin: 0 0 22px;
    text-align: left;
}

.bl-contacto__form-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--bl-system-primary, hsla(0, 0%, 100%, 0.92));
    text-align: left !important;
}

.bl-contacto__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bl-contacto__field {
    margin: 0 0 16px;
}

.bl-contacto__field label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--bl-muted, rgba(245, 245, 247, 0.55));
}

.bl-contacto__req {
    color: var(--bl-red, #d90c0c);
}

.bl-contacto__input {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid var(--bl-border, rgba(255, 255, 255, 0.10));
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--bl-system-primary, hsla(0, 0%, 100%, 0.92));
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 44px;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bl-contacto__textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.45;
    resize: vertical;
}

.bl-contacto__input::placeholder {
    color: rgba(245, 245, 247, 0.32);
}

.bl-contacto__input:focus {
    border-color: rgba(217, 12, 12, 0.45);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none !important;
}

.bl-contacto__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--bl-system-primary, #fff) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bl-contacto__btn:hover,
.bl-contacto__btn:focus-visible {
    border-color: var(--bl-red, #d90c0c) !important;
    color: var(--bl-red, #d90c0c) !important;
    background: rgba(217, 12, 12, 0.08) !important;
    outline: none;
    box-shadow: none !important;
    transform: none !important;
}

.bl-contacto__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bl-contacto__btn--primary {
    width: 100%;
}

.bl-contacto__actions {
    margin-top: 8px;
}

.bl-contacto__recaptcha {
    display: flex;
    justify-content: flex-start;
    margin: 4px 0 16px;
    transform: scale(0.95);
    transform-origin: left center;
}

.bl-contacto__note {
    margin: 18px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--bl-muted-soft, rgba(245, 245, 247, 0.42));
    text-align: left;
}

.bl-contacto__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.bl-contacto__msg-slot {
    margin: 0 0 10px;
}

.bl-contacto__msg-slot[hidden] {
    display: none !important;
}

.bl-contacto__alert,
.bl-contacto .nl-msg,
.bl-contacto__msg {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    box-shadow: none !important;
}

.bl-contacto__alert--ok,
.bl-contacto .nl-msg.success {
    background: rgba(52, 199, 89, 0.10);
    border: 1px solid rgba(52, 199, 89, 0.22);
    color: #34c759;
}

.bl-contacto .nl-msg.error {
    background: rgba(217, 12, 12, 0.08);
    border: 1px solid rgba(217, 12, 12, 0.22);
    color: #ff453a;
}

.bl-contacto__alert p,
.bl-contacto .nl-msg {
    margin: 0;
}

/* --- Modo claro --- */
[data-theme="light"] .bl-contacto__nl,
[data-theme="light"] .bl-contacto__form-block {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none !important;
}

[data-theme="light"] .bl-contacto__nl-title,
[data-theme="light"] .bl-contacto__form-title {
    color: var(--bl-system-primary, rgba(0, 0, 0, 0.88));
}

[data-theme="light"] .bl-contacto__nl-sub,
[data-theme="light"] .bl-contacto__field label,
[data-theme="light"] .bl-contacto__note {
    color: var(--bl-muted, rgba(0, 0, 0, 0.48));
}

[data-theme="light"] .bl-contacto__input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.88);
}

[data-theme="light"] .bl-contacto__input::placeholder {
    color: rgba(0, 0, 0, 0.32);
}

[data-theme="light"] .bl-contacto__input:focus {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(217, 12, 12, 0.40);
}

[data-theme="light"] .bl-contacto__btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.88) !important;
}

[data-theme="light"] .bl-contacto__btn:hover,
[data-theme="light"] .bl-contacto__btn:focus-visible {
    border-color: var(--bl-red, #d90c0c) !important;
    color: var(--bl-red, #d90c0c) !important;
    background: rgba(217, 12, 12, 0.06) !important;
}

/* --- Responsive --- */
@media (max-width: 820px) {
    .bl-contacto__nl-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .bl-contacto__nl-copy {
        flex: none;
    }
}

@media (max-width: 640px) {
    .bl-contacto {
        max-width: none;
        padding-bottom: 36px;
    }

    .bl-contacto__nl,
    .bl-contacto__form-block {
        padding: 18px 16px;
    }

    .bl-contacto__form-title {
        font-size: 26px;
    }

    .bl-contacto__nl-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bl-contacto__nl-row .bl-contacto__btn {
        width: 100%;
    }

    .bl-contacto__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bl-contacto__recaptcha {
        transform: scale(0.88);
    }
}
