
html {
  scroll-behavior: smooth;
}

#contact {
  scroll-margin-top: 96px;
}
body {
    font-family: "Afacad", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    background-color: #F2ECE6;
    color: #333;
    font-size: 130%;
  }

  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }

  h1, h2, h3, h4, h5, h6 {
    text-align: center;
    font-family:"century-gothic", sans-serif;
    font-weight: 500;
  }

  /* Navbar Styles */
  nav {
    background-color: #333;
    color: white;
  }

  nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
  }

  /* Hero Section with Video */
  #hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  } 

  .scroll-down {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      animation: bounce 2s infinite;
  }

  .scroll-down a svg {
      width: 80px;
      height: 80px;
      fill: white;
      filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.4));
      transition: transform 0.3s ease-in-out;
  }

  .scroll-down a svg:hover {
      transform: scale(1.2); 
  }

  @keyframes bounce {
      0%, 20%, 50%, 80%, 100% {
          transform: translate(-50%, 0);
      }
      40% {
          transform: translate(-50%, -10px);
      }
      60% {
          transform: translate(-50%, -5px);
      }
  }

  #hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  #hero .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
  }

  #hero .content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  }

  #hero .content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  #hero .content .btn {
    background: rgba(29, 46, 35, 0.85);
    border: none;
    color: #FFCB7E;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  #hero .content .btn:hover {
   color: rgba(29, 46, 35, 0.85);
   background: #FFCB7E;
  }

  /* Gallery Section */
  #gallery {
    text-align: center;
    padding: 2rem 0;
  }

  #gallery h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  #gallery p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: black;
  }

  .carousel-inner {
    display: flex;
  }

  .carousel-item {
    flex: 0 0 100%; 
  }

  .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 350px;
    border-radius: 0px;
  }

  /* Páginas interiores de servicios */
  .service-carousel {
    height: 750px;
  }

  .service-carousel .carousel-item img {
    height: 750px;
  }

  .service-heading {
    margin-top: -55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .service-heading h1 {
    margin: 0;
    flex: 1;
  }

  .service-heading-spacer {
    width: 1.5em;
  }

  .image-container.service-option {
    height: 200px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: inherit;
  }

  .image-container.service-option .overlay {
    background-color: rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
  }

  .image-container.service-option h5,
  .image-container.service-option .h5 {
    margin-bottom: 35px;
    font-size: 2.4rem;
    font-weight: 600;
    background: linear-gradient(to bottom, rgb(242, 208, 140), rgb(242, 208, 140), rgb(242, 208, 140), rgb(242, 208, 140));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .image-container.service-option:hover .overlay,
  .image-container.service-option:focus-visible .overlay {
    background-color: rgba(0, 0, 0, 0.35);
  }

  .image-container.service-option:hover h5,
  .image-container.service-option:hover .h5 {
    font-size: 3rem;
  }

  .service-option:focus-visible {
    outline: 3px solid #F5CDAE;
    outline-offset: -3px;
  }

  .hidden-content {
    display: none;
  }

  .hidden-content.active {
    display: block;
  }

  .multi-slide {
    display: flex;
    justify-content: space-between;
    gap: 0;
  }

  .multi-slide .col {
    flex: 1 1 0;
  }

 
  .carousel-inner .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;

  }

  footer {
    background-color: #1E3427;
    /* color: #FFCB7E; */
    padding: 2rem 0;
    text-align: center;
  }
  .bgColorTheme{
    background-color: #1E3427;
  }
  .bgColorThemeBar{
    background: rgba(30, 52, 39, 0.65);
   
  }

  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .navbar-logo {
    height: 40px;
    width: auto;
    display: block;
  }

  .navbar-brand picture {
    display: block;
    line-height: 0;
  }

  .footer-logo {
    height: 150px;
    width: auto;
    max-width: 100%;
    display: block;
  }

  footer picture {
    display: inline-block;
    line-height: 0;
  }

  .language-link {
    margin-right: 12px;
  }

  .section-heading-offset {
    margin-top: -55px;
  }

  .not-found {
    min-height: 55vh;
    padding-top: 10rem;
  }

  .contact-status {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .2);
  }
  .textColorTheme{
    color: #F5CDAE
  }
  .textColorTheme:hover{
    color: white;
  }

  .textColorThemePrimary{
    color: #FFCB7E;
    /* background: linear-gradient(to bottom, #FFCB7E, #674323 );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
  } 

  .textColorThemeSecondary{
    color: #6C4227;
  }

  .textColorThemeContent{
    color: #284034;
  }

  .image-container {
    position: relative;
    width: 100%;
    height: 380px; 
    overflow: hidden;
    border-radius: 0px; 
  }
  
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease-in-out;
  } 
  
  .image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.3);  */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 100%, rgba(0, 0, 0, 0.3) 100%, rgba(0, 0, 0, 0.9) 85%);
    display: flex;
    align-items: flex-end;
    justify-content: center; 
    opacity: 1;    
    color: #FFCB7E;
    font-size: 1.2rem;
    transition: opacity 0.5s ease-in-out;
  }

  .image-container h5 {
    margin-bottom: 35px;
    font-weight: 600;
    /* color: #FFCB7E; */
    /* background: linear-gradient(to bottom, #FFCB7E, #674323 ); */
    background: linear-gradient(to bottom,rgb(242, 208, 140), rgb(242, 208, 140), rgb(180, 139, 58),rgb(242, 208, 140));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .image-container h5.text-degrade,
  .image-container h2.text-degrade {
    margin-bottom: 35px;
    font-weight: 600;
    /* color: #FFCB7E; */
    /* background: linear-gradient(to bottom, #FFCB7E, #674323 ); */
    background: linear-gradient(to bottom,rgb(242, 208, 140), rgb(242, 208, 140), rgb(180, 139, 58),rgb(242, 208, 140));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }


  
  .image-container:hover .overlay:hover {
    background-color: rgba(0, 0, 0, 0.35); 
    /* background: linear-gradient(to bottom, rgba(29, 46, 35, 0.1) 25%, rgba(29, 46, 35, 0.3) 45%, rgba(29, 46, 35, 0.9) 95%); */
  }
  
.image-container:hover img {
    transform: scale(1.2); 
  } 
  
  .image-container:hover .overlay {
    opacity: 1; 
  } 



  .header-text {
    font-size: 1.25rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    color: #4b4b4b;
  }
  .card-title h3 {
    font-size: 1.1rem;
    font-weight: normal;
    color: #a0522d; 
  }
  .card-title2 h3 {
    font-size: 0.8rem;
    font-weight: bold;
    color: #a0522d; 
  }
  .card-text {
    font-size: 1.3rem;
    color: #4b4b4b;
  }
  .rounded-image {
    width: 100%; 
    /* max-width: 400px; */
    height: auto; 
    border-radius: 15px; 
  }
  
  .row {
    margin-bottom: 3rem;
  }
  .content-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .text-container {
    padding: 1rem;
  }

  .spaces{
    margin-top: 100px;
  }

  .altura{
    min-height: 150px;
  }



  .rounded-image-left {
    border-top-right-radius: 50px; 
    border-bottom-right-radius: 50px;
    overflow: hidden;
    margin-right: 3%;
  }


  .rounded-image-right {
    border-top-left-radius: 50px; 
    border-bottom-left-radius: 50px;
    margin-left: 3%;
    overflow: hidden;
  }

  .rounded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
  }


