/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-background);
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    z-index: 100000;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-rs);
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
}

.modal-body {
    padding: 10px 0;
}

.modal-title {
    margin-top: 0;
    color: var(--color-rs);
    padding-right: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Estilos para el encabezado */
.header a {
    text-decoration: none;
}

.header-link {
    color: var(--color-blanco);
    font-weight: 600;
}

.header {
    display: flex;
    align-items: center;
}

.header .row {
    align-items: center;
    width: 100%;
}

.header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Estilos para el formulario y respuestas */
.form-response {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-response.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.form-response.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-checkbox input {
    margin-right: 10px;
}

.form-privacy {
    font-size: 14px;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Estilos para indicadores de carga */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-rs);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para centrar elementos */
.d-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}