@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

section {
    overflow: hidden;
}

section.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 73dvh 50dvh 100dvh;
  min-height: 223dvh;
  background-color: #fff;
  grid-template-areas:
  "header header header"
  "content content content"
  "footer footer footer"
}

.grid-container header{
  grid-area: header;
}

.grid-container main {
  grid-area: content;
}

.grid-container aside {
    grid-area: footer;
    background-image: url(../img/persona02.png);
    background-repeat: no-repeat;
    position: relative;
    background-position: left bottom;
    margin-top: 50px;
}

section.header {
  background-image: url('../img/bg_feriaslibres2.jpg');
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 600px;
  padding: 1%;
  margin: 1%;
}

/* -----------header: Imagen principal + texto negro--------------*/

.content-principal {
  position: relative;
  margin: -120px;
}

.content-principal .texto_negro {
  background-color: black;
  border-radius: 0px 0px 25px 25px;
  padding: 2%;
  border-top: 5px solid #7aea82;
}

.content-principal .texto_negro p{
  font-family: "Bree Serif", serif;
  font-size: 2rem;
  text-align: center;
  color: #fff;
}

.box.animate.fadeInUp img {
  width: 40%;
  position: relative;
  bottom: -100px;
  left: 32%;
  right: 0;
}

/*--------------- Botón 2 -------------- */

button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  text-align: left;
}

button.learn-more {
  width: 70rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #88ea7d;
  border-radius: 1.625rem;
}

button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

button:hover .circle {
 width: 100%;
}

button:hover .circle .icon.arrow {
 background: #fff;
 transform: translate(1rem, 0);
}

button:hover .button-text {
 color: #fff;
}

.boton_principal{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin: 70px 0 10px 0;
}

/* ------------------main: Contenido 1 ------------------*/

.llamado_uno .texto_uno {
  margin-left: 1%;
}

.llamado_uno .icono_uno:before{
  content: '';
  position: absolute;
  height: 320px;
  width: 2px;
  background-color: #eeeeee;
  left: 5.5%;
  top: 460px;
}

.texto1 {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 10px 0 50px 0;
}

.texto1 img {
  width: 7em;
  margin: 0;
  padding: 0;
  z-index: 4;
  position: relative;
}

.texto1 h3{
  font-family: 'Exo 2', sans-serif;
  font-size: 2.6rem;
  color: black;
}

.texto1 h4{
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1em;
  color: black;
}

.caja_gris {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.caja_gris .col-md-12 {
  padding: 10px;
  border-radius: 18px;
  display: flex;
  flex-flow: column nowrap;
}

.caja_gris h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: black;
  text-align: center;
  margin: 30px auto;
}

.caja_gris p{
  font-family: 'Exo 2', sans-serif;
  font-size: 1em;
}

.bullets {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 70px;
}

