/* ============================================
   NUEVO SOCIO MODERN CSS
   Estilos modernos para formulario de inscripción
   ============================================ */

/* Container principal */
.container.nuevo-socio-modern {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    font-family: "Source", sans-serif !important;
}

/* Forzar fuente Source en textos (excluyendo iconos FA) */
.container.nuevo-socio-modern p,
.container.nuevo-socio-modern li,
.container.nuevo-socio-modern span:not([class*="fa"]),
.container.nuevo-socio-modern div:not([class*="fa"]),
.container.nuevo-socio-modern input,
.container.nuevo-socio-modern textarea,
.container.nuevo-socio-modern select,
.container.nuevo-socio-modern button,
.container.nuevo-socio-modern small,
.container.nuevo-socio-modern a {
    font-family: "Source", sans-serif !important;
}

/* Forzar fuente bold en títulos y labels */
.container.nuevo-socio-modern h1,
.container.nuevo-socio-modern h2,
.container.nuevo-socio-modern h3,
.container.nuevo-socio-modern h4,
.container.nuevo-socio-modern h5,
.container.nuevo-socio-modern h6,
.container.nuevo-socio-modern strong,
.container.nuevo-socio-modern b,
.container.nuevo-socio-modern label {
    font-family: "Source-B", sans-serif !important;
}

/* Header */
.nuevo-socio-modern h3.color-primary {
    font-family: "Source-B" !important;
    font-size: 2.5rem !important;
    color: #0ea5e9 !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
    position: relative !important;
    padding-bottom: 1rem !important;
}

.nuevo-socio-modern h3.color-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 2px;
}

/* ============================================
   SECCIÓN INFORMATIVA - Cards de información
   ============================================ */

.info-section-modern {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #0ea5e9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-section-modern h4 {
    font-family: "Source-B" !important;
    font-size: 1.5rem !important;
    color: #1e293b !important;
    margin-bottom: 1.5rem !important;
}

.info-section-modern p {
    font-family: "Source" !important;
    font-size: 1rem !important;
    color: #475569 !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
}

.info-section-modern ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section-modern ul li {
    font-family: "Source" !important;
    font-size: 1rem !important;
    color: #475569 !important;
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.info-section-modern ul li i {
    position: absolute;
    left: 0;
    top: 0.85rem;
    color: #0ea5e9;
    font-size: 1rem;
}

/* IBAN Destacado */
.iban-highlight {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.iban-highlight h4 {
    font-family: "Source-B" !important;
    font-size: 1.25rem !important;
    color: white !important;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.iban-highlight h4 i {
    font-size: 1.5rem;
}

.iban-highlight .iban-number {
    font-family: "Source-B" !important;
    font-size: 1.75rem !important;
    color: white !important;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Cuotas Card */
.cuotas-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cuotas-card h4 {
    font-family: "Source-B" !important;
    font-size: 1.5rem !important;
    color: #1e293b !important;
    margin-bottom: 1.5rem !important;
}

.cuotas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.cuota-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cuota-item i {
    font-size: 2rem;
    color: #0ea5e9;
}

.cuota-item .cuota-content {
    flex: 1;
}

.cuota-item .cuota-type {
    font-family: "Source-B" !important;
    font-size: 1.125rem !important;
    color: #1e293b !important;
    margin: 0 0 0.25rem 0;
}

.cuota-item .cuota-price {
    font-family: "Source-B" !important;
    font-size: 1.5rem !important;
    color: #0ea5e9 !important;
    margin: 0;
}

.cuotas-note {
    font-family: "Source" !important;
    font-size: 0.875rem !important;
    color: #64748b !important;
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background: #fff7ed;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
}

/* ============================================
   SECCIÓN FORMULARIO - Cards de formulario
   ============================================ */

.form-section-socio {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.form-section-socio:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.form-section-socio h5 {
    font-family: "Source-B" !important;
    font-size: 1.375rem !important;
    color: #1e293b !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid #0ea5e9 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-socio h5 i {
    color: #0ea5e9;
    font-size: 1.5rem;
}

.section-subtitle-socio {
    font-family: "Source" !important;
    font-size: 0.95rem !important;
    color: #64748b !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

/* Grid de 2 columnas responsive */
.form-row-socio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .form-row-socio {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Form groups */
.form-group-socio {
    margin-bottom: 1.5rem;
}

.form-group-socio label {
    font-family: "Source-B" !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.required-mark {
    color: #ef4444;
    margin-left: 0.25rem;
    font-weight: bold;
}

/* Inputs generales */
.form-input-socio,
.form-select-socio {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: "Source" !important;
    font-size: 1rem;
    color: #1e293b;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input-socio:focus,
.form-select-socio:focus {
    border-color: #0ea5e9;
    background-color: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-input-socio:hover,
.form-select-socio:hover {
    border-color: #cbd5e1;
}

.form-input-socio::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Selects con icono de flecha personalizado */
.form-select-socio {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* File inputs */
.form-file-socio {
    width: 100%;
    padding: 1rem;
    font-family: "Source" !important;
    font-size: 0.95rem;
    color: #475569;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-file-socio:hover {
    border-color: #0ea5e9;
    background-color: #f0f9ff;
}

.form-file-socio:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-text-socio {
    font-family: "Source" !important;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    display: block;
}

/* ============================================
   IBAN INPUTS - 6 campos inline
   ============================================ */

.iban-inputs-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.iban-inputs-container input.iban {
    width: auto;
    flex: 1;
    min-width: 60px;
    max-width: 80px;
    padding: 0.75rem 0.5rem;
    font-family: "Source-B" !important;
    font-size: 1rem;
    text-align: center;
    color: #1e293b;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iban-inputs-container input.iban:focus {
    border-color: #0ea5e9;
    background-color: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

.iban-inputs-container input.iban:hover {
    border-color: #cbd5e1;
}

.iban-separator {
    color: #94a3b8;
    font-size: 1.25rem;
    font-weight: bold;
    user-select: none;
}

@media (max-width: 576px) {
    .iban-inputs-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .iban-inputs-container input.iban {
        max-width: 100%;
    }
    
    .iban-separator {
        display: none;
    }
}

/* ============================================
   HIDDEN FIELDS (honeypot y tipo)
   ============================================ */

.form-group-socio[style*="display: none"],
.form-group-socio[style*="display:none"] {
    display: none !important;
}

/* ============================================
   BOTÓN DE ENVÍO
   ============================================ */

.btn-submit-socio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    font-family: "Source-B" !important;
    font-size: 1.125rem;
    color: white;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-submit-socio:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-submit-socio:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-submit-socio:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-submit-socio i {
    font-size: 1.25rem;
}

/* Container del botón centrado */
.submit-container {
    text-align: center;
    padding: 2rem 0;
}

.submit-note {
    font-family: "Source" !important;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
    text-align: center;
}

/* ============================================
   VALIDACIÓN Y ESTADOS
   ============================================ */

.form-input-socio:invalid:not(:placeholder-shown),
.form-select-socio:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input-socio:valid:not(:placeholder-shown),
.form-select-socio:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .nuevo-socio-modern {
        padding: 40px 0;
    }
    
    .nuevo-socio-modern h3.color-primary {
        font-size: 2rem !important;
    }
    
    .form-section-socio {
        padding: 2rem;
    }
    
    .info-section-modern {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .nuevo-socio-modern h3.color-primary {
        font-size: 1.75rem !important;
    }
    
    .form-section-socio h5 {
        font-size: 1.25rem !important;
    }
    
    .form-section-socio {
        padding: 1.5rem;
    }
    
    .info-section-modern {
        padding: 1.25rem;
    }
    
    .iban-highlight .iban-number {
        font-size: 1.25rem !important;
        word-break: break-all;
    }
    
    .cuotas-list {
        grid-template-columns: 1fr;
    }
    
    .btn-submit-socio {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        max-width: 100%;
    }
}

/* ============================================
   ANIMACIONES Y TRANSICIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nuevo-socio-modern .form-section-socio,
.nuevo-socio-modern .info-section-modern,
.nuevo-socio-modern .iban-highlight,
.nuevo-socio-modern .cuotas-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .btn-submit-socio {
        display: none;
    }
    
    .form-section-socio {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
