/* ============================================================================
 * hazte-socio.css — Página pública de alta de Socio Colaborador
 * ----------------------------------------------------------------------------
 * Extraído del <style> inline de hazte-socio.php (~70 líneas) en la
 * armonización G1 (Lote 8). Usa los tokens de _tokens.css cargado antes.
 *
 * Cromática (decisión Lote 8):
 *   - Hero, botón submit, fee selected → AZULES canónicos (no teal)
 *     Coherente con la paleta blue-* dominante del proyecto post-migración.
 *   - Iconos benefits → cada uno mantiene su gradiente original variado
 *     (newsletter teal+cyan, investigación blue+violet, pacientes amber+red,
 *     desgravación green+success). 3 de los 4 mapean a utilities G1.
 *   - Tax box → mantiene verde (semánticamente "ahorro fiscal").
 *
 * Decoraciones intencionales con hex literales:
 *   - #1e3a5f en el último stop del hero (azul muy oscuro, sin token canónico
 *     exacto; representa profundidad del gradiente sin caer a #000)
 *   - SVG inline de fondo del hero: pattern decorativo white@6% (mantenido
 *     verbatim del original)
 * ============================================================================ */

/* ─── Hero section ─────────────────────────────────────────────────────────── */
.socio-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-blue-700) 0%, var(--color-navy) 50%, #1e3a5f 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.socio-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.socio-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
}

.socio-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.socio-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 25px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-price {
    font-size: 1.8rem;
    font-weight: 800;
}

.hero-price small {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.hero-social-proof {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ─── Benefits section ─────────────────────────────────────────────────────── */
.benefits-section {
    padding: 70px 0;
    background: var(--color-white);
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--color-white);
}

/* Benefit icon colors — cada uno mantiene su identidad cromática.
 * Nota: 3 de los 4 mapean a utilities G1 (.grad-tech, .grad-care,
 * .grad-research). El de newsletter usa tokens directos por no
 * tener equivalente exacto en las 4 utilities. */
.benefit-icon-newsletter {
    background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
}
/* .benefit-icon-research → usar clase .grad-tech (blue→violet)        */
/* .benefit-icon-patients → usar clase .grad-care  (amber→red)         */
/* .benefit-icon-tax      → usar clase .grad-research (green→success)  */

.benefit-card h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.benefits-section h2 {
    font-weight: 800;
    color: var(--text-primary);
}

/* ─── Form section ─────────────────────────────────────────────────────────── */
.form-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.form-box {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    background: linear-gradient(135deg, var(--color-blue-700), var(--color-navy));
    padding: 30px;
    color: var(--color-white);
    text-align: center;
}

.form-header h3 {
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.form-header p {
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
}

.form-body {
    padding: 35px;
}

.form-body label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: block;
}

/* Selector intencionalmente excluye [type=checkbox] y [type=radio]:
 * sin esa exclusión, los checkboxes heredan width:100% + padding 12px y
 * se renderizan como cajas gigantes (bug Lote 8). Bootstrap se encarga
 * del estilo de .form-check-input. */
.form-body input:not([type="checkbox"]):not([type="radio"]),
.form-body select,
.form-body textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.form-body input:not([type="checkbox"]):not([type="radio"]):focus,
.form-body select:focus,
.form-body textarea:focus {
    border-color: var(--color-blue-700);
}

/* ─── Fee selector grid ────────────────────────────────────────────────────── */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.fee-btn {
    padding: 14px 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.fee-btn:hover {
    border-color: var(--color-blue-700);
    color: var(--color-blue-700);
}

.fee-btn.selected {
    border-color: var(--color-blue-700);
    background: var(--bg-blue-soft);
    color: var(--color-blue-700);
}

.fee-custom-wrap {
    position: relative;
}

.fee-custom-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--color-slate-400);
}

.fee-custom-input {
    padding-left: 30px;
}

/* ─── Frequency selector ───────────────────────────────────────────────────── */
.freq-toggle {
    display: flex;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.freq-btn {
    flex: 1;
    padding: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--color-white);
    color: var(--color-slate-500);
    transition: background 0.2s, color 0.2s;
}

.freq-btn.selected {
    background: var(--color-blue-700);
    color: var(--color-white);
}

.freq-summary {
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-blue-700);
    font-weight: 600;
}

/* ─── Tax info box (mantiene verde — semántica de ahorro fiscal) ───────────── */
.tax-info {
    background: var(--bg-green-soft);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.tax-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tax-info-label {
    font-size: 0.8rem;
    color: var(--color-success);
    font-weight: 600;
}

.tax-info-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.tax-info-amount-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tax-info-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-success);
}

/* ─── Form check labels (newsletter / legal) ───────────────────────────────── */
.form-body .form-check-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ─── Submit button ────────────────────────────────────────────────────────── */
.btn-socio {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, var(--color-blue-500), var(--color-blue-700));
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-socio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 163, 0.4);
}

.btn-socio:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Form errors / success ────────────────────────────────────────────────── */
.signup-errors {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: none;
}

.signup-errors.visible {
    display: block;
}

.signup-success {
    display: none;
    text-align: center;
    padding: 30px 0;
}

.signup-success.visible {
    display: block;
}

.signup-success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-success-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.signup-success-icon i {
    font-size: 1.8rem;
    color: var(--color-success);
}

.signup-success h4 {
    font-weight: 700;
    color: var(--text-primary);
}

.signup-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cancel-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--color-slate-400);
}

/* ─── FAQ section ──────────────────────────────────────────────────────────── */
.faq-section {
    padding: 60px 0;
    background: var(--color-white);
}

.faq-section .container {
    max-width: 700px;
}

.faq-section h2 {
    font-weight: 800;
    color: var(--text-primary);
}

.faq-item {
    border-bottom: 1px solid var(--bg-subtle);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 10px;
    display: none;
}

.faq-item.open .faq-a {
    display: block;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-arrow {
    transition: transform 0.2s;
    color: var(--text-secondary);
}

/* ─── CTA bottom section ───────────────────────────────────────────────────── */
.socio-cta {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-700));
    color: var(--color-white);
    text-align: center;
}

.socio-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.socio-cta p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 25px;
}

.socio-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-blue-500), var(--color-blue-700));
    color: var(--color-white);
    padding: 16px 35px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.socio-cta-btn:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 163, 0.4);
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .socio-hero {
        padding: 80px 0 60px;
    }

    .socio-hero h1 {
        font-size: 2rem;
    }

    .fee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================================
 * Utility classes G1 (replicadas en cada archivo refactor hasta que se
 * cree _components.css en Fase 4/G3 — decisión §4 HANDOFF v2)
 * ============================================================================ */
.grad-care     { background: linear-gradient(135deg, #f59e0b, var(--color-red)); }
.grad-tech     { background: linear-gradient(135deg, var(--color-blue-400), var(--color-violet-dark)); }
.grad-research { background: linear-gradient(135deg, var(--color-green), var(--color-success)); }
.grad-control  { background: linear-gradient(135deg, var(--color-violet-dark), var(--color-pink)); }
