/* Estilos generales del formulario */
.senderismo-485-wrap { 
    max-width: 700px; 
    margin: 20px auto; 
    padding: 20px; 
    background: #333; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

/* Título del formulario en blanco */
.senderismo-485-wrap h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.senderismo-485-form-group { 
    margin-bottom: 20px; 
}

.senderismo-485-label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
    color: #ffffff;
}

.senderismo-485-input, .senderismo-485-select, .senderismo-485-textarea { 
    width: 100%; 
    padding: 12px; 
    box-sizing: border-box; 
    margin-bottom: 5px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-size: 14px; 
    color: #000000;
    background-color: #ffffff;
}

.senderismo-485-input:focus, .senderismo-485-select:focus, .senderismo-485-textarea:focus { 
    border-color: #0073aa; 
    outline: none; 
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3); 
    background-color: #ffffff;
}

.senderismo-485-description { 
    font-size: 0.8em; 
    color: #cccccc;
    margin-top: 5px; 
}

.senderismo-485-button-primary { 
    background: #0073aa; 
    border-color: #0073aa; 
    padding: 12px 24px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    color: white;
    border: none;
    border-radius: 4px;
}

.senderismo-485-button-primary:hover { 
    background: #005a87; 
    border-color: #005a87; 
}

.senderismo-485-error-message { 
    color: #ff0000; 
    text-align: center; 
    padding: 15px; 
    margin: 20px 0; 
    border: 2px solid #ff0000; 
    background-color: #ffe6e6; 
    border-radius: 6px; 
    font-weight: bold; 
    font-size: 16px; 
}

.senderismo-485-success-message { 
    color: #008000; 
    text-align: center; 
    padding: 10px; 
    margin: 10px 0; 
    border: 1px solid #008000; 
    background-color: #e6ffe6; 
    border-radius: 4px; 
    font-weight: bold; 
}

/* Layout del formulario */
.senderismo-485-form-grid-3 { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 15px; 
}

.senderismo-485-form-grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

/* Estilos para la pantalla de éxito */
.senderismo-485-confirmation-container {
    text-align: center; 
    padding: 40px; 
    background: #f9f9f9; 
    border-radius: 8px; 
    margin: 20px 0; 
}

.senderismo-485-success-icon {
    font-size: 60px; 
    color: #008000; 
    margin-bottom: 20px; 
}

.senderismo-485-confirmation-message {
    font-size: 18px; 
    line-height: 1.6; 
    margin-bottom: 30px; 
    color: #333;
}

.senderismo-485-confirmation-actions {
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 30px; 
}

.senderismo-485-confirmation-info {
    margin-top: 30px; 
    padding: 15px; 
    background: #e6ffe6; 
    border-radius: 6px; 
    border: 1px solid #008000; 
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .senderismo-485-form-grid-3, 
    .senderismo-485-form-grid-2 { 
        grid-template-columns: 1fr; 
        gap: 10px; 
    }
    
    .senderismo-485-wrap { 
        max-width: 95%; 
        margin: 10px auto; 
        padding: 15px; 
    }
    
    .senderismo-485-confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos para opciones del select */
.senderismo-485-select option {
    color: #000000;
    background-color: #ffffff;
}

/* Placeholder en gris */
.senderismo-485-input::placeholder {
    color: #666666;
}

/* Campos con error */
.senderismo-485-field-error {
    border-color: #ff0000 !important;
    background-color: #ffe6e6 !important;
}

/* Estilos para el formulario de reimpresión */
.senderismo-485-info-box {
    background: #e8f4fd;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.senderismo-485-info-box p {
    margin: 0;
    color: #084298;
    font-size: 14px;
}

/* Estilos para mensajes de ayuda */
.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Estilos para botones de acción */
.action-button {
    background: #28a745;
    border-color: #28a745;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.action-button:hover {
    background: #218838;
    border-color: #1e7e34;
    color: white;
}

/* Estilos específicos para formulario de búsqueda */
.search-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* Estilos para pestañas en admin */
.senderismo-485-tabs {
    display: flex;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 20px;
}

.senderismo-485-tab {
    padding: 12px 24px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
    font-size: 14px;
}

.senderismo-485-tab:hover {
    background: #e0e0e0;
    color: #333;
}

.senderismo-485-tab.active {
    background: #0073aa;
    color: white;
}

.senderismo-485-tab-content {
    display: none;
    animation: fadeIn 0.3s;
    padding: 20px 0;
}

.senderismo-485-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos específicos para admin */
.senderismo-485-admin-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #0073aa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.senderismo-485-admin-panel h2 {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Tabla de información en admin */
.senderismo-485-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.senderismo-485-info-table th,
.senderismo-485-info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.senderismo-485-info-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    width: 30%;
}

.senderismo-485-info-table tr:hover {
    background: #f8f9fa;
}

/* Botones específicos para admin */
.senderismo-485-button-admin {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.senderismo-485-button-admin:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
}

.senderismo-485-button-admin-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.senderismo-485-button-admin-secondary:hover {
    background: #545b62;
    border-color: #545b62;
}

/* Responsive para admin */
@media (max-width: 768px) {
    .senderismo-485-tabs {
        flex-direction: column;
    }
    
    .senderismo-485-tab {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 4px;
    }
    
    .senderismo-485-info-table {
        display: block;
        overflow-x: auto;
    }
}

/* Ocultar flechas en campo numérico */
input[type="number"].senderismo-485-input::-webkit-outer-spin-button,
input[type="number"].senderismo-485-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"].senderismo-485-input {
    -moz-appearance: textfield;
}

/* Opciones deshabilitadas en el select */
.senderismo-485-select option:disabled {
    color: #999999;
    background-color: #f0f0f0;
}