:root {
    --primary-color: #0d5aa7;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --code-bg: #e9ecef;
    --success-color: #28a745;
    --info-color: #17a2b8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #fff;
    color: var(--text-color);
}

header {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

header h1 {
    margin: 0;
    color: var(--primary-color);
}

main {
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.operation {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.op-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
}

.op-header:hover {
    background-color: #e9ecef;
}

.op-header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.op-method {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    color: #fff;
    margin-right: 1rem;
    text-transform: uppercase;
}

.op-method.post { background-color: var(--success-color); }
.op-method.get { background-color: var(--info-color); }

.op-path {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 1.1rem;
    color: var(--text-color);
}

.op-summary {
    font-size: 0.9rem;
    margin-left: auto;
    color: #6c757d;
    padding-left: 2rem;
}

.op-content {
    display: none; /* Oculto por defecto */
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.op-content.active {
    display: block;
}

h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.parameters, .try-out, .response {
    margin-bottom: 1.5rem;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
}
.param-table th, .param-table td {
    text-align: left;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}
.param-table th {
    background-color: var(--secondary-color);
}

.code-block {
    background-color: var(--code-bg);
    padding: 1rem;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.btn-execute {
    background-color: var(--primary-color);
}
.btn-execute:hover {
    background-color: #0b4a8a;
}

.btn-download {
    background-color: var(--info-color);
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background-color: #138496;
}


#api-endpoint-url {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    font-family: monospace;
}

.sandbox-credentials {
    background-color: #fff3cd; /* Color amarillo claro para advertencia */
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto; /* Centrar y dar espacio */
    max-width: 1000px; /* Igual que el main content */
    color: #856404; /* Color de texto para advertencia */
}

.sandbox-credentials h2 {
    color: #856404;
    margin-top: 0;
    border-bottom: 1px solid #ffeeba;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sandbox-credentials p {
    margin-bottom: 0.5rem;
}

.sandbox-credentials p.note {
    font-size: 0.9em;
    color: #856404;
    border-top: 1px dashed #ffeeba;
    padding-top: 1rem;
    margin-top: 1rem;
}

.response-explanation {
    background-color: #e6f7ff; /* Un color azul claro para información */
    border: 1px solid #91d5ff;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #003a61;
}

.response-explanation h4 {
    color: #003a61;
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #91d5ff;
    padding-bottom: 0.3rem;
}

.response-explanation p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

