.af-contacto {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.af-contacto__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

.af-contacto__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.af-contacto__intro {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #4b5563;
}

.af-contacto__notice {
    padding: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.4;
}

.af-contacto__notice p {
    margin: 0 0 0.5rem;
}

.af-contacto__notice ul {
    margin: 0;
    padding-left: 1.2rem;
}

.af-contacto__notice--success {
    background: #ecfdf5;
    border-color: #34d399;
    color: #047857;
}

.af-contacto__notice--error {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

.af-contacto-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.af-contacto-form__field {
    display: flex;
    flex-direction: column;
}

.af-contacto-form__field--full {
    grid-column: 1 / -1;
}

.af-contacto-form__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.af-contacto-form__consent {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    color: #111827;
    display: flex;
    align-items: flex-start;
}

.af-contacto-form__checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.af-contacto-form__checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.af-contacto-form__checkbox a {
    color: var(--ast-global-color-0, #2271b1);
    text-decoration: underline;
}

.af-contacto-form__checkbox a:hover,
.af-contacto-form__checkbox a:focus {
    text-decoration: none;
}

.af-contacto-form__label {
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
}

.af-contacto-form input[type="text"],
.af-contacto-form input[type="email"],
.af-contacto-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.45;
    background: #fff;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.af-contacto-form textarea {
    min-height: 140px;
    resize: vertical;
}

.af-contacto-form input:focus,
.af-contacto-form textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.af-contacto-form__submit {
    min-width: 220px;
    padding: 13px 28px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--ast-global-color-0, #2271b1);
    box-shadow: 0 5px 18px rgba(34, 113, 177, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.af-contacto-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(34, 113, 177, 0.32);
}

.af-contacto-form__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}

.af-contacto-form__submit:disabled,
.af-contacto-form__submit[disabled] {
    cursor: not-allowed;
    filter: grayscale(0.3) brightness(0.92);
    box-shadow: none;
}

.af-contacto-form__recaptcha-note {
    grid-column: 1 / -1;
    margin: 12px auto 0;
    font-size: 0.85rem;
    color: #6b7280; /* gris tenue similar a Astra */
    text-align: center;
    max-width: 420px;
    line-height: 1.4;
}

.af-contacto-form__recaptcha-note a {
    color: var(--ast-global-color-0, #2271b1);
    text-decoration: underline;
}

.af-contacto-form__recaptcha-note a:hover,
.af-contacto-form__recaptcha-note a:focus {
    text-decoration: none;
}

.af-contacto-form__rgpd-info {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
}

.af-contacto-form__rgpd-info p {
    margin: 0;
    color: #6b7280;
}

.af-contacto-form__rgpd-info a {
    color: var(--ast-global-color-0, #2271b1);
    text-decoration: underline;
}

.af-contacto-form__rgpd-info a:hover,
.af-contacto-form__rgpd-info a:focus {
    text-decoration: none;
}

@media (min-width: 768px) {
    .af-contacto__card {
        padding: 32px;
    }

    .af-contacto-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .af-contacto-form__field--full {
        grid-column: span 2;
    }

    .af-contacto-form__actions {
        grid-column: span 2;
    }

    .af-contacto-form__consent {
        grid-column: span 2;
    }

    .af-contacto-form__rgpd-info {
        grid-column: span 2;
    }
}