.button-container {
  position: absolute;
  width: 379px;
  height: 160px; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 48px;
  transition: all 0.3s ease;
}

.button-container button {
  background-color: #1b3817;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 10px 30px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form {
  display: none;
  padding: 20px;
  width: 600px;
  height: auto;
  transition: all 0.3s ease;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  position: absolute;
}

.contact-form {
  display: block;
  width: 860px;
  height: 500px;
  position: absolute;
}

.contact-form .contactTit{
  /* color: #FFCB7E; */
  color: #976d3e;
  font-weight: normal;
}

.contact-form .contactLabel{
  color: #976d3e;
  font-weight: 700;
}

  .button-container button:hover {
    background-color: #1E3427;
  }

  
  .own{
    margin-bottom: 50px;
  }

  .back_to_top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #fff;
    border: 0;
    padding: 0;
    border-radius: 0.4rem;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0.5rem rgb(231, 231, 231);
    transition: all 0.2s ease-in-out;
    transform: translateY(-30rem);
  }
  .back_to_top svg {
    color: #1E3427;
    width: 30px;
    height: 30px;
    vertical-align: middle;
  }
  .back_to_top.show {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    transform: translateY(0rem);
  }



  .slider {
    margin-bottom: 10px;
    position: relative;
  }
  .slider .owl-item.active.center .slider-card {
    transform: scale(1.15);
    opacity: 1;
    background: #FFCB7E;
    background: -webkit-linear-gradient(to bottom, #1E3427, #FFCB7E); 
    background: linear-gradient(to bottom, #1E3427, #FFCB7E); 
    color: #fff;
  }
  .slider-card {
    background: #fff;
    padding: 0px 0px;
    margin: 50px 15px 90px 15px;
    border-radius: 5px;
    transform: scale(0.9);
    opacity: 0.5;
    transition: all 0.3s;
  }
  .slider-card img {
    border-radius: 5px 5px 0px 0px;
    object-fit: cover; 
    width: 100%;
    height: 300px;
    display: block; 
    overflow: hidden; 
  }

  .slider-card h5,
  .slider-card h2{
    position: absolute;
    bottom: 25px;
  }
  .slider-card p{
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1;
  }

  .slider-card:hover p {
    opacity: 1;
    visibility: visible;
  }


  .owl-nav .owl-prev {
    position: absolute;
    top: calc(50% - 25px);
    left: 0;
    opacity: 1;
    font-size: 30px !important;
    z-index: 1;
  }
  .owl-nav .owl-next {
    position: absolute;
    top: calc(50% - 25px);
    right: 0;
    opacity: 1;
    font-size: 30px !important;
    z-index: 1;
  }
  .owl-dots {
    text-align: center;
  }
  .owl-dots .owl-dot {
    height: 6px;
    width: 40px;
    border-radius: 6px;
    background: #ccc !important;
    margin-left: 3px;
    margin-right: 3px;
    outline: none;
  }
  .owl-dots .owl-dot.active {
    background: #1E3427 !important;
  }


  .navbar-toggler {
    border-color: #FFCB7E; 
    transition: background-color 0.3s, border-color 0.3s; 
  }

  .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFCB7E;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23FFCB7E' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  .navbar-toggler:hover .navbar-toggler-icon {
    filter: brightness(1.2);
  }


  .styled-form {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.styled-form h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.styled-form label {
    font-weight: 500;
    color: #555;
}

.styled-form .form-control {
    padding: 2px;
    border: none;
    font-size: 1.133rem;
    border-bottom: 2px solid #ccc; 
    border-radius: 0; 
    outline: none; 
    box-shadow: none; 
}

.styled-form .form-control:focus {
  border-bottom-color: #999; 
  outline: none;
}

/* Borde inferior rojo para campos inválidos */
/* .form-control:invalid {
  border-bottom: 1px solid red;
}

.form-control:valid {
  border-bottom: 1px solid #999;
} */





.styled-form .btn {
    font-size: 1rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 96%;
}

.styled-form .btn-success {
    background-color: #674323 ;
    border: none;
    margin-left: 2%;
}

.styled-form .btn-success:hover {
    background-color: #896337;
}

.styled-form .btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #fff;
    margin-right: 2%;
}

.styled-form .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

.rounded-circle-custom {
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-color:  #FFCB7E !important;
}

.rounded-circle-custom:hover {
  border-color:  white !important;
}

.flecha{
  text-decoration: none; 
  color: #FFCB7E; 
  display: flex; 
  align-items: center;
  font-size: 2.3rem;
  padding-left: 20px;
}


.overlay33 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6); /* Oscurecer fondo */
  z-index: 9999;
  transition: opacity 0.3s ease; /* Añadir transición suave */
  opacity: 1; /* Visibilidad inicial */
  visibility: visible; /* Asegurarse que esté visible al cargar */
}

