:root {
    --color1: rgb(23, 73, 180);
    --color2: rgba(23, 180, 83, 0.0788);
    --color3: rgba(11, 194, 211, 0.0623);
    --colorlaquin: #0165ae;
    --fondo: #f2f2f2;
    --colorFondo1: #1e90e6b3;
    --colorFondo2: #34495e;
    --shadow: rgba(0, 0, 0, 0.2);
    --colorDarkGray: rgb(50, 50, 50);
    --verdesuave: rgb(95, 226, 90);
    --spacing: .25rem;
}

html {
  scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    color: var(--colorlaquin);
    animation: fadein 0.5s;
}

*:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--fondo);
    font-family: "Open Sans", serif;
    /*margin: 0;*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Source Serif Pro", serif;
    font-size: 1.5rem;
    font-weight: 200;
}

/* Barra de navegacion */

nav {
    position: sticky;
    display: flex;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 10px;
    min-height: 5rem;
    border-bottom: 1px solid lightgray;
    background-color: var(--fondo);
    box-shadow: 0 2px 10px 2px var(--shadow);
    justify-content: space-between;
    align-items: center;
}

nav div {
    object-fit: contain;
    height: 100%;
    display: flex;
}

nav div img {
    width: 187px;
}

nav h1 {
    display: block;
    float: right;
    margin: 0 0.5rem;
    text-align: right;
    width: 12rem;
    height: 100%;
}

.whitespace {
    color: rgba(0, 0, 0, 0);
}
  
  /* Elementos */
  
main {
    transition: .3s;
    border: 1px solid lightgray;
    height: 100%;
    min-height: 50vh;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px 2px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapper {
    padding: 8px;
    padding-top: 1rem;
    min-height: calc(100vh - 175px);
}

  /* -- CONTENEDOR DE INICIO -- */
#info{
    padding: 40px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    /* min-width: 360px; */
    max-width: 700px;
    text-align: justify;
}

#info h3{
    text-align: center;
    font-size: 2rem;
}
section {
    margin: 10px;
    border: 2px solid green;
    border-radius: 5px;
    box-shadow: 0 2px 5px 2px var(--shadow);
    width: 100%;
    max-width: 1000px;
}
  
section > p {
    text-align: center;
}

/* Menu de seleccion de categorias */

.menu {
    margin: 0;
    height: 4em;
    padding: 5px;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* gap: 35px; */
    border-radius: 15px;
    background-color: var(--color2);
    cursor: pointer;
}

.menu li {
    transition: .1s;
    text-decoration: none;
    color: var(--colorlaquin);
    border-radius: 15px;
    border: 3px solid rgba(0,0,0,0);
    padding: 0;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.menu li a{
  text-decoration: none;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items:center;
}

.menu li a i{
  margin-right: 5px;
}

.menu > li:hover, .menu .active-menu-item {
    transition: .2s;
  color: var(--colorFondo1);
  font-weight: bold;
  border: 3px solid orange;
  background: #ffe7bc;
}

.menu > li:active {
  color: orange;
  font-weight: bold;
  border: 3px solid var(--colorFondo1);
}

.menu .active {
  color: green;
  font-weight: bold;
  text-decoration: underline;
  border: 3px solid orange;
}



/* -- CONTENEDOR DE SELECCION DE LA EMPRESA PARA LA ENCUESTA -- */

fieldset {
    border-radius: 10px;
    width: 80%;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 25px;
}

.form-item {
    width: 100%;
}

.form > input,
select, .form > .password input {
    border: 1px solid lightgray;
    border-radius: 5px;
    height: 35px;
    padding: 5px;
    font-size: 1rem;
}

.form > input[type="radio"] {
    font-size: 0.7rem;
    width: 50%;
}

.form > label {
    font-family: "Source Serif Pro", serif;
    font-size: 1.1rem;
}

.boton {
    width: 100%;
    background-color: var(--colorDarkGray);
    display: inline-block;
    padding: 10px;
    border: none;
    color: #fff;
    font-family: "open sans";
    border-top: 5px solid rgba(7, 200, 222, 0.7);
    transition: .2s;
    cursor: pointer;
}

/*.boton-empresa {
    
}*/

.boton h1 {
    color: white;
    padding: 0;
    margin: 0;
}

.boton:disabled {
  background-color: white;
  display: none;
}

.boton:hover {
    transition: .2s;
    background-color: var(--colorFondo1);
}

.boton-eliminar {
    background-color: darkred;
    border-top: darkred;
    border-radius: 10px;
    margin-top: 10px;
}
/* Popup */

.active{
    display: flex;
}

.hidden{
    display: none;
}

.blur-pantalla {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display:none;
    align-items: center;
    justify-content: center;
}

.panel {
    width: 55vw;
    height: max-content;
    border: 1px solid var(--colorlaquin);
    border-radius: 15px;
    padding: 15px;
    background-color: white;
    align-items: center;
}

.x {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--colorDarkGray);
    background-color: rgba(120, 120, 220, 0.6);
    text-align: center;
    position: relative;
    float: right;
    top: -30px;
    right: -30px;
}

