/* ========================================================
   ESTILOS MODERNOS PARA VISTAS DE REGISTRO
   ======================================================== */

:root {
    --reg-primary: #0284c7;
    --reg-primary-dark: #0369a1;
    --reg-navy: #012d54;
    --reg-light: #f0f9ff;
    --reg-border: #e2e8f0;
    --reg-text: #1e293b;
    --reg-muted: #64748b;
    --reg-success: #059669;
    --reg-error: #dc2626;
    --reg-radius: 14px;
    --reg-shadow: 0 4px 20px rgba(1, 45, 84, 0.1);
}

/* ========================================================
   CONTENEDOR PRINCIPAL DEL FORMULARIO
   ======================================================== */
.registro-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 24px auto 50px auto;
    padding: 0 16px;
}

.registro-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(1, 45, 84, 0.15), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Header de la tarjeta de registro */
.registro-card-header {
    background: linear-gradient(135deg, #012d54 0%, #0369a1 60%, #0284c7 100%);
    padding: 30px 35px 28px 35px;
    position: relative;
    overflow: hidden;
}

.registro-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.registro-card-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: 10%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.registro-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #bae6fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.registro-header-title {
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.registro-header-subtitle {
    font-size: 14px;
    color: rgba(186, 230, 253, 0.85);
    margin: 0;
}

.registro-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.registro-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
    animation: progressShimmer 2.5s ease-in-out infinite;
}

@keyframes progressShimmer {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Cuerpo del formulario */
.registro-card-body {
    padding: 30px 35px;
}

/* ========================================================
   SECCIONES DEL FORMULARIO
   ======================================================== */
.form-section {
    margin-bottom: 28px;
}

.form-section-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--reg-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--reg-light);
    position: relative;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 2px;
}

.form-section-title i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 8px;
    color: #0284c7;
    font-size: 14px;
    margin-right: 10px;
}

/* ========================================================
   CAMPOS DE FORMULARIO MODERNOS
   ======================================================== */
.form-field-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
}

.form-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.form-field-full {
    flex-basis: 100%;
    min-width: 100%;
}

.form-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--reg-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-input,
.form-select,
.contenedor-registro input[type="text"],
.contenedor-registro input[type="email"],
.contenedor-registro input[type="tel"],
.contenedor-registro input[type="date"],
.contenedor-registro input[type="time"],
.contenedor-registro select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    color: var(--reg-text);
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 0;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder,
.contenedor-registro input::placeholder {
    color: #94a3b8;
    font-size: 13px;
    text-transform: none;
}

.form-input:focus,
.form-select:focus,
.contenedor-registro input:focus,
.contenedor-registro select:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
    color: var(--reg-text);
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: #94a3b8;
    background: #ffffff;
}

/* Select con flecha personalizada */
.form-select,
.contenedor-registro select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230369a1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

/* Icono de campo */
.field-with-icon {
    position: relative;
}

.field-with-icon .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0284c7;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.field-with-icon input,
.field-with-icon select {
    padding-left: 40px !important;
}

/* ========================================================
   GRILLA DEL FORMULARIO (reemplaza los d-flex de Bootstrap)
   ======================================================== */
.registro-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.registro-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.registro-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

/* ========================================================
   LISTA DE ACTIVIDADES DE INTERÉS (checkbox list)
   ======================================================== */
.actividades-section {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 10px;
}

.actividades-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.actividades-section-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--reg-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.actividades-section-title i {
    margin-right: 8px;
    color: #0284c7;
    font-size: 16px;
}

.actividades-counter {
    font-size: 12px;
    font-weight: 700;
    color: var(--reg-muted);
    background: white;
    border: 1px solid var(--reg-border);
    padding: 3px 10px;
    border-radius: 20px;
}

.actividades-counter .selected-count {
    color: #0284c7;
    font-size: 14px;
}

.actividades-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar custom */
.actividades-list::-webkit-scrollbar {
    width: 4px;
}

.actividades-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.actividades-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.actividades-list::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Tarjeta de cada actividad en la lista */
.actividad-check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.actividad-check-item:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

.actividad-check-item.checked {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.05);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Checkbox personalizado */
.actividad-check-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.actividad-check-item.checked .actividad-check-box {
    background: #0284c7;
    border-color: #0284c7;
}

