
/* ========================================
   CALCULADORA HEX/BIN - CSS UNIFICADO
   Merge de: timecalc.css + timecalc-big.css + inline styles
   ======================================== */

/* =====================================
   1. BASE Y TIPOGRAFÍA
   ===================================== */
body {
    font-family: 'Exo 2', sans-serif;
    background-color: white;
}

/* =====================================
   2. LAYOUT PRINCIPAL
   ===================================== */
.container {
    padding-left: 15px;
    width: 200px;
    min-width: 365px;
}

/* Responsive: Pantallas grandes (≥537px) */
@media screen and (min-width: 537px) {
    .container {
        padding-left: 100px;
        max-width: 800px;
        width: 600px;
    }
}

/* =====================================
   3. ENCABEZADOS Y TEXTO
   ===================================== */
.titulo {
    text-align: left;
    font-size: 1.5rem;
    font-weight: bold;
}

.intro {
    text-align: left;
    padding-top: 1rem;
    line-height: 1.6rem;
}

.ejemplo {
    line-height: 1rem;  /* Reducir el espacio entre líneas de ejemplos */
    font-size: smaller;
}

sub {
    font-size: .7rem;
}


/* =====================================
   4. FORMULARIOS Y CONTROLES
   ===================================== */
input {
    font-family: 'Exo 2', sans-serif;
    background-color: white;
    border: 1px solid #CCC;
    margin-right: .8em;
}

.input {
    text-align: left;
    padding-top: 1rem;
}

/* Controles de precisión (del inline CSS) */
.precision-control {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* =====================================
   5. BOTONES
   ===================================== */

/* Botón Reset (del inline CSS) */
#btnReset {
    /*display: none;*/
    margin-top: 1rem;
}

/* =====================================
   6. RESULTADOS Y SEPARADORES
   ===================================== */
.separador {
    border-bottom: 1px solid #dcd6d6;  /* Era border-top en inline, border-bottom en original */
    margin-bottom: 1em;
    padding-bottom: 1em;
}

.noresult {
    display: none;
}

/* Estilos de líneas de resultado (del inline CSS) */
.result-line {
    margin: 8px 0;
    padding: 5px;
    border-left: 3px solid #667eea;
    padding-left: 10px;
}

.error {
    color: #e74c3c;
    border-left-color: #e74c3c;
}

.warning {
    color: #f39c12;
    font-size: 0.9em;
    font-style: italic;
}

/* =====================================
   7. TABLAS Y GRUPOS (del CSS original)
   ===================================== */


/* =====================================
   8. PIE DE PÁGINA
   ===================================== */
.bottom {
    text-align: left;
    padding-top: 1rem;
    padding-left: 5rem;
    font-size: .6rem;
}

.bottom a {
    text-decoration: none;
    color: #990033;
}

/* =====================================
   9. RESPONSIVE: MOBILE
   ===================================== */
@media screen and (max-width: 536px) {
    .container {
        padding-left: 15px;
        width: 200px;
        min-width: 365px;
    }
    
    .bottom {
        padding-left: 1rem;  /* Menos padding en móviles */
    }
}