/* ============================================= */
/* ESTILOS GENERALES                             */
/* ============================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e8e8e8;
    padding: 20px;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 5px;
    color: #2c3e50;
}

.subtitulo {
    text-align: center;
    font-size: 0.75rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* ============================================= */
/* SKIP LINK (ACCESIBILIDAD)                     */
/* ============================================= */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f39c12;
    color: #000;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* ============================================= */
/* SECCIONES                                     */
/* ============================================= */

.seccion {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.seccion h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 0.9rem;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

/* ============================================= */
/* CAMPOS DE ENTRADA                             */
/* ============================================= */

.campo {
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #2c3e50;
}

input, textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Placeholder con mejor contraste */
::placeholder {
    color: #666;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #666;
}

::-ms-input-placeholder {
    color: #666;
}

/* Focus visible para navegación por teclado */
*:focus {
    outline: 3px solid #f39c12;
    outline-offset: 3px;
}

input:focus, textarea:focus, button:focus {
    outline: 3px solid #f39c12;
    outline-offset: 2px;
}

.fila-2 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fila-2 .campo {
    flex: 1;
}

/* ============================================= */
/* RESULTADOS                                    */
/* ============================================= */

.resultados {
    margin-top: 20px;
    background: #ecf0f1;
    border-radius: 12px;
    padding: 14px;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1rem;
}

.resultado-item:first-child {
    border-bottom: 1px solid #bdc3c7;
}

.titular {
    color: #27ae60;
    font-weight: bold;
    font-size: 1rem;
}

.chofer {
    color: #2980b9;
    font-weight: bold;
    font-size: 1rem;
}

.total-numero {
    font-size: 1.1rem;
    font-weight: bold;
}

.estadistica {
    background: #fff8e1;
    border-radius: 8px;
    padding: 8px;
    margin-top: 10px;
}

.estadistica-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.8rem;
}

/* ============================================= */
/* BOTONERA                                      */
/* ============================================= */

.botonera {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 16px 0;
}

.botonera button {
    flex: 1;
    padding: 12px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: #3498db;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.botonera button:active {
    transform: scale(0.98);
    background: #2980b9;
}

/* ============================================= */
/* DETALLE DE CUENTA                             */
/* ============================================= */

.detalle-content {
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid #ddd;
}

.detalle-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.detalle-item:last-child {
    border-bottom: none;
}

.detalle-total-titular {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.9rem;
}

.detalle-total-chofer {
    color: #2980b9;
    font-weight: bold;
    font-size: 0.9rem;
}

.detalle-subtotal {
    font-weight: bold;
    color: #e67e22;
}

.detalle-operacion {
    color: #2c3e50;
    font-size: 0.7rem;
    text-align: left;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ccc;
}

.separador {
    border-top: 2px solid #ccc;
    margin: 8px 0;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */

.footer {
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
    font-size: 0.65rem;
    color: #2c3e50;
    border-top: 1px solid #ecf0f1;
}

.footer a {
    color: #2c3e50;
    text-decoration: none;
}

.footer a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* ============================================= */
/* FOOTER CON SVG (igual que terminos.html)      */
/* ============================================= */

.code-symbol {
    color: #3498db;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7f8c8d;
    font-size: 13px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-mis-proyectos {
    margin: 15px 0;
}

.footer-mis-proyectos a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.footer-mis-proyectos a:hover {
    background: rgba(52, 152, 219, 0.2);
    text-decoration: none;
}

.footer-copyright {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #95a5a6;
    font-size: 12px;
}

.footer svg {
    width: 14px;
    height: 14px;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */

@media (max-width: 500px) {
    .container {
        padding: 16px;
    }
    .total-numero {
        font-size: 1rem;
    }
    .botonera {
        flex-direction: column;
    }
}