.bullets .col-md-3 {
  text-align: justify;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

.bullets .col-md-3::before {
  content: '';
  background-color: #56bcc5;
  height: 100px;
  width: 10px;
  position: absolute;
  left: -17px;
  top: 5.5em;
  z-index: 0;
}

.bullets .col-md-3::after {
  content: '';
  background-color: #56bcc5;
  height: 100px;
  width: 10px;
  position: absolute;
  left: 283px;
  top: 5.5em;
  z-index: 0;
}

.card {
  width: 293px;
  height: 260px;
  background: rgba(217, 217, 217, 0.58);
  box-shadow: 10px 15px 50px #cccccc6e;
  backdrop-filter: blur(6px);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  color: #333;
  flex-direction: column;
  flex-wrap: nowrap;
  font-family: 'Exo 2', sans-serif;
  padding: 10px;
  z-index: 2;
}

.card:hover {
  border: 1px solid #66bcc6;
  transform: scale(1.05);
}

.card:active {
  transform: scale(0.95) rotateZ(1.7deg);
}

/*-------------Ejemplo -----------*/

.llamado_dos .texto_uno {
  margin-left: 1%;
}

.texto1 .llamado_dos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.grafico_dos {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

.grafico_dos a img{
  width: 75vh;
}

.grafico_dos p.nota {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7em;
  text-align: justify;
  margin: 5px;
}

/*-------------------section: tab ---------------------------*/

.warpper{
  display:flex;
  flex-direction: column;
  align-items: center;
}

.tabs{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.tab{
  cursor: pointer;
  padding: 10px 20px;
  margin: 0px 2px;
  background: #66bcc6;
  display: inline-block;
  color: #fff;
}

.panels{
  background:#fffffff6;
  min-height: 200px;
  width: 100%;
  max-width: 980px;
  border-radius: 3px;
  overflow: hidden;
  padding: 20px;  
}

.panel{
  display: none;
  animation: fadein .2s;
}

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}

.web-sii label {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 10px;
  font-weight: 500;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8em;
  text-align: center;
  width: 25%;
  gap: 15px;
}

.web-sii label:hover {
  background: #58a6a9;
  color: #fff;
}

label img {
  width: 55px;
}

.panel-title{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.radio{
  display: none;
}

#one:checked ~ .panels #one-panel,
#two:checked ~ .panels #two-panel,
#three:checked ~ .panels #three-panel,
#four:checked ~ .panels #four-panel{
  display: block;
}

#one:checked ~ .tabs #one-tab,
#two:checked ~ .tabs #two-tab,
#three:checked ~ .tabs #three-tab,
#four:checked ~ .tabs #four-tab{
  background: #8ddb89;
  color: black;
  border-top: 3px solid #f66949;
  font-weight: 800;
}

.web-sii .checkbox, .web-sii .radio {
    position: relative;
    display: none;
    margin-top: 10px;
    margin-bottom: 10px;
    top: 36px;
    z-index: -3;
}

/*--------------  section: tab ------------*/

/* -------------- accordion-item -------------*/

button.accordion-button {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
}

.web-sii h2 {
  font-weight: normal;
  font-size: 1em;
  margin: 5px 0 15px;
  background-color: #F5F5F5;
  font-family: 'Exo 2', sans-serif;
  color: #282936;
  padding: 10px;
  border-bottom: 5px solid #8ddb89
}

button img {
  width: 50px;
}

.accordion-body p {
  font-family: 'Exo 2', sans-serif;
  font-size: 1em;
  text-align: justify;
  padding: 0 20px;
}

.parrafo_destacado p{
  padding: 10px;
}

.parrafo_destacado ul{
  list-style: none;
/*background-color: #f7f7f7;*/
  margin: 0 auto;
  padding: 0 10px;
  width: fit-content;
}

.parrafo_destacado ul li{
  margin-bottom: 10px;
  padding: 10px;
  font-family: 'Bree Serif';
  border-bottom: 1px solid #72bcc7;
}

/*--- main: ¿Y SI PREFIERO NO ACOGERME A ESTE RÉGIMEN NO ESPECIAL? ---*/

.col-md-12.contenido_3 {
  background-color: #eee;
  margin: 0 auto;
  padding: 2% 0 5% 0;
}

.contenido_3 h3{
  font-family: 'Exo 2', sans-serif;
  text-align: center;
  font-weight: 500;
  font-size: 1.6em;
  color: black;
}

.boton_negro p{
  text-align: center;
  color: #7aea82;
  font-size: 1.4em;
  font-family: 'Exo 2', sans-serif;
  background-color: black;
  width: fit-content;
  margin: 0 auto;
  padding: 1% 2%;
  border-radius: 20px;
}

p.texto_destacado {
  font-family: 'Exo 2', sans-serif;
  text-align: center;
  font-size: 1em;
  color: black;
  margin-top: 15px;
  padding: 0px 15%;
}

/*----------- aside: Footer + tablas -------------*/

.col-md-12.tabla2 {
  position: relative;
  z-index: 2;
  margin: -20px auto 0 auto;
}

.tabla2 {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

p.nota2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7em;
  text-align: right;
  width: 65%;
  margin: 5px auto;
}

.col-md-12.tabla2 .tabla2 img{
  width: 85%;
  margin: 0 auto;
}

.logo-sii-color img{
  width: 10%!important;
  margin-top: 5%!important;
}

section.separador .col-md-12{
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-content: center;
  align-items: center;
}

section.separador img{
  margin: 60px auto;
  width: 65%;
}

.aside-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
}

