* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e9ecef;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header con logo y título en la misma línea */
.header {
    background: #2c5f8a;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 45px;
    width: auto;
    display: block;
}

.header h1 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

/* Acordeón */
.accordion-item {
    border-bottom: 1px solid #dee2e6;
}

.accordion-header {
    background: #f8f9fa;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-title {
    font-weight: bold;
}

.accordion-icon {
    font-size: 12px;
    color: #666;
}

.accordion-content {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.accordion-content.active {
    display: block;
}

.info-grid {
    display: block;
}

.info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: bold;
    width: 180px;
    color: #333;
}

.value {
    flex: 1;
    color: #555;
}

/* Footer y botón Nueva Consulta */
.footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.new-consulta-link {
    display: inline-block;
    padding: 8px 20px;
    background: #2c5f8a;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.new-consulta-link:hover {
    background: #1e4564;
}

/* Estilos para nueva consulta */
.search-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.search-form {
    display: inline-block;
}

.form-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 14px;
    width: 200px;
}

.search-btn {
    padding: 8px 20px;
    background: #2c5f8a;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.search-btn:hover {
    background: #1e4564;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
}

.search-result {
    margin: 20px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
}

.result-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.result-header h3 {
    font-size: 16px;
    color: #333;
}

.result-content {
    padding: 15px;
}

.result-footer {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.view-link, .back-link {
    color: #2c5f8a;
    text-decoration: none;
    font-size: 14px;
}

.view-link:hover, .back-link:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .accordion-header {
        padding: 10px 15px;
    }
    
    .accordion-content {
        padding: 15px;
    }
    
    .form-group {
        flex-direction: column;
    }
}