/**
 * Estilos públicos - AC Suscriptores
 * Diseño minimalista y compacto
 */

/* ========================================
   VARIABLES CSS
   ======================================== */
.acs-subscription-wrapper {
    --acs-input-bg: transparent;
    --acs-input-color: #ffffff;
    --acs-input-border: rgba(255, 255, 255, 0.2);
    --acs-input-focus: #e67e22;
    --acs-label-color: rgba(255, 255, 255, 0.85);
    --acs-placeholder: rgba(255, 255, 255, 0.35);
    --acs-btn-bg: #e67e22;
    --acs-btn-color: #ffffff;
    --acs-btn-hover: #d35400;
    --acs-radius: 4px;
    --acs-max-width: 260px;
    
    max-width: var(--acs-max-width);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   FORMULARIO BASE
   ======================================== */
.acs-subscription-form {
    background: transparent;
    padding: 0;
    margin: 0;
}

.acs-field {
    margin-bottom: 10px;
}

/* ========================================
   LABELS - Compactos
   ======================================== */
.acs-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 11px;
    color: var(--acs-label-color);
    letter-spacing: 0.02em;
}

.acs-label .required {
    color: #e67e22;
    margin-left: 1px;
    font-weight: 400;
}

/* ========================================
   INPUTS - Compactos
   ======================================== */
.acs-input {
    width: 100%;
    padding: 8px 0;
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    color: var(--acs-input-color);
    border: none;
    border-bottom: 1px solid var(--acs-input-border);
    border-radius: 0;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.acs-input:focus {
    border-bottom-color: var(--acs-input-focus);
}

.acs-input::placeholder {
    color: var(--acs-placeholder);
    font-weight: 300;
    font-size: 12px;
}

/* ========================================
   CAPTCHA
   ======================================== */
.acs-captcha-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.acs-captcha-wrapper .acs-input {
    flex: 1;
}

.acs-refresh-captcha {
    width: 28px;
    height: 28px;
    padding: 0;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acs-refresh-captcha:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--acs-input-focus);
    transform: rotate(180deg);
}

/* ========================================
   BOTÓN - Compacto
   ======================================== */
.acs-field-submit {
    margin-top: 14px;
}

.acs-submit {
    width: 100%;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--acs-btn-color);
    background: var(--acs-btn-bg);
    border: none;
    border-radius: var(--acs-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.acs-submit:hover {
    background: var(--acs-btn-hover);
    box-shadow: 0 3px 12px rgba(230, 126, 34, 0.25);
}

.acs-submit:active {
    transform: scale(0.98);
}

.acs-submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

/* ========================================
   MENSAJES
   ======================================== */
.acs-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--acs-radius);
    font-size: 11px;
    text-align: center;
    font-weight: 500;
}

.acs-message.acs-success {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.acs-message.acs-error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ========================================
   LOADING
   ======================================== */
.acs-subscription-form.acs-loading .acs-submit {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.acs-subscription-form.acs-loading .acs-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: acs-spin 0.7s linear infinite;
}

@keyframes acs-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ESTILO CLÁSICO (fondo claro)
   ======================================== */
.acs-subscription-wrapper.acs-classic {
    --acs-input-color: #333;
    --acs-input-border: rgba(0, 0, 0, 0.12);
    --acs-label-color: #444;
    --acs-placeholder: rgba(0, 0, 0, 0.35);
}

.acs-subscription-wrapper.acs-classic .acs-subscription-form {
    background: #ffffff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.acs-subscription-wrapper.acs-classic .acs-refresh-captcha {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.4);
}

.acs-subscription-wrapper.acs-classic .acs-refresh-captcha:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--acs-input-focus);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media screen and (max-width: 480px) {
    .acs-subscription-wrapper {
        max-width: 100%;
    }
}