.titulo_ {
  display: flex;
  flex-flow: column nowrap;
}

.titulo_ img {
  width: 35%;
}

.titulo_ h3 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.5em;
  color: #333;
}

.aside-grid {
  display: flex;
  flex-flow: row wrap;
}

.aside-grid img.verde {
  width: 18em;
}

.aside-grid img.azul {
  width: 13em;
}

.aside-grid img.rojo   {
  width: 18em;
}

.imagen_municipios {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}

.imagen_municipios img {
  width: 350px;
  margin: 0;
  padding: 0;
  position: relative;
  top: 10px;
  left: -135px;
}

.web-sii footer {
    margin: 0;
}

aside img.frutitas {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* FADE */
.box {
  background: none repeat scroll 0 0;
}

.animate {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/*==== FADE IN UP ===*/
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

/*=== FADE IN UP Big ===*/
.fadeInUpBig {
  -webkit-animation-name: fadeInUpBig;
  animation-name: fadeInUpBig;
}

@-webkit-keyframes fadeInUpBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 2000px, 0);
    transform: translate3d(0, 2000px, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInUpBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 2000px, 0);
    transform: translate3d(0, 2000px, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@media (width <= 767px) {
section.header {
    min-height: 420px;
}

.box.animate.fadeInUp img {
    bottom: -100px;
}
}

@media (width <= 1260px) {

section.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 300dvh 55dvh 100dvh;
}

section.header {
    min-height: 32px;
    background-size: contain;
}

.box.animate.fadeInUp img {
    width: 40%;
    position: relative;
    bottom: -10px;
    left: 32%;
    right: 0;
}

}

@media (width <= 1366px) {

section.grid-container {
  display: grid;
  grid-template-rows: 90dvh 80dvh 120dvh;
  grid-template-columns: 1fr 1fr 1fr;
}

section.header {
    min-height: 320px;
    background-size: contain;
}

.box.animate.fadeInUp img {
    bottom: -20px;
}
}

@media (width <= 430px) {

section.grid-container {
  display: grid;
  grid-template-rows: 55dvh 110dvh 220dvh;
  grid-template-columns: 1fr;
}

section.header {
    min-height: 320px!important;
    margin: 0;
}

.box.animate.fadeInUp img {
    bottom: -60px;
}

.content-principal .texto_negro {
    background-color: black;
    border-radius: 0;
    padding: 3% 20%;
    border-top: 5px solid #7aea82;
}

.grid-container main {
    grid-area: content;
}

.lista_uno {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 95%;
    margin: 0;
}

.info_rut {
    width: 100%;
    margin: 15px auto;
}

.bullets {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.bullets .col-md-3 {
    flex-direction: row;
}

.bullets .col-md-3::after {
    content: '';
    position:unset;
}

.bullets .col-md-3::before {
    content: '';
    position:unset;
}

section.separador img {
    margin: 30px auto;
    width: initial;
}

.grafico_dos img {
    width: 100%;
    margin: 0;
}

.grafico_dos p.nota {
    font-size: 0.7em;
    width: 100%;
    margin: 5px auto;
}

.boton_negro p {
    text-align: center;
    color: #7aea82;
    font-size: 1.2em;
    font-family: 'Exo 2', sans-serif;
    background-color: black;
    width: fit-content;
    margin: 0 2%;
    padding: 1% 2%;
    border-radius: 20px;
}

p.texto_destacado {
    margin: 5% 5% 10% 5%;
    padding: 0;
}

.col-md-12.tabla2 .tabla2 img {
    width: 100%;
    margin: 0 auto;
}

p.nota2 {
    text-align: left;
    width: 100%;
    margin: 10px auto;
}

.logo-sii-color img {
    width: 30%!important;
    margin-top: 5% !important;
}

.comic-brutal-button-container {
    padding: 20px;
    width: 60%;
    margin: 20px auto;
}

.aside-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.titulo_ {
    display: flex;
    flex-flow: column nowrap;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.aside-grid {
    display: flex;
    flex-flow: column nowrap;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.imagen_municipios img {
    left: 0;
}

.grid-container aside {
  background-image: none;
}

aside img.frutitas {
  display: none;
}

}