@import url('https://fonts.googleapis.com/css?family=Roboto');

@import url('https://fonts.googleapis.com/css?family=Montserrat:700');

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*:before, *:after {
  box-sizing: inherit;
}

html {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: #42523f;
}
i {
  margin-right: 10px;
}
h1{
  width: -moz-fit-content;
  width: fit-content;
}
section {
  min-height: 100vh;
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  overscroll-behavior: -webkit-overscroll-behavior;
  overscroll-behavior: contain;
}
/*==========================-HEADER-======================================*/
  header{
    position: sticky !important;
    top: 0 !important;
    z-index: 99;
  }
  .grid-container {
    display: grid;
    grid-template-areas:
        'header'
        'main';
    gap: 10px;
    background-color: #2196F3;
    padding: 10px;
  }
  .header { grid-area: header; }
  .main { grid-area: main; }
  /*----------------------------NAV BAR------------------------------------*/
    .navbar{
        padding-bottom: 0 !important;
        padding-right: 0 !important;
    }
    .navbar-logo{
      padding: 15px;
      color: #fff;
    }
    .navbar-mainbg{
        background-color: #5161ce;
        padding: 0px;
    }
    #navbarSupportedContent{
        overflow: hidden;
        position: relative;
    }
    #navbarSupportedContent ul{
        padding: 0px;
        margin: 0px;
    }
    #navbarSupportedContent ul li a i{
        margin-right: 10px;
    }
    #navbarSupportedContent li {
        list-style-type: none;
        float: left;
    }
    #navbarSupportedContent ul li a{
        color: rgba(255,255,255,0.5);
        text-decoration: none;
        font-size: 15px;
        display: block;
        padding: 20px 20px;
        transition-duration:0.6s;
        transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: relative;
    }
    #navbarSupportedContent>ul>li.active>a{
        color: #5161ce;
        background-color: transparent;
        transition: all 0.7s;
    }
    #navbarSupportedContent a:not(:only-child):after {
        content: "\f105";
        position: absolute;
        right: 20px;
        top: 10px;
        font-size: 14px;
        font-family: "Font Awesome 5 Free";
        display: inline-block;
        padding-right: 3px;
        vertical-align: middle;
        font-weight: 900;
        transition: 0.5s;
    }
    #navbarSupportedContent .active>a:not(:only-child):after {
        transform: rotate(90deg);
    }
    .hori-selector{
        display:inline-block;
        position:absolute;
        height: 100%;
        top: 0px;
        left: 0px;
        transition-duration:0.6s;
        transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
        background-color: #fff;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        margin-top: 10px;
    }
    .hori-selector .right,
    .hori-selector .left{
        position: absolute;
        width: 25px;
        height: 25px;
        background-color: #fff;
        bottom: 10px;
    }
    .hori-selector .right{
        right: -25px;
    }
    .hori-selector .left{
        left: -25px;
    }
    .hori-selector .right:before,
    .hori-selector .left:before{
        content: '';
        position: absolute;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #5161ce;
    }
    .hori-selector .right:before{
    bottom: 0;
    right: -25px;
    }
    .hori-selector .left:before{
    bottom: 0;
    left: -25px;
    }
  /*--------------------------------NAV BAR---------------------------------*/
