:root {

    --color-fondo: #e4e4d9;
    --color-tabla: #ddd;
    --color--cabezatabla: rgb(149, 201, 201);
    --font-size-base: 1rem;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo);
    height: 100%;
}

.contenedor {
    display: grid;
     height: 100vh;
    grid-template-columns: 65% 35%;
    grid-template-rows: 15% 45% 40%;
    background-color: var(--color-fondo);

    justify-items: center;
    align-items: start;
    gap: 0px;
    margin-top: 0vh;
}

.encabezado1 {
    grid-column: 1/2;
    grid-row: 1/2;
    background-color: var(--color-fondo);

    width: 100%;
    height: 100%;
    margin-top: 0%;
    margin-bottom: 0px;
    justify-content: center;
    display: flex;
    align-items: flex-end;
}

.encabezado2 {
    grid-column: 2/3;
    grid-row: 1/2;
    background-color: var(--color-fondo);
    width: 100%;
    height: 100%;
    margin-top: 0%;
    margin-bottom: 0px;
    justify-content: center;
    display: flex;
    align-items: flex-end;
}

table {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    border-collapse: separate !important;
    /* Evita el conflicto con collapse */
    justify-self: center;
    align-self: start;
    margin-top: 0 !important;
    height: 60%;
    text-align: right;
    display: table !important;
    /* Asegura el display correcto */
    word-wrap: break-word;
    border: 0px dotted #8f8585;
    background-color: var(--color-tabla);
    border-radius: 12px !important;
    /* Fuerza el redondeo */
    overflow: hidden;
    /* Esto puede ayudarte a renderizar correctamente los bordes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Agrega sombra para que sea más visible */
}

.grafico {
    grid-column: 2/3;
    grid-row: 2/4;
    background-color: var(--color-fondo);
    margin: 0;
    height: 80%;
    width: 80%;
    justify-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.base {
    background-color: var(--color-fondo);
    background-color: cornflowerblue;
    background-image: url(./apoyo/base1.jpg);
    background-size: cover;
    width: 70%;
    justify-self: center;
    align-self: center;
    margin: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}




.sbase {

    background-color: var(--color-fondo);
    background-color: rgb(134, 181, 126);
    background-image: url(./apoyo/subbase1.jpg);
    background-size: cover;
    width: 70%;
    justify-self: center;
    align-self: center;
    margin: auto;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

}

.ssuperior {

    background-color: var(--color-fondo);
    background-color: rgb(173, 70, 118);
    background-image: url(./apoyo/subsup1.jpg);
    background-size: cover;
    width: 70%;
    justify-self: center;
    align-self: center;
    margin: auto;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

}

.subrasante {
    background-color: var(--color-fondo);
    background-color: rgb(190, 102, 188);
    background-image: url(./apoyo/subra1.jpg);
    background-size: cover;
    width: 70%;
    justify-self: center;
    align-self: center;
    margin: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}



th {
    background-color: var(--color--cabezatabla);
    font-size: 1.2vh;
    height: 4vh;
    border: 1x dotted #8f8585;
    text-align: center;
}

td {
    font-size: 1.0vh;
    border: 1px dotted #8f8585;
    padding-right: 2vh;
    height: 2vh;
}



h1 {
    font-size: 1.2rem;
}

.col1 {
    text-align: left;
    width: 10vw;
    font-size: 1.2vh;
    padding-left: 1%;
}

.col2,
.col3,
.col4,
.col5,
.col6 
{
    width: 6vw;
}


input {
    width: 60%;
    font-size: 0.6rem;
    text-align: center;
    
}

.salida {
    background-color: rgb(166, 194, 140);
    font-size: 0.70rem;
    text-align: center;
}


.lineaH3,
.lineaH2,
.lineaH1 {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: rgb(33, 33, 21);
    left: -3%;
}

.textlineaH1,
.textlineaH2,
.textlineaH3 {
    position: absolute;
    font-size: 1.0rem;
    color: rgb(46, 39, 39);
    right: 0.3%;

}

.IE3,
.IE2,
.IE1 {
    position: absolute;
    font-size: 0.8rem;
    color: rgb(46, 39, 39);
    left: -3%;
}

h3 {
    font-size: 1.0rem !important;
        background-color: #ebebeb; /* Fondo oscuro para alto contraste */
        padding: 5px 10px; /* Espaciado alrededor del texto */
        text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7); /* Sombra fuerte para el texto */
       border-radius: 7px;
}

.fila3 .col4, .fila3 .col5, .fila3 .col6  {
    border-width: 2px;
}

.fila12 .col5 {
    font-size: 0.45rem;
    text-align: left;
}



.fila7 .col3, .fila9 .col2, .fila9 .col3, .fila10 .col5, .fila10 .col6, .fila4 .col4 {
    font-size: 0.70rem; /* warning  EE limite*/
    text-align: center;
} 

.btn {
    background-color: #4CAF50;
    /* Verde */
    border: none;
    color: white;
    padding: 2px 5px;
    /* Reducir el padding para disminuir la altura */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1vh;
    margin: 0px 0px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px #999;
    /* Sombra para efecto 3D */
}

.btn:hover {
    background-color: #45a049;
    /* Verde oscuro */
}

.btn:active {
    background-color: #3e8e41;
    box-shadow: 0 2px #666;
    /* Sombra reducida para efecto de presionado */
    transform: translateY(2px);
    /* Mover el botón hacia abajo */
}

/* Estilo para celdas sin borde ni fondo */
.no-border {
    border: none;
    background: none;
}

/* Safari (Webkit) a veces oculta las flechas si hay estilos personalizados */
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
      -webkit-appearance: inner-spin-button;
      opacity: 1;
    }

    /* Firefox muestra flechitas por defecto, pero si necesitas asegurarlo: */
    input[type="number"] {
      -moz-appearance: textfield;
    }

    /* Mostrar flechitas incluso en inputs estilizados */
    input[type="number"]::-webkit-inner-spin-button {
      opacity: 1 !important;
    }