/**
 * CSS específico para el formulario simple de inscripción
 */

/* ==================== CONTENEDOR PRINCIPAL ==================== */
.inscripcion-formulario-container.simple {
    border-left: 4px solid #1f2937;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ==================== SELECTOR DE IDIOMA ==================== */
.selector-idioma-integrado {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.selector-idioma-integrado select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.selector-idioma-integrado select:hover {
    border-color: #1f2937;
}

.edicion-info-header {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

/* ==================== FORMULARIO SIMPLE ==================== */
.inscripcion-form.simple {
    background: #fff;
}

.inscripcion-form.simple .section-header {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.inscripcion-form.simple .section-header h3 {
    color: white !important;
}

.inscripcion-form.simple .section-header .step-number {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: bold;
}

/* ==================== SECCIONES DEL FORMULARIO ==================== */
.inscripcion-form.simple .form-section-wrapper {
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.inscripcion-form.simple .form-section {
    border: none;
    margin: 0;
    padding: 0;
}

/* FORZAR VISIBILIDAD DEL CONTENIDO */
.inscripcion-form.simple .form-section-content {
    display: block !important;
    padding: 2rem;
    background: #fff;
}

/* ==================== CAMPOS DE ACOMPAÑANTE ==================== */
.acompanante-fields-simple {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.acompanante-fields-simple.hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.acompanante-fields-simple h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================== CHECKBOX DE ACOMPAÑANTE ==================== */
.acompanante-toggle {
    margin-bottom: 1rem;
}

.acompanante-toggle .checkbox-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.acompanante-toggle .checkbox-toggle:hover {
    border-color: #1f2937;
    background: #f8fafc;
}

.acompanante-toggle input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
}

.acompanante-toggle .toggle-text {
    font-weight: 500;
    color: #495057;
}

.acompanante-toggle .precio-extra {
    color: #1f2937;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ==================== FILAS DE FORMULARIO ==================== */
.inscripcion-form.simple .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.inscripcion-form.simple .form-row.telefono-row {
    grid-template-columns: 100px 1fr 1fr;
}

/* ==================== CAMPOS DE FORMULARIO ==================== */
.inscripcion-form.simple .form-group {
    display: flex;
    flex-direction: column;
}

.inscripcion-form.simple .form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.inscripcion-form.simple .form-group input,
.inscripcion-form.simple .form-group select {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inscripcion-form.simple .form-group input:focus,
.inscripcion-form.simple .form-group select:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.inscripcion-form.simple .form-group small {
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ==================== CAMPO TELÉFONO COMPLETO ==================== */
.inscripcion-form.simple .telefono-preview {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    cursor: default;
}

.inscripcion-form.simple .telefono-preview:focus {
    box-shadow: none !important;
    border-color: #e9ecef !important;
}

/* ==================== CAMPOS REQUERIDOS ==================== */
.inscripcion-form.simple .required {
    color: #dc3545;
    font-weight: bold;
}

.inscripcion-form.simple .form-group input.error,
.inscripcion-form.simple .form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* ==================== RESUMEN DE PRECIOS ==================== */
.resumen-precios {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.resumen-precios h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.precio-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.precio-linea:last-child {
    border-bottom: none;
}

.precio-linea .concepto {
    color: #495057;
}

.precio-linea .precio {
    font-weight: 600;
    color: #1f2937;
}

/* === Rediseño profesional del total === */
.resumen-precios .precio-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(40, 167, 69, 0.08);
}

.resumen-precios .precio-total .concepto-total {
    color: #1e40af;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.resumen-precios .precio-total .precio-total-valor {
    color: #1e40af;
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    min-width: 110px;
    text-align: right;
}

/* ==================== TÉRMINOS Y CONDICIONES ==================== */
.terminos-condiciones {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.terminos-condiciones.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(-10px);
}

.terminos-condiciones .checkbox-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.terminos-condiciones input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.terminos-condiciones .toggle-text {
    color: #495057;
    line-height: 1.4;
}

/* ==================== BOTÓN DE ENVÍO ==================== */
.form-actions {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.form-actions.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(-10px);
}

.btn-proceder-pago {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 250px;
}

.btn-proceder-pago:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-proceder-pago:active {
    transform: translateY(0);
}

.btn-proceder-pago:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-proceder-pago .btn-icon {
    font-size: 1.25rem;
}

.btn-proceder-pago .btn-amount {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
}

.pago-info {
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

/* ==================== SPINNER DE CARGA ==================== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #6c757d;
}

.loading-spinner .spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e9ecef;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== MENSAJES ==================== */
.form-messages {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-messages.success {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.form-messages.error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* ==================== REGLAS GENERALES PARA OCULTAR ==================== */
.hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    min-height: 0 !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .selector-idioma-integrado {
        position: static;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .inscripcion-form.simple .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .inscripcion-form.simple .form-row.telefono-row {
        grid-template-columns: 1fr;
    }
    
    .inscripcion-form.simple .form-section-content {
        padding: 1.5rem;
    }
    
    .btn-proceder-pago {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .inscripcion-form.simple .form-section-content {
        padding: 1rem;
    }
    
    .edicion-info-header {
        padding: 1.5rem;
    }
    .resumen-precios .precio-total {
        padding: 0.75rem 1rem;
    }
    .resumen-precios .precio-total .precio-total-valor {
        font-size: 1.25rem;
        min-width: 90px;
    }
}