/*==============================-HEADER-======================================*/
/*==============================-PORTADA-======================================*/

  #portada {
    background-image:url('assets/portada2.jpg');
    background-size:cover !important;
    background-attachment:fixed !important;
    background-repeat:no-repeat !important;
    height: 50vh !important;
    position: relative !important;
    color:#fff;
    text-align:center;

    width: 100vw;
    font-weight: 700;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    z-index: 0 !important;
  }

  .overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); 
  }

  #fly-in {
    font-size: 4em;
    margin: 0 auto 40vh auto;
    height: 20vh; 
    text-transform: uppercase;
  }

  #fly-in span {
    display: block;
    font-size: .4em;
    opacity: .8;
  }

  #fly-in div {
    position: fixed;
    margin: 2vh 0;
    opacity: 0;
    left: 10vw;
    width: 80vw;
    animation: switch 40s linear infinite;
  }

  #fly-in div:nth-child(2) { animation-delay: 4s}
  #fly-in div:nth-child(3) { animation-delay: 8s}
  #fly-in div:nth-child(4) { animation-delay: 12s}
  #fly-in div:nth-child(5) { animation-delay: 16s}
  #fly-in div:nth-child(6) { animation-delay: 20s}
  #fly-in div:nth-child(7) { animation-delay: 24s}
  #fly-in div:nth-child(8) { animation-delay: 28s}
  #fly-in div:nth-child(9) { animation-delay: 32s}
  #fly-in div:nth-child(10) { animation-delay: 36s}

  @keyframes switch {
      0% { opacity: 0;filter: blur(20px); transform:scale(12)}
      3% { opacity: 1;filter: blur(0); transform:scale(1)}
      10% { opacity: 1;filter: blur(0); transform:scale(.9)}
      13% { opacity: 0;filter: blur(10px); transform:scale(.1)}
      80% { opacity: 0}
      100% { opacity: 0}
  }
  #portada h1 {
    color:white;
    position:relative;
    top: 0;
    text-align:center;
  }

  #portada p{
    font-size:1.2em;
    position:relative;
    text-align:center;
    top:46%;
  }

/*==============================-PORTADA-======================================*/
  .main{
    z-index: 2 !important;
  }
  .main h1{
    z-index: 5 !important;
  }
/*===============================-DESCRIPCION-==================================*/
  #descripcion h1{
    padding: 75px 0 50px 0;
  }
  #portada{
    width: 100%;
    height: 94vh;
  }
  /*----------------------------------CARDS---------------------------*/
  .text-center {
    text-align: center;
  }
  .color-white {
    color: #fff;
  }
  .box-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 35px 15px;
    width: 100%;
  }
  .box-item {
    position: relative;
    -webkit-backface-visibility: hidden;
    width: 415px;
    margin-bottom: 35px;
    max-width: 100%;
  }
  .flip-box {
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    perspective: 1000px;
    -webkit-perspective: 1000px;
  }
  .flip-box-front,
  .flip-box-back {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    min-height: 475px;
    -ms-transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    -webkit-transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .flip-box-front {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .flip-box:hover .flip-box-front {
    -ms-transform: rotateY(-180deg);
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .flip-box-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    -ms-transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .flip-box:hover .flip-box-back {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .flip-box .inner {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 60px;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
    perspective: inherit;
    z-index: 2;
    
    transform: translateY(-50%) translateZ(60px) scale(.94);
    -webkit-transform: translateY(-50%) translateZ(60px) scale(.94);
    -ms-transform: translateY(-50%) translateZ(60px) scale(.94);
    top: 50%;
  }
  .flip-box-header {
    font-size: 34px;
  }
  .flip-box p {
    font-size: 20px;
    line-height: 1.5em;
  }
  .flip-box-img {
    margin-top: 25px;
  }
  .flip-box-button {
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    margin-top: 25px;
    padding: 15px 20px;
    text-transform: uppercase;
  }
  /*-----------------------------------CARDS---------------------------*/
/*==========================-DESCRIPCION-======================================*/

/*=============================-SERVICIOS-====================================*/
  /*-----------------------------------CARDS---------------------------*/
    #servicios {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      min-height: 100vh;
      padding-top: 100px
    }
    #servicios .container {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      max-width: 1200px;
      margin: 40px 0;
    }
    #servicios .container .card {
      position: relative;
      min-width: 320px;
      height: 440px;
      box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1),
        5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      margin: 30px;
      transition: 0.5s;
    }
    #servicios .container .card:nth-child(1) .box .content a {
      background: #2196f3;
    }
    #servicios .container .card:nth-child(2) .box .content a {
      background: #e91e63;
    }
    #servicios .container .card:nth-child(3) .box .content a {
      background: #23c186;
    }
    #servicios .container .card .box {
      position: absolute;
      top: 20px;
      left: 20px;
      right: 20px;
      bottom: 20px;
      background: #2a2b2f;
      border-radius: 15px;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      transition: 0.5s;
    }
    #servicios .container .card .box:hover {
      transform: translateY(-50px);
    }
    #servicios .container .card .box:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 50%;
      height: 100%;
      background: rgba(255, 255, 255, 0.03);
    }
    #servicios .container .card .box .content {
      padding: 20px;
      text-align: center;
    }
    #servicios .container .card .box .content h2 {
      position: absolute;
      top: -25px;
      right: 30px;
      font-size: 8rem;
      color: rgba(255, 255, 255, 0.1);
    }
    #servicios .container .card .box .content h3 {
      font-size: 1.4rem;
      color: #fff;
      z-index: 1;
      transition: 0.5s;
      margin-bottom: 15px;
    }
    #servicios .container .card .box .content p {
      font-size: 0.8rem;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.9);
      z-index: 1;
      transition: 0.5s;
    }
    #servicios .container .card .box .content a {
      position: relative;
      display: inline-block;
      padding: 8px 20px;
      background: black;
      border-radius: 5px;
      text-decoration: none;
      color: white;
      margin-top: 20px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
      transition: 0.5s;
    }
    #servicios .container .card .box .content a:hover {
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
      background: #fff;
      color: #000;
    }  
  /*-----------------------------------CARDS---------------------------*/
  /*-----------------------------------FORMS---------------------------*/
    .background {
      display: flex;
      width: 100%;
      justify-content: center;
    }
    .container {
      flex: 0 1 700px;
      margin: auto;
      padding: 10px;
    }
    .screen {
      position: relative;
      background: #3e3e3e;
      border-radius: 15px;
      width: 100%;
    }
    .screen:after {
      content: '';
      display: block;
      position: absolute;
      top: 0;
      left: 20px;
      right: 20px;
      bottom: 0;
      border-radius: 15px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
      z-index: -1;
    }
    .screen-header {
      display: flex;
      align-items: center;
      padding: 10px 20px;
      background: #4d4d4f;
      border-top-left-radius: 15px;
      border-top-right-radius: 15px;
    }
    .screen-header-left {
      margin-right: auto;
    }
    .screen-header-button {
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-right: 3px;
      border-radius: 8px;
      background: white;
    }
    .screen-header-button.close {
      background: #ed1c6f;
    }
    .screen-header-button.maximize {
      background: #e8e925;
    }
    .screen-header-button.minimize {
      background: #74c54f;
    }
    .screen-header-right {
      display: flex;
    }
    .screen-header-ellipsis {
      width: 3px;
      height: 3px;
      margin-left: 2px;
      border-radius: 8px;
      background: #999;
    }
    .screen-body {
      display: flex;
    }
    .screen-body-item {
      flex: 1;
      padding: 50px;
    }
    .screen-body-item.left {
      display: flex;
      flex-direction: column;
    }
    .app-title {
      display: flex;
      flex-direction: column;
      position: relative;
      color: #ea1d6f;
      font-size: 26px;
    }
    .app-title:after {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      bottom: -10px;
      width: 110px;
      height: 4px;
      background: #ea1d6f;
    }
    .app-contact {
      margin-top: auto;
      font-size: 8px;
      color: #888;
    }
    .app-form-group {
      margin-bottom: 15px;
    }
    .app-form-group.message {
      margin-top: 40px;
    }
    .app-form-group.buttons {
      margin-bottom: 0;
      text-align: right;
    }
    .app-form-control {
      width: 100%;
      padding: 10px 0;
      background: none;
      border: none;
      border-bottom: 1px solid #666;
      color: #ddd;
      font-size: 14px;
      text-transform: uppercase;
      outline: none;
      transition: border-color .2s;
    }
    .app-form-control::placeholder {
      color: #666;
    }
    .app-form-control:focus {
      border-bottom-color: #ddd;
    }
    .app-form-button {
      background: none;
      border: none;
      color: #ea1d6f;
      font-size: 14px;
      cursor: pointer;
      outline: none;
    }
    .app-form-button:hover {
      color: #b9134f;
    }
    .credits {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 20px;
      color: #ffa4bd;
      font-family: 'Roboto Condensed', sans-serif;
      font-size: 16px;
      font-weight: normal;
    }
    .credits-link {
      display: flex;
      align-items: center;
      color: #fff;
      font-weight: bold;
      text-decoration: none;
    }
    .dribbble {
      width: 20px;
      height: 20px;
      margin: 0 5px;
    }
  /*-----------------------------------FORMS---------------------------*/
/*=============================-SERVICIOS-====================================*/

/*=============================-UBICACION-====================================*/
  #ubicacion{
    margin: auto 0;
    display: inline-block !important;
    margin: 0 auto;
    min-height: unset;
  }
  #logo{
    z-index: 5 !important;
  }
  #texto{
    z-index: 5 !important;
  }
  /* Start: Google Maps Responsive */
    .map-responsive {
      overflow:hidden;
      padding-bottom:400px; /*Reduce este valor si el mapa fuera muy alto, por ejemplo 250px, puedes usar porcentajes, 50%*/
      position:relative !important;
      height:0;
      min-height: 500px !important;
    }
    .map-responsive iframe{
      left:0;
      top:0;
      height:100%;
      width:100%;
      position:absolute !important;
    }
  /* End: Google Maps Responsive */
/*=============================-UBICACION-====================================*/
/*=============================-CONTACT-====================================*/
  #contacto {
    min-height: auto;
  }
  #contacto ul {
    margin: 0px;
    padding: 0px;
  }
  .footer-section {
    background: #151414;
    position: relative;
    width: 100%;
    padding-top: 50px;
  }
  .title{
    display: flex;
    justify-content: center;
    padding: 50px 0 10px 0;
  }
  #contacto-container{
    padding-bottom: 50px;
  }
  .footer-cta {
    border-bottom: 1px solid #373636;
  }
  .footer-cta .row > div {
    display: flex;
    justify-content: center;
  }
  .single-cta i {
    color: #ff5e14;
    font-size: 30px;
    float: left;
    margin-top: 8px;
  }
  .cta-text {
    padding-left: 15px;
    display: inline-block;
  }
  .cta-text h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .cta-text span {
    color: #757575;
    font-size: 15px;
  }
  .footer-content {
    position: relative;
    z-index: 2;
  }
  .footer-pattern img {
    position: absolute;
    top: 0;
    left: 0;
    height: 330px;
    background-size: cover;
    background-position: 100% 100%;
  }
  .footer-logo {
    margin-bottom: 30px;
  }
  .footer-logo img {
    max-width: 200px;
  }
  .footer-text p {
    margin-bottom: 14px;
    font-size: 14px;
    color: #7e7e7e;
    line-height: 28px;
  }
  .footer-social-icon span {
    color: #fff;
    display: block;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
  }
  .footer-social-icon a {
    color: #fff;
    font-size: 16px;
    margin-right: 15px;
  }
  .footer-social-icon i {
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 38px;
    border-radius: 50%;
  }
  .facebook-bg{
    background: #3B5998;
  }
  .twitter-bg{
    background: #55ACEE;
  }
  .google-bg{
    background: #DD4B39;
  }
  .footer-widget-heading h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
  }
  .footer-widget-heading h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    height: 2px;
    width: 50px;
    background: #ff5e14;
  }
  .footer-widget ul li {
    display: inline-block;
    /* float: left; */
    width: 50%;
    margin-bottom: 12px;
  }
  .footer-widget ul li a:hover{
    color: #ff5e14;
  }
  .footer-widget ul li a {
    color: #878787;
    text-transform: capitalize;
  }
  .subscribe-form {
    position: relative;
    overflow: hidden;
  }
  .subscribe-form input {
    width: 100%;
    padding: 14px 28px;
    background: #2E2E2E;
    border: 1px solid #2E2E2E;
    color: #fff;
  }
  .subscribe-form button {
    position: absolute;
    right: 0;
    background: #ff5e14;
    padding: 13px 20px;
    border: 1px solid #ff5e14;
    top: 0;
  }
  .subscribe-form button i {
    color: #fff;
    font-size: 22px;
    transform: rotate(-6deg);
  }
  /*-----------------------------------copyright-area---------------------------*/
  .copyright-area{
    background: #202020;
    padding: 5px 0;
    margin-top: 50px;
  }
  .copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #878787;
  }
  .copyright-text p a{
    color: #ff5e14;
  }
  .footer-menu li {
    display: inline-block;
    margin-left: 20px;
  }
  .footer-menu li:hover a{
    color: #ff5e14;
  }
  .footer-menu li a {
    font-size: 14px;
    color: #878787;
  }
/*=============================-CONTACT-====================================*/

@media screen and (min-width:1380px) {
  .box-container {
    flex-direction: row
  }
  #portada {
    background-image:url('assets/portada2.jpg') !important;
  }
}
@media(min-width: 992px){
  .navbar-expand-custom {
      -ms-flex-flow: row nowrap;
      flex-flow: row nowrap;
      -ms-flex-pack: start;
      justify-content: flex-start;
  }
  .navbar-expand-custom .navbar-nav {
      -ms-flex-direction: row;
      flex-direction: row;
  }
  .navbar-expand-custom .navbar-toggler {
      display: none;
  }
  .navbar-expand-custom .navbar-collapse {
      display: -ms-flexbox!important;
      display: flex!important;
      -ms-flex-preferred-size: auto;
      flex-basis: auto;
  }
  #portada {
    background-image:url('assets/portada2.jpg') !important;
    background-size: contain; /* Ajusta la imagen para que quepa dentro del área disponible */
    background-attachment: fixed; /* Fija el fondo para evitar que se desplace al hacer scroll */
  }
}
@media (max-width: 991px){
  #navbarSupportedContent ul li a{
      padding: 12px 30px;
  }
  .hori-selector{
      margin-top: 0px;
      margin-left: 10px;
      border-radius: 0;
      border-top-left-radius: 25px;
      border-bottom-left-radius: 25px;
  }
  .hori-selector .left,
  .hori-selector .right{
      right: 10px;
  }
  .hori-selector .left{
      top: -25px;
      left: auto;
  }
  .hori-selector .right{
      bottom: -25px;
  }
  .hori-selector .left:before{
      left: -25px;
      top: -25px;
  }
  .hori-selector .right:before{
      bottom: -25px;
      left: -25px;
  }
  #portada {
    background-image:url('assets/portada2.jpg') !important;
  }

}
@media screen and (max-width: 600px) {
  .screen-body {
    padding: 40px;
  }

  .screen-body-item {
    padding: 0;
  }
  
  #portada {
    background-image:url('assets/portadaMobil2.jpg') !important;
  }
}
@media screen and (max-width: 520px) {
  .screen-body {
    flex-direction: column;
  }

  .screen-body-item.left {
    margin-bottom: 30px;
  }

  .app-title {
    flex-direction: row;
  }

  .app-title span {
    margin-right: 12px;
  }

  .app-title:after {
    display: none;
  }
  .Card-1,
  .Card-2,
  .Card-3{
    width: 100% !important;
    flex-direction: column;
  }
  .flip-box p {
    font-size: 1.2rem !important;
  }
  .background{
    width: 90vw;
  }
  #portada {
    background-image:url('assets/portadaMobil2.jpg') !important;
    background-size: contain; /* Ajusta la imagen para que quepa dentro del área disponible */
    background-attachment: fixed; /* Fija el fondo para evitar que se desplace al hacer scroll */
  }
}
