:root {
    --colorPrimario: #317f87;
    --colorSecundario: rgba( 49, 135, 127,0.8);
    --colorBody: rgba(255, 255, 255, 0.95);
    --colorBoton: rgba(64, 186, 223, 0.8);
    --colorError: #ff4444;
    --colorTexto: #333333;
    --colorFondo: #f8f9fa;
    --colorBorder: rgba(132, 52, 76, 0.1);
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, var(--colorPrimario), var(--colorBody));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-container {
    background: var(--colorPrimario);
    color: var(--colorBody);
    padding: 0 20px;
    height: 70px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

#volver {
    width: 65px;
    height: 45px;
    padding: 12px;
    background: white;
    border: 2px solid var(--colorPrimario);
    border-radius: 10px;
    margin: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

#volver:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#volver svg {
    width: 24px;
    height: 24px;
    fill: var(--colorPrimario);
    stroke: var(--colorPrimario);
    transition: transform 0.3s ease;
}

#volver:hover svg {
    transform: scale(1.1);
    fill: var(--colorSecundario);
    stroke: var(--colorSecundario);
}

h2 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    font-size: 1.5em;
    color: var(--colorBody);
}

h3 {
    flex-grow: 1;
    text-align: center;
    font-size: 1.2em;
    margin: 15px 0;
    color: var(--colorPrimario);
}

/* Estilo de los campos */
label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: var(--colorPrimario);
}

input, textarea, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 2px solid var(--colorPrimario);
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

/* Contenedores específicos */
.tipologia-container {
    border: 2px solid var(--colorPrimario);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    background-color: rgba(209, 234, 255, 0.2);
}

.search-box {
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--colorPrimario);
    border-radius: 5px;
}

.opciones-tipologia {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.opcion {
    margin: 8px 0;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.opcion input[type="radio"] {
    margin-right: 10px;
}

.opcion label {
    margin-top: 0;
    display: inline;
}

.opcion:hover {
    background-color: rgba(0, 47, 108, 0.1);
}

.select-empresa-container,
.relacion-container,
.descripcion-container, 
.fecha-container, 
.testigos-container, 
.evidencias-container,
.anonimo-container,
.form-group {
    margin: 15px 0;
    padding: 15px;
    border: 2px solid var(--colorPrimario);
    border-radius: 5px;
    background-color: rgba(209, 234, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#datos-personales {
    margin: 15px 0;
    padding: 15px;
    border: 2px solid var(--colorPrimario);
    border-radius: 5px;
    background-color: rgba(209, 234, 255, 0.2);
}

.datos-field {
    margin: 10px 0;
}

.datos-field label {
    display: block;
    margin-bottom: 5px;
}

.datos-field input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--colorPrimario);
    border-radius: 5px;
}

/* Estilos de confirmación */
.confirmation-container {
    text-align: center;
    padding: 30px;
}

.confirmation-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.confirmation-message {
    font-size: 24px;
    margin-bottom: 30px;
}

.id-container {
    margin: 30px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border: 2px solid var(--colorPrimario);
    border-radius: 5px;
    text-align: center;
}

.id-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--colorPrimario);
}

.id-value {
    font-size: 24px;
    font-family: monospace;
    padding: 10px 15px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.copy-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--colorPrimario), var(--colorBoton));
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.copy-button:hover {
    background: linear-gradient(135deg, #286067, rgba(40, 96, 103, 0.8));
    background-position: 100% 50%;
    color: white;
}

.copy-message {
    display: none;
    color: #4CAF50;
    margin-top: 10px;
    font-weight: bold;
}

/* Botón Enviar */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--colorPrimario), var(--colorBoton));
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(135deg, #286067, rgba(40, 96, 103, 0.8));
    background-position: 100% 50%;
    color: var(--colorBody);
}
.home-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--colorPrimario), var(--colorBoton));
    border: none;
    color: var(--colorBody);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background: linear-gradient(135deg, #286067, rgba(40, 96, 103, 0.8));
    background-position: 100% 50%;
    color: var(--colorBody);
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .header-container {
        height: auto;
        padding: 10px;
    }
}


/* gestiones audio */

h1 {
    color: var(--colorPrimario);
    text-align: center;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    /* background-color: #007bff; */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}
button:disabled {
    background-color: #cccccc;
    background: #cccccc;
    cursor: not-allowed;
}
#audioControls {
    margin-top: 20px;
    text-align: center;
}
#audioPreview {
    width: 100%;
    margin-top: 15px;
}
#status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}
#status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.no-hover:hover {
    background-color: transparent;
    background: transparent;
}