/* ===== ESTILOS PERSONALIZADOS PARA SISTEMA DE GESTIÓN PAGOS ===== */

/* Variables CSS para consistencia */
:root {
    --primary-color: #13357b;
    --success-color: #28a745;
    --info-color: #13357b;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease-in-out;
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: #13357b;
}

/* ===== NAVBAR PERSONALIZADO ===== */
.navbar-brand {
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.brand-image {
    transition: var(--transition);
}

/* ===== CONTENT HEADER ===== */
.content-header {
    color: var(--light-color);
    margin-bottom: 0;
}

.content-header h1 {
    color: var(--light-color);
    text-shadow: 2px 2px 4px #00000090;
}

.content-header .lead {
    color: var(--light-color);
    text-shadow: 2px 2px 4px #00000090;
    font-size: 1.1rem;
}

/* ===== CARDS MEJORADAS ===== */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-primary.card-outline {
    border-top: 3px solid var(--primary-color);
}

.card-header {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-title {
    font-weight: 600;
    color: #343a40;
}

/* ===== SECCIÓN DE BENEFICIOS ===== */
.topic__rows {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.topic__rows__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    min-width: 150px;
    flex: 1;
    max-width: 200px;
    position: relative;
    overflow: hidden;
}

.topic__rows__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.topic__rows__item:hover::before {
    left: 100%;
}

.topic__rows__item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.topic__rows__item i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.topic__rows__item:hover i {
    color: var(--info-color);
    transform: scale(1.2);
}

.topic__rows__item span {
    font-weight: 600;
    font-size: 1rem;
    color: #343a40;
    transition: var(--transition);

}

.topic__rows__item:hover span {
    color: var(--primary-color);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.topic__rows__item {
    animation: fadeInUp 0.6s ease-out;
}

.topic__rows__item:nth-child(1) {
    animation-delay: 0.1s;
}

.topic__rows__item:nth-child(2) {
    animation-delay: 0.2s;
}

.topic__rows__item:nth-child(3) {
    animation-delay: 0.3s;
}

.topic__rows__item:nth-child(4) {
    animation-delay: 0.4s;
}

.topic__rows__item:nth-child(5) {
    animation-delay: 0.5s;
}

.topic__rows__item:nth-child(6) {
    animation-delay: 0.6s;
}

/* ===== FOOTER ===== */
.main-footer {
    color: rgb(19, 53, 123);
    border-top: none;
}

.main-footer a {
    color: rgba(19, 53, 123, 0.902);
    text-decoration: none;
    transition: var(--transition);
}

.main-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .topic__rows {
        flex-direction: column;
        align-items: center;
    }

    .topic__rows__item {
        max-width: 100%;
        width: 100%;
        margin-bottom: 1rem;
    }

    .content-header h1 {
        font-size: 1.75rem;
    }

    .content-header .lead {
        font-size: 1rem;
    }

    .navbar-brand .brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .topic__rows__item {
        padding: 1rem 0.5rem;
    }

    .topic__rows__item i {
        font-size: 2rem;
    }

    .topic__rows__item span {
        font-size: 0.9rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ===== UTILIDADES ADICIONALES ===== */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--info-color)) 1;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.topic__rows__item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ===== EFECTOS ADICIONALES ===== */
.content-wrapper {
    background-image: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%),
        url('../public/images/Fondo.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.card-body {
    position: relative;
}

.card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-body::before {
    opacity: 1;
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.topic__rows__item:hover {
    animation: pulse 2s infinite;
}



/* Botones */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #13357b 0%, #1e4a8c 100%);
    box-shadow: 0 4px 15px rgba(19, 53, 123, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 53, 123, 0.4);
    background: linear-gradient(135deg, #0f2a63 0%, #1a4078 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}










label.required::after {
    content: " (*)";
    color: var(--danger-color);
    font-weight: bold;
    font-size: 16px;
}

.input-container {
    display: flex;
    align-items: center;
    max-width: 400px;
}

.input-container input {
    flex: 1;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    padding: 0 15px;
    outline: none;
    font-size: 14px;
}

.input-container button {
    height: 40px;
    width: 50px;
    border: none;
    background: linear-gradient(to right, rgb(28, 89, 211), #13357b);
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.input-container button i {
    color: white;
    font-size: 16px;
}

.input-container button:hover {
    background: linear-gradient(to right, rgb(28, 89, 211), #13357b);
}

.input-container button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mensaje-resultado {
    margin-top: 5px;
    min-height: 20px;
}

/* Resto de estilos... */
#formulario-pasos {
    display: none;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.step.active .step-number {
    background: #1c59d3;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-navigation {
    display: flex;
    justify-content: between;
    margin-top: 30px;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #1c59d3;
    background: #f0f8ff;
}

.file-upload-area.dragover {
    border-color: #28a745;
    background: #f0fff0;
}

.radio-options {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.swal-wide {
    width: 600px !important;
}



.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: #13357b;
    font-size: 10px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.security-badge i {
    margin-right: 5px;
}

.btn-icon {
    background-color: #fff;
    color: #dc3545; /* Bootstrap "danger" color */
    border: 1px solid #dc3545;
    padding: 6px 10px;
    border-radius: 5px;
    transition: none;
}

.btn-icon:hover {
    background-color: #fff; /* no cambia el fondo */
    color: #dc3545;          /* mantiene el color */
    border-color: #dc3545;
    box-shadow: none;
}
/* Estilo general del grupo */
.form-group {
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', sans-serif;
}

/* Etiqueta de título */
.form-group > label.required {
    font-weight: 600;
    font-size: 0.95rem;
    color: #13357b;
    display: block;
    margin-bottom: 0.4rem;
}

/* Contenedor del botón de carga */
.file label#archivo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f5f7fa;
    color: #13357b;
    border: 2px dashed #13357b;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%; /* Ahora ocupa el ancho del form-group */
    box-sizing: border-box; /* Evita que padding o borde lo desborden */
}

.file label#archivo i {
    font-size: 1.1rem;
}

/* Hover moderno */
.file label#archivo:hover {
    background: #13357b;
    color: #fff;
    border-color: #13357b;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}


/* Info del archivo */
#fileInfo {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

/* Texto e íconos del archivo */
#fileInfo p {
    font-size: 0.85rem;
    color: #333;
}

#fileInfo img {
    vertical-align: middle;
}

#fileInfo a {
    color: #13357b;
    text-decoration: none;
}

#fileInfo a:hover {
    text-decoration: underline;
}

/* Botón eliminar */
#btnEliminar {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 6px 10px;
    transition: background 0.3s ease;
}

#btnEliminar:hover {
    background: #a30000;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 576px) {
    .file label#archivo {
        width: 100%;
        justify-content: center;
    }
    #fileInfo p {
        max-width: 200px;
    }
}

/* Contenedor */
.form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #13357b;
}

/* Ocultar el checkbox por defecto */
.form-check-custom .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #13357b;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Efecto hover */
.form-check-custom .form-check-input:hover {
    border-color: #0f2b5c;
}

/* Estado marcado */
.form-check-custom .form-check-input:checked {
    background-color: #13357b;
    border-color: #13357b;
}

/* Icono de check */
.form-check-custom .form-check-input:checked::after {
    content: "✔";
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -53%);
}

/* Texto */
.form-check-custom .form-check-label {
    cursor: pointer;
    flex: 1;
}
