/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-light);
}

.container {
    max-width: 1200px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 66px;
}

.navbar-brand {
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.btn-outline-light:hover {
    color: var(--text-dark);
    background-color: var(--accent-color);
}

/* Encabezado */
header h1 {
    font-weight: 600;
    color: #2c3e50;
}

header p {
    color: #7f8c8d;
}

/* Tarjeta principal */
.card {
    border-radius: 10px;
    border: none;
    overflow: hidden;
}

.card-body {
    padding: 2rem;
}

/* Pasos del formulario */
.step h3 {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-outline-secondary {
    color: #7f8c8d;
    border-color: #bdc3c7;
}

.btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-success:hover, .btn-success:focus {
    background-color: #27ae60;
    border-color: #27ae60;
}

/* Previsualización de documentos */
.preview-container {
    min-height: 150px;
    border: 1px dashed #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    overflow: hidden;
    padding: 10px;
}

.preview-container img {
    height: 200px; /* Alto fijo */
    width: auto; /* Ancho automático */
    object-fit: contain;
}

.preview-container.has-image {
    border: 1px solid var(--primary-color);
}

/* Estilos para la previsualización de PDF */
.preview-container.has-pdf {
    border: 1px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

.pdf-preview p {
    margin-top: 10px;
    font-size: 0.9rem;
    word-break: break-word;
    max-width: 100%;
}

/* Indicador de pasos */
.steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
}

.step-dot.active {
    background-color: var(--primary-color);
}

/* Animaciones */
.step {
    transition: all 0.3s ease;
}

/* Estilo global para todas las imágenes */
img {
    height: 40px; /* Alto fijo de 100px para todas las imágenes */
    width: auto; /* Ancho automático */
    max-width: 100%; /* Para evitar que se salga del contenedor */
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Mantenemos el mismo alto de 100px para dispositivos móviles */
    /* img {
        height: 100px;
    } */
}

/* Estilos para el paso de confirmación */
#step5 svg {
    color: #2ecc71;
}

/* Estilos para los campos de carga de archivos */
.document-upload {
    position: relative;
}

.document-upload .form-control {
    padding: 0.75rem;
}

/* Estilos para mensajes de error */
.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

/* Estilos para el spinner de carga */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* Tooltip personalizado */
.custom-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: #7f8c8d;
    cursor: pointer;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