.overlay33.hidden {
  opacity: 0; /* Ocultar visualmente */
  visibility: hidden; /* Ocultar del flujo del documento */
}

.overlay-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: #333;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-top: 4px solid #FFCB7E;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}



.nav{
  background-color: transparent;
}

.nav-link{
  /* color: #FFCB7E; */
  background: linear-gradient(to bottom,rgb(242, 208, 140), rgb(242, 208, 140), rgb(180, 139, 58),rgb(242, 208, 140));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover{
  text-decoration: none;
  color: white;
}

.custom-outline {
  position: relative;
  width: 100%;
  text-align: center;
  margin-left: 12px;
  margin-right: 12px;
  border-radius: 12px; 
  outline: 1px solid #FFCB7E;
}

.custom-outline:hover {
  outline: 2px solid white; 
}

.custom-width {
  padding-left: 15px;
  padding-right: 15px;
  text-align: center;
}

.flags{
  margin-left: 35px;
}


.nav-link.active, .nav-link.custom-active {
  color: white !important;
  font-weight: bold;
  /* text-decoration: underline !important; */
}

.custom-outline.active {
  outline: 2px solid white; 
}


/* Clase para fade */
.fade-in {
  animation: fadeIn 0.3s forwards;
}

.fade-out {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}




/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
  .service-carousel,
  .service-carousel .carousel-item img {
    height: clamp(360px, 62vh, 560px);
  }

  .service-heading {
    margin-top: -3rem;
  }

  .service-heading h1 {
    font-size: clamp(1.45rem, 4vw, 2rem);
  }

  .carousel-control-prev,
  .carousel-control-next {
    min-width: 44px;
  }

  .navbar-collapse {
    background: rgba(30, 52, 39, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .navbar-nav {
    align-items: center;
  }

  .nav-item {
    width: 100%;
    margin: 0.5rem 0;
  }

  .custom-width {
    padding: 0.5rem 0;
  }

  .flags {
    margin: 1rem 0 0 0;
    justify-content: center;
  }

  .custom-outline {
    margin: 0.5rem 0;
    padding: 0.5rem;
  }

  /* Adjust the toggler position */
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    margin-right: 0;
  }

  /* Make links more tappable on mobile */
  .nav-link {
    padding: 0.8rem 1rem;
    width: 100%;
    text-align: center;
  }
}



 /* Add mobile styles */
 /* @media (max-width: 768px) {
  .rounded-image-left,
  .rounded-image-right {
    height: 200px; 
  }

  .rounded-image-left img,
  .rounded-image-right img {
    height: 100%;
  }

  .rounded-image-left {
    margin-right: 0;
    margin-bottom: 15px;
    margin-left: 50px;
  }

  .rounded-image-right {
    margin-left: 0;
    margin-right: 50px;
  }
}*/


@media (max-width: 768px) {
  body {
    font-size: 112.5%;
  }

  #hero {
    height: 100dvh;
  }

  .service-carousel,
  .service-carousel .carousel-item img {
    height: clamp(320px, 52vh, 420px);
  }

  .image-container.service-option {
    height: 180px;
  }

  .image-container.service-option h5,
  .image-container.service-option .h5 {
    font-size: 1.4rem;
  }

  .image-container.service-option:hover h5,
  .image-container.service-option:hover .h5 {
    font-size: 2rem;
  }

  .service-option:active .overlay {
    background-color: rgba(0, 0, 0, 0.35);
  }

  .service-option:focus-visible {
    outline-offset: -4px;
  }
  .rounded-image-left,
  .rounded-image-right {
    height: 200px;
    width: 100%; /* Take full width */
    margin: 0 0 15px 0; /* Reset margins and keep bottom spacing */
    display: flex; /* Enable flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
  }

  .rounded-image-left img,
  .rounded-image-right img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Maintain aspect ratio while covering container */
    object-position: center; /* Center the image within container */
  }

  .altura{
    min-height: 80px;
  }

  .contact-form {
    display: none;
    padding: 10px;
    width: 90%;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    position: absolute;
    font-size: 80%;
  }

}