.actividad-check-box::after {
    content: '';
    display: none;
    width: 5px;
    height: 9px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.actividad-check-item.checked .actividad-check-box::after {
    display: block;
}

/* Input checkbox real (oculto) */
.actividad-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Contenido de la tarjeta de actividad */
.actividad-check-content {
    flex: 1;
    min-width: 0;
}

.actividad-check-nombre {
    font-size: 14px;
    font-weight: 700;
    color: var(--reg-text);
    line-height: 1.35;
    margin-bottom: 3px;
    word-break: break-word;
}

.actividad-check-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.actividad-check-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
}

.tag-ponencia {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.tag-taller {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.tag-panel {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.tag-concurso {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.actividad-check-fecha {
    font-size: 11.5px;
    color: var(--reg-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.actividad-empty-msg {
    text-align: center;
    padding: 30px 20px;
    color: var(--reg-muted);
    font-size: 14px;
}

.actividad-empty-msg i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #cbd5e1;
}

/* Error de validación de checkboxes */
.checkbox-error-container .validationStyle,
.actividades-error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 10px;
    color: var(--reg-error);
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* ========================================================
   VALIDACIÓN - Mensajes de error
   ======================================================== */
span.validationStyle {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 8px;
    color: var(--reg-error);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 4px;
}

span.validationStyle::before {
    content: '⚠';
    margin-right: 6px;
    font-size: 12px;
}

/* ========================================================
   BOTÓN SUBMIT MODERNO
   ======================================================== */
.registro-submit-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 2px solid #f1f5f9;
}

.btn-registro-submit,
.contenedor-registro button[type="submit"],
.contenedor-registro button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    position: relative;
    overflow: hidden;
    outline: none !important;
}

.btn-registro-submit::before,
.contenedor-registro button[type="submit"]::before,
.contenedor-registro button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-registro-submit:hover,
.contenedor-registro button[type="submit"]:hover,
.contenedor-registro button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.5);
    background: linear-gradient(135deg, #0369a1 0%, #012d54 100%);
    color: #ffffff;
}

.btn-registro-submit:hover::before {
    left: 100%;
}

.btn-registro-submit:active,
.contenedor-registro button:active {
    transform: translateY(0);
}

/* ========================================================
   PESTAÑAS DE NAVEGACIÓN (Registro)
   ======================================================== */
.registro-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.registro-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--reg-muted);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 10px 10px 0 0;
}

.registro-tab-btn:hover {
    color: var(--reg-primary);
    background: rgba(2, 132, 199, 0.05);
}

.registro-tab-btn.active {
    color: var(--reg-primary) !important;
    border-bottom-color: var(--reg-primary) !important;
    background: rgba(2, 132, 199, 0.06);
}

/* Sobreescribir estilos del nav-tabs de Bootstrap */
.nav-tabs .nav-link {
    color: var(--reg-muted) !important;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 10px 10px 0 0;
    transition: all 0.25s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--reg-primary) !important;
    background: rgba(2, 132, 199, 0.05);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--reg-primary) !important;
    background: rgba(2, 132, 199, 0.07) !important;
    border-color: transparent transparent var(--reg-primary) transparent !important;
}

.nav-tabs .nav-link:not(.active) {
    color: var(--reg-muted) !important;
}

/* ========================================================
   SECCIÓN DE PAGO
   ======================================================== */
.pago-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid rgba(2, 132, 199, 0.2);
    border-radius: 18px;
    padding: 24px;
    margin-top: 20px;
}

.pago-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed rgba(2, 132, 199, 0.3);
}

.pago-icon-wrap {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #012d54, #0284c7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}

.pago-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--reg-navy);
    letter-spacing: 0.3px;
    margin: 0;
}

.pago-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pago-field {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
}

.pago-field-full {
    grid-column: 1 / -1;
}

.label-pago {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.pago-field p {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--reg-text);
    margin: 0;
    line-height: 1.4;
}

.pago-amount-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 900;
    color: var(--reg-navy);
}

/* ========================================================
   RESPONSIVO
   ======================================================== */
@media (max-width: 992px) {

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

    .registro-card-header {
        padding: 22px 22px 20px 22px;
    }

    .registro-card-body {
        padding: 22px 22px;
    }

    .registro-header-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    .registro-grid-3,
    .registro-grid-4,
    .registro-grid-2 {
        grid-template-columns: 1fr;
    }

    .registro-card-header {
        padding: 20px 18px;
    }

    .registro-card-body {
        padding: 18px 18px;
    }

    .registro-header-title {
        font-size: 1.35rem;
    }

    .pago-grid {
        grid-template-columns: 1fr;
    }

    .btn-registro-submit,
    .contenedor-registro button[type="submit"],
    .contenedor-registro button {
        width: 100%;
    }
}