@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

.light {
  --mainColor: #f76006;
  --hoverColor: #f75e06b4;
  --backgroundColor: #f1f8fc;
  --darkOne: #312f3a;
  --darkTwo: #45424b;
  --lightOne: #919191;
  --lightTwo: #aaa;
}

.dark {
  --mainColor: #f76006;
  --hoverColor: #f75e06b4;
  --backgroundColor: #192e3a;
  --secondColor: #004f83;
  --darkOne: #f3f3f3;
  --darkTwo: #fff;
  --lightOne: #ccc;
  --lightTwo: #e7e3e3;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html::-webkit-scrollbar {
    width: 1rem;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
  background-color: red;
}
body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}


img {
  width: 100%;
}

a {
  text-decoration: none;
}

.big-wrapper {
  position: relative;
  padding: 1.7rem 0 2rem;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--backgroundColor);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  position: relative;
  max-width: 81rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
  z-index: 10;
}

header {
  position: fixed;
  z-index: 9999;
  width: 100%;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 20%;
}

.logo img {
    max-width: 100%;
}

.links ul {
  display: flex;
  list-style: none;
  align-items: center;
  width: 150%;
}

.links a {
  color: var(--lightTwo);
  margin-left: 4.5rem;
  display: inline-block;
  transition: 0.3s;
}

.links a:hover {
  color: var(--hoverColor);
  transform: scale(1.05);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  color: #fff !important;
  background-color: var(--mainColor);
  border-radius: 16px;
  text-transform: capitalize;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--hoverColor);
  transform: scale(1) !important;
}

.hamburger-menu {
  position: relative;
  z-index: 99;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: none;
}

.hamburger-menu .bar {
  position: relative;
  width: 100%;
  height: 3px;
  background-color: var(--darkTwo);
  border-radius: 3px;
  transition: 0.5s;
}

.bar::before,
.bar::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--darkTwo);
  border-radius: 3px;
  transition: 0.5s;
}

.bar::before {
  transform: translateY(-8px);
}

.bar::after {
  transform: translateY(8px);
}

.big-wrapper.active .hamburger-menu .bar {
  background-color: transparent;
}

.big-wrapper.active .bar::before {
  transform: translateY(0) rotate(-45deg);
}

.big-wrapper.active .bar::after {
  transform: translateY(0) rotate(45deg);
}

.showcase-area .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: center;
}

.big-title {
  font-size: 1.4rem;
  color: var(--darkOne);
  text-transform: capitalize;
  line-height: 1.4;
}

.big-title b{
    color: red;
    font-size: clamp(50px, 6vw, 100px);
}

.text {
  color: var(--lightOne);
  font-size: 1.1rem;
  margin: 1.9rem 0 2.5rem;
  max-width: 600px;
  line-height: 2.3;
}

.showcase-area .btn {
  box-shadow: 0 0 40px 2px rgba(0, 0, 0, 0.05);
}

.person {
  width: 123%;
  transform: translate(15%, 25px);
}

.toggle-btn {
  display: inline-block;
  border: none;
  background: var(--darkTwo);
  color: var(--backgroundColor);
  outline: none;
  cursor: pointer;
  height: 39px;
  width: 39px;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: 0.3s;
}

.toggle-btn i {
  line-height: 39px;
}

.toggle-btn:hover {
  background: var(--mainColor);
}

.big-wrapper.light .toggle-btn i:last-child {
  display: none;
}

.big-wrapper.light .toggle-btn i:first-child {
  display: block;
}

.big-wrapper.dark .toggle-btn i:last-child {
  display: block;
}

.big-wrapper.dark .toggle-btn i:first-child {
  display: none;
}

.shape {
  position: absolute;
  z-index: 0;
  width: 500px;
  bottom: -180px;
  left: -15px;
  opacity: 0.3;
}

@keyframes appear {
  0% {
    clip-path: circle(30% at -25% -25%);
  }
  100% {
    clip-path: circle(150% at 0 0);
  }
}

@media screen and (max-width: 870px) {
  .hamburger-menu {
    display: flex;
  }

  .links {
    position: fixed;
    top: -30px;
    right: 0;
    max-width: 450px;
    width: 100%;
    height: 100vh;
    background-color: #004f83;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: 0.5s;
  }

  .links ul {
    flex-direction: column;
  }

  .links a {
    color: #fff;
    margin-left: 0;
    padding: 2rem 0;
  }

  .links a:hover{
    color: #f76006;
  }

  .links .btn {
    background: none;
  }

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
  }

  .big-wrapper.active .links {
    transform: translateX(0);
    box-shadow: 0 0 50px 2px rgba(0, 0, 0, 0.4);
  }

  .big-wrapper.active .overlay {
    pointer-events: all;
    opacity: 1;
  }

  .showcase-area {
    padding: 2.5rem 0;
    max-width: 700px;
    margin: 0 auto;
  }

  .showcase-area .container {
    grid-template-columns: 1fr;
    justify-content: center;
    grid-gap: 2rem;
  }

  .big-title {
    font-size: 1.1rem;
  }

  .text {
    font-size: 0.95rem;
    margin: 1.4rem 0 1.5rem;
  }

  .person {
    width: 100%;
    transform: none;
  }

  .logo h3 {
    font-size: 1.25rem;
  }

  .shape {
    bottom: -180px;
    left: -150px;
  }
}

@media screen and (max-width: 470px) {
  .container {
    padding: 0 1.5rem;
  }

  .big-title {
    font-size: 0.9rem;
  }

  .text {
    margin: 1.1rem 0 1.5rem;
  }

  .showcase-area .btn {
    font-size: 0.8rem;
  }
}

.all-content{
    width: 100%;
    min-height: 90vh;
    padding-left: 8%;
    padding-right: 8%;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 5%;
}

.row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 100px 0;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInFromLeft {
  0% {
      transform: translateX(-100%);
      opacity: 0;
  }
  100% {
      transform: translateX(0);
      opacity: 1;
  }
}

.col-1{
    flex-basis: 40%;
    position: relative;
    margin-left: 50px;
    opacity: 0;
}

.col-1.active{
  animation: slideInFromLeft 1s ease-in-out forwards;
}

.col-1 h2{
    font-size: clamp(30px, 3vw, 50px);
    color: red;
}

.col-1 p{
    font-size: clamp(20px, 1vw, 10px);
    margin: 30px 0;
}

.col-1::after{
    content: '';
    width: 10px;
    height: 60%;
    background: red;
    position: absolute;
    left: -40px;
    top: 8px;
}

.cuarenta{
    width: 70%;
    height: 80%;
}

.color-box{
    position: absolute;
    right: 0;
    background: red;
    border-radius: 20px 0 0 20px;
    height: 80%;
    width: 40%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.color-box.active{
  animation: slideInFromRight 1s ease-in-out forwards;
}

.slider-container{
  position: relative;
}

.slider-container .slide-container .slide{
  max-height: 90vh;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 9%;
  padding-bottom: 70px;
}

.slider-container .slide-container .slide .slide-content{
  flex: 1 1 350px;
  animation: slideContent .4s linear .6s backwards;
}

@keyframes slideContent {
  0%{
    opacity: 0;
    transform: translateX(-50px);
  }
}

.slider-container .slide-container .slide .slide-image{
  flex: 1 1 100px;
}

.slider-container .slide-container .slide .slide-image img{
  width: 100%;
  animation: slideImage .4s linear;
}

@keyframes slideImage {
  0%{
    opacity: 0;
    transform: translateY(-50px);
  }
}

.slider-container .slide-container .slide .slide-content h3{
  font-size: clamp(25px, 3vw, 50px);
  color: #004f83;

}

.slider-container .slide-container .slide .slide-content p{
  font-size: clamp(18px, 2vw, 35px);
  color: #004f83;
  padding: 10px 0;
}

.slider-container .slide-container{
  display: none;
}

.slider-container .slide-container.active{
  display: block;
}

.slider-container .slide-container .slide{
  background: linear-gradient(90deg, #f1f8fc 70%, #f76006 30.1%);
}

.slider-container #prev,
.slider-container #next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background-color: #004f83;
  height: 50px;
  width: 40px;
  line-height: 50px;
  font-size: clamp(20px, 2vw, 20px);
  text-align: center;
  cursor: pointer;
  font-weight: bolder;
}

.slider-container #prev:hover,
.slider-container #next:hover{
  background-color: #004f83b9;
}

.slider-container #prev{
  left: 20px;
}

.slider-container #next{
  right: 20px;
}

@media (max-width: 500px){
  .slider-container #prev{
    left: 0px;
    top: 60%;
  }
  
  .slider-container #next{
    right: 0px;
    top: 60%;
  }
}
.quienes-somos-container{
  padding: 2rem;
  text-align: justify;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f8fc;
}

.quienes-somos-content{
  padding: 3rem;
  width: 80%;

}

.quienes-somos{
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quienes-somos.active{
  opacity: 1;
  transform: translateY(0);
}
.quienes-somos h1{
  text-align: center;
  color: #f76006;
  font-size: clamp(45px, 3vw, 50px);
}

.quienes-somos video{
  height: 50vh;
  max-width: 100%;
  flex-grow: 1;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.mision-vision{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  margin-top: 2rem;
}

.mision-vision h1, .resena h1{
  text-align: center;
  margin: 2rem;
  color:#fff;
  background-color: #f76006;
  border-radius: 15px;
}

.mision, .vision{
  height: 100%;
  opacity: 0;
}

.mision.active{
    animation: slideInFromLeft 1s ease-in-out forwards;
}

.vision.active{
    animation: slideInFromRight 1s ease-in-out forwards;
}

.mision, .vision, p{
  color: #000;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

span{
  cursor: pointer;
  color: #004f83;

}
.resena{
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.resena.active{
    opacity: 1;
    transform: translateY(0);
  }

.resena h1{
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.resena p{
  margin-bottom: 1rem;
}

.oculto{
  display: none;
}

.valores-section{
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.valores-section h1{
  color: #004f83;
  text-align: center;
  font-size: clamp(30px, 3vw, 50px);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  width: 250px;
  height: 250px;
  perspective: 1000px;
  background-color: #f76006;
  border-radius: 10%;
  margin: 1rem;
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.3rem;
  border-radius: 15px;
}

.card-front {
  z-index: 2; /* Asegura que la parte frontal esté encima */
  color: white;
  align-items: start;
}

.card:nth-child(1) .card-front {
  background: url('images/valores/valor-confianza.png') no-repeat center/cover;
}

.card:nth-child(2) .card-front {
  background: url('images/valores/valor-respeto.png') no-repeat center/cover;
}

.card:nth-child(3) .card-front {
  background: url('images/valores/valor-honestidad.png') no-repeat center/cover;
}

.card:nth-child(4) .card-front {
  background: url('images/valores/valor-innovacion.png') no-repeat center/cover;
}

.card:nth-child(5) .card-front {
  background: url('images/valores/valor-excelencia.png') no-repeat center/cover;
}

.card-front h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #004f83;
  display: flex;
}

.card-back {
  background-color: #004f83;
  transform: rotateY(180deg);
  z-index: 1;
}

.card-back p{
  text-align: justify;
  margin: 5%;
  color: #fff;
  font-size: 1.1rem;
}
/* Oculta la otra cara por completo */
.card-inner {
  z-index: 1;
}

.card:hover .card-inner {
  z-index: 2;
}

section{
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 90%;
    max-width: 550px;
    margin: auto;
    margin-top: 2em;
    margin-bottom: 4rem;
}

.heading{
    font-size: 2.5em;
    color: #f76006;
}

.contactForm{
    display: grid;
    gap: 3em;
    opacity: 0;
}

.contactForm.active{
  animation: slideInFromLeft 1s ease-in-out forwards;
}

form{
    width: 100%;
    margin-top: 3em;
}

.para{
    color: #004f83;
    font-size: 1.1rem;
    line-height: 1.5em;
    margin-bottom: 1em;
    margin-left: 5%;
}

.para2{
    text-align: left;
}

.input{
    width: 95%;
    max-width: 700px;
    border: none;
    font-size: .9rem;
    padding: 1em;
    outline: none;
    background-color: var(--formBg);
    border-radius: 10px;
    border: 1px solid rgb(53, 53, 53);
    margin-bottom: 1em;

}

.input:focus{
    border: 1px solid #f76006;
}

.input::placeholder{
    text-transform: capitalize;
}

.submit{
    background-color: #f76006;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    width: 95%;
}

.submit:hover{
  background-color: #f75e06c9;
}

.map-container{
    position: relative;
    width: 100%;
    height: 460px;
}

.mapBg{
    position: absolute;
    background-color: var(--primaryColor);
    top: 0;
    right: 0;
    width: 200px;
    height: 90%;
    border-radius: 20px;
}

.map{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 90%;
    opacity: 0;
}

.map.active{
  animation: slideInFromRight 1s ease-in-out forwards;
}
.map iframe{
    width: 100%;
    height: 100%;
}

@media screen and (min-width:800px) {
    section{
        max-width: 1100px;
    }
    .contactForm{
        grid-template-columns: 1fr 1fr;
    }
    .contactMethod{
        flex-direction: row;
        justify-content: space-between;
    }  
}

#btn-mas{
  display: none;
}
.boton{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
.redes a, .btn-mas label{
  display: block;
  text-decoration: none;
  background: #004f83;
  color: #fff;
  width: 55px;
  height: 55px;
  line-height: 55px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0px 1px 10px rgba(0,0,0,0.4);
  transition: all 500ms ease;
}
.redes a:hover{
  background: #fff;
  color: #004f839c;
}
.redes a{
  margin-bottom: -15px;
  opacity: 0;
  visibility: hidden;
}
#btn-mas:checked~ .redes a{
  margin-bottom: 10px;
  opacity: 1;
  visibility: visible;
}
.btn-mas label{
  cursor: pointer;
  background: #004f83;
  font-size: 23px;
}
#btn-mas:checked ~ .btn-mas label{
  transform: rotate(135deg);
  font-size: 25px;
}

footer{
  background-color: #004f83;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.footer:active{
  opacity: 1;
  transform: translateY(0);
}
.footerContainer{
  width: 100%;
  padding: 70px 30px 20px ;
}
.socialIcons{
  display: flex;
  justify-content: center;
}
.socialIcons a{
  text-decoration: none;
  padding:  10px;
  background-color: white;
  margin: 10px;
  border-radius: 45%;
}
.socialIcons a i{
  font-size: 2em;
  color: black;
  opacity: 1;
}
/* Hover affect on social media icon */
.socialIcons a:hover{
  background-color: #f76006;
  transition: 0.5s;
}
.socialIcons a:hover i{
  color: white;
  transition: 0.5s;
}
.footerNav{
  margin: 30px 0;
}
.footerNav ul{
  display: flex;
  justify-content: center;
  list-style-type: none;
}
.footerNav ul li a{
  color:white;
  margin: 20px;
  text-decoration: none;
  font-size: 1.3em;
  opacity: 0.7;
  transition: 0.5s;

}
.footerNav ul li a:hover{
  opacity: 1;
}
.footerBottom{
  background-color: #003a61;
  padding: 20px;
  text-align: center;
}
.footerBottom p{
  color: white;
}
.designer{
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 0px 5px;
  color: #f76006;
}
@media (max-width: 700px){
  .footerNav ul{
      flex-direction: column;
  } 
  .footerNav ul li{
      width:95%;
      text-align: center;
      margin: 10px;
  }
  .socialIcons a{
      padding: 8px;
      margin: 4px;
  }
}

@media screen and (min-width: 300px) and (max-width: 1023px){
  .all-content{
    margin-bottom:  70%;
  }
  .row{
    display: block;
    margin-bottom: 5rem;
  }

  .cuarenta{
    height: 30vh;
  }

  .color-box{
    width: 80%;
    height: 40vh;
  }

  .quienes-somos-container{
    padding: 0;
  }

  .quienes-somos-content{
    padding: 0;
  }

  .quienes-somos h1{
    margin-top: 4rem;
  }
  .quienes-somos video{
    margin-top: -100px;
    width: 100%;
  }

  .mision-vision{
    display: inline;
  }

  .mision, .vision{
    width: 100%;
  }

  .resena{
    margin-bottom: 4rem;
  }

  .map{
    margin-left: 1rem;
    width: 90%;
  }
}
