/* Formulario público de captación de campañas de venta.
   Pensado para embeberse en webs externas (iframe): autocontenido, sin
   dependencias de Bootstrap ni del layout de website. */

.sc-body {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2933;
    -webkit-font-smoothing: antialiased;
}

.sc-wrap {
    display: flex;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.sc-card {
    width: 100%;
    max-width: 520px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
}

.sc-card--center {
    text-align: center;
}

.sc-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
}

.sc-intro {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #52606d;
}

.sc-alert {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.sc-field {
    margin-bottom: 16px;
}

.sc-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #323f4b;
}

.sc-req {
    color: #e12d39;
    margin-left: 2px;
}

.sc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    font-size: 1rem;
    border: 1px solid #cbd2d9;
    border-radius: 9px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-input:focus {
    outline: none;
    border-color: var(--sc-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.sc-input {
    resize: vertical;
}

.sc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #323f4b;
    cursor: pointer;
}

.sc-check input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--sc-primary, #2563eb);
    cursor: pointer;
}

.sc-check-text {
    flex: 1 1 auto;
}

.sc-legal {
    font-size: 0.82rem;
}

/* Aviso legal: enlace (label) dentro del texto que despliega el aviso completo.
   Toggle 100% CSS mediante un checkbox oculto + selector :checked ~ . */
.sc-legal-link {
    color: var(--sc-primary, #2563eb);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.sc-check-accept {
    cursor: pointer;
}

/* Checkbox oculto que controla la visibilidad del aviso legal */
.sc-legal-cb {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.sc-legal-text {
    display: none;
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #52606d;
    background: #f7f9fb;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    padding: 10px 12px;
    max-height: 220px;
    overflow-y: auto;
}

.sc-legal-cb:checked ~ .sc-legal-text {
    display: block;
}

.sc-btn {
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: var(--sc-primary, #2563eb);
    color: var(--sc-primary-contrast, #fff);
    font-size: 1.02rem;
    font-weight: 600;
    padding: 13px 16px;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.sc-btn:hover {
    filter: brightness(0.92);
}

.sc-check-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #def7ec;
    color: #057a55;
    font-size: 2rem;
    font-weight: 700;
}