.x:hover {
    opacity: 60%;
    color: lightgray;
}

.x:active {
    color: orange;
    border: 2px solid white;
}

/* -- CONTENEDOR PARA LLENADO DE ENCUESTAS -- */

.info-encuesta {
    border-radius: 5px;
    padding: 10px 25px;
    font-family: "Source Serif Pro",serif;
}

.item-encuesta{
    display: inline-grid;
    text-align: left;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(150,150,150,.4);
    gap: 3px;
    border-radius: 5px
}

.item-encuesta-head{
    border-top: 5px solid rgba(7,200,222,.7);
    text-align: center;
    font-family: "Source Serif Pro",serif;
    color: #fff;
    background-color: var(--colorDarkGray);
    min-height: 45px;
    padding: 5px 10px;
    width: 100%;
    border-radius: 0;
}

.fst-encuesta {
    padding: 20px;
    margin: 10px 25px;
    display: grid;
    width: inherit
}

.camposdiv {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.fst-encuesta>.camposdiv>label>input[type=radio]{
    cursor: pointer;
    margin: 10px
}

.fst-encuesta>label>input[type=radio]:checked + span{
    color: green;
}

.txt-a-encuesta{
    resize: none;
    width: 100%
}

.radio {
    cursor: pointer;
}

.radio:hover > span{
    text-decoration: underline;
    color: orange;
}


.boton-terminar {
    background-color: #339033;
    border-radius: 0 0 1px 1px;
}


/* -- FOOTER -- */

footer {
    position: relative;
    width: 100%;
    padding: 2px;
    margin: 15px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer p {
    color: rgb(146, 146, 146);
}

footer .line {
    width: 95%;
    border-top: 1px solid lightgray;
    background-color: var(--fondo);
}

@media screen and (max-width: 600px){
    main {
        font-size: 12px;
        transition: .3s;
        margin: 0;
        border: 1px solid lightgray;
        height: 100%;
        min-height: 50vh;
        padding: 12px;
        border-radius: 5px;
        box-shadow: 0 2px 10px 2px var(--shadow);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    nav {
        flex-wrap: wrap;
        min-height: 5rem;
    }

    nav div{
        width: 100%;
        justify-content: center;
    }

    nav div h1{
        text-align: center; 
        margin: 15px 0;   
        width: 100%;
        font-size: 23px;
        margin-bottom: 0;
    }
    .fst-encuesta>form {
        flex-direction: column;
    }
    
    .fst-encuesta {
        padding: 15px;
        margin: 10px 5px;
        display: grid;
        width: inherit;
    }
    
    .camposdiv {
        font-size: 10px;
        text-align: center;
    }
    
    .item-encuesta-head {
        min-height: 30px;
    }
    
    .boton-terminar{
        font-size: 15px;
    }
    
    .wrapper {
        min-height: calc(100vh - 175px);
    }
    
    .menu {
        height: auto;
        min-height: 40px;
        flex-wrap: wrap;
        gap: 5px
        
    }
    
    /* TABLA RESPONSIVA */
    .rtable {
        font-family: "Open Sans", serif !important;
    }
    
    .rtable .item-tabla{
        border-radius: 0px;
    }
     .rtable .rtable rtable--flip{
         border-radius: 0px;
     }
    
    .item-tabla-head{
        min-height: auto !important;
        font-family: "Open Sans", serif !important;
    }
    
    .last-col-actions tbody tr td:last-child{
        border-bottom: none;
    }
    
    .btn-group {
        display: flex;
        justify-content: space-around;
    }
    
    /* ----- TABLA RESPONSIVA -----*/
    
    .rtable {
      display: inline-block;
      vertical-align: top;
      max-width: 100%;
      
      overflow-x: auto;
      
      white-space: nowrap;
    
      border-collapse: collapse;
      border-spacing: 0;
    }
    
    .rtable,
    .rtable--flip tbody {
      -webkit-overflow-scrolling: touch;
      
      background: radial-gradient(left, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 0 center,
                  radial-gradient(right, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 100% center;
      background-size: 10px 100%, 10px 100%;
      background-attachment: scroll, scroll;
      background-repeat: no-repeat;
    }
    
    .rtable th {
      font-size: 12px;
      text-align: left;
      text-transform: uppercase;
    }
    
    .rtable th,
    .rtable td {
      padding: 6px 12px;
      border: 1px solid #d9d7ce;
    }
    
    .rtable--flip {
      display: flex;
      overflow: hidden;
      background: none;
    }
    
    .rtable--flip thead {
      display: flex;
      flex-shrink: 0;
      min-width: min-content;
    }
    
    .rtable--flip tbody {
      display: flex;
      position: relative;
      overflow-x: auto;
      overflow-y: hidden;
    }
    
    .rtable--flip tr {
      display: flex;
      flex-direction: column;
      min-width: min-content;
      flex-shrink: 0;
      background: white;
    }
    
    .rtable--flip td,
    .rtable--flip th {
      display: block;
    }
    
    .rtable--flip td {
      background-image: none !important;
      border-left: 0;
    }
    
    .rtable--flip th:not(:last-child),
    .rtable--flip td:not(:last-child) {
      border-bottom: 0;
    }
    
    /* ----- FIN TABLA RESPONSIVA -----*/
    
}

/** CSS JH */
table {
  width: 100%;
}

.panel-tabla{
  display: grid;
  gap: 1px;
}

.tabla-col8 {
  grid-template-columns: 4fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.tabla-col6 {
  grid-template-columns: 4fr 1fr 1fr 1fr 1fr 1fr;
}

.tabla-col5 {
  grid-template-columns: 1fr 2fr 2fr 2fr 1fr;
}

.tabla-col4 {
  grid-template-columns: 1fr 5fr 2fr 1fr;
}

.tabla-col3 {
  grid-template-columns: 1fr 5fr 1fr;
}

.tabla-col2 {
  grid-template-columns: 1fr 2fr;
}

.item-tabla {
  /*display: inline-grid;*/
  text-align: center;
  align-items: center;
  border: 1px solid rgba(150, 150, 150, 0.4);
  gap: 3px;
  border-radius: 5px;
}

.item-tabla-head {
  border-top: 5px solid rgba(7, 200, 222, 0.7);
  font-family: "Source Serif Pro", serif;
  color: white;
  background-color: var(--colorDarkGray);
  min-height: 45px;
  padding: 5px 10px;
}

tr:hover{
    transition: .2;
    background-color: rgb(228 228 228);
}

/* ######### MODAL ########## *//*
.modalDialog {
  position: fixed;
  font-family: Arial, Helvetica, sans-serif;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99999;
  opacity:0;
  -webkit-transition: opacity 400ms ease-in;
  -moz-transition: opacity 400ms ease-in;
  transition: opacity 400ms ease-in;
  pointer-events: none;
}
.modalDialog:target {
  opacity:1;
  pointer-events: auto;
}
.modalDialog > div {
  width: 400px;
  position: relative;
  margin: 10% auto;
  padding: 5px 20px 13px 20px;
  border-radius: 10px;
  background: #fff;
  background: -moz-linear-gradient(#fff, #999);
  background: -webkit-linear-gradient(#fff, #999);
  background: -o-linear-gradient(#fff, #999);
  -webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
}
.close {
  background: #606061;
  color: #FFFFFF;
  line-height: 25px;
  position: absolute;
  right: -12px;
  text-align: center;
  top: -10px;
  width: 24px;
  text-decoration: none;
  font-weight: bold;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  -moz-box-shadow: 1px 1px 3px #000;
  -webkit-box-shadow: 1px 1px 3px #000;
  box-shadow: 1px 1px 3px #000;
}
.close:hover { background: #00d9ff; }*/
/*********************  MODAL JH *************************************/
.modal{
   position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111bd;
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.modal--show{
    opacity: 1;
    pointer-events: unset;
}

.modal__container{
    margin: auto;
    width: 90%;
    max-width: 600px;
    max-height: 90%;
    border-radius: 6px;
    background-color: #FFF;
    padding: 3em 2.5em;
    display: grid;
    gap: 1em;
    place-items: center;
    grid-auto-columns: 100%;
}

.modal__title{
    font-size: 2.5rem;
}

.modal__paragraph{
    margin-bottom: 10px;
}

.modal__save{
    text-decoration: none;
    color: #FFF;
    background-color: #F26250;
    padding: 1em 3em;
    border: 1px solid #fff;
    border-radius: 6px;
    display: inline-block;
    font-weight: 300;
    transition: background-color .3s;
}

.modal__save:hover{
    color: #f26250;
    background-color: #fff;
}
/*********************  HELPERS CLASS CRC *************************************/
.text-center{
    text-align: center;
}

.text-justify{
    text-align: justify;
}
.p-1 {
    padding: calc(var(--spacing) * 1);
}

.p-3 {
    padding: calc(var(--spacing) * 3);
}

hr {
    margin: 5px 10px; 
}