* {
    margin: 0;
    padding: 0;
    font-size: 20px;
}


@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter'), url(https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Inter'), url(https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuFuYAZ9hiA.woff2) format('woff2');
}

.inter-regular {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.inter-bold {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}



html, body {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    font-family: "inter" ;
    font-weight: 400;
}

svg {
  height: 30px;
  width: 30px;
}


nav {
  background-color: #fff;
    display: flex;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    padding: 10px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav p {
    margin-left: 15px;
    font-weight: 700;
}

nav a:last-child {
  margin-right: 35px;
}

.ingles, .portugues, .español {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.idiomas {
  display: flex;
  align-items: center;
  color: #000;
  margin-right: 20px;
  gap: 8px;
}

.idiomas p {
  margin: 0;
}

.flag-icon {
  vertical-align: middle;
  display: inline-block;
}

a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
}

.background-image {
  position: relative;
  background-image: url("Imagenes/hero-bg-optimized.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  width: 100vw; 
  max-width: 100%; 
  overflow: hidden; 
  will-change: transform;
}

/* Optimización para diferentes tamaños de pantalla */
@media (max-width: 768px) {
  .background-image {
    background-image: url("Imagenes/hero-bg-optimized.webp");
    height: 60vh;
  }
}


section {
    padding: 80px 360px;
    display: flex;
    flex-direction: row; 
    gap: 40px;
}

section .sobre-nosotros-img {
    max-height: 600px;
    width: 600px;
}

section div {
    margin-right: 60px;
}

section h1 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 35px;
}

section h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

section p {
    margin-top: 20px;
    font-weight: 500;
}

#comodidades {
  flex-direction: column;
  gap: 100px ;
  overflow: hidden;
}

.comodidades {
  margin-right: 0px;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out;
  padding: 40px 0;
}

.carousel-track img {
  width: 20vw;
  height: 35vh;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px #0003;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.carousel-track img.active {
  transform: scale(1.1);
  z-index: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dots .dot.active {
  background-color: #333;
}


#horarios-contactos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 300px 420px;
    margin: 0;
}

.horarios {
    grid-row: 2 ;
    grid-column: 1 / span 2;
}

.horarios h2 {
    text-decoration: underline;
}

.contacto {
    grid-row: 3;
    grid-column: 1 / span 3;
    margin-bottom: 0px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.contacto h2 {
    grid-column: 1 / span 4;
    margin-bottom: 0;
    text-decoration: underline;
    height: 60px;
    margin-bottom: 0  ;
}

.mapa {
    grid-row: 2;
    grid-column: 3;
}



.condiciones {
    grid-row: 1;
    grid-column: 1 / span 3;
    margin-right: 0px;
}

.red path{
  fill: #d93025;
}

.hard-green path {
  fill: #128C7E;
}

.blue path {
  fill: #34B7F1;
}

.contacto-info {
    padding: 0px;
    margin-right: 0px;
    display: flex;
    margin-top: 0;
  flex-direction: column;
  align-items: center; /* opcional, para centrar */
  justify-content: left;
  gap: 30px;
  grid-column: span 2;
}

.contacto-info button {
  display: flex;
  width: 400px;
  height: 54px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: white;
}

button.red {
  background-color: #d93025;
}

button.red:hover {
  background-color: #d93025bb;
}

button.hard-green {
  background-color: #128C7E;
}

button.hard-green:hover {
  background-color: #128C7Ebb;
}

button.green {
  background-color: #25D366;
}

button.green:hover {
  background-color: #25D366bb;
}

button.blue {
  background-color: #34B7F1;
}

button.blue:hover {
  background-color: #34B7F1bb;
}

.contacto-item {
  display: flex;
  align-items: center; /* opcional, para centrar */
  gap: 20px;
  margin-top: 0;
}

footer {
    background-color: #3c3c3c;
    height: 120px;
}

.whatsapp-logo {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    overflow: hidden;         /* recorta lo que se pase */
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 80%;
    right: 5%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10s;
    pointer-events: none;
}


.whatsapp-logo.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

.whatsapp-logo img {
    height: 100%;
    width: 100%;
    object-fit: cover;       
}

@media screen  and (max-width: 1600px) {

  #horarios-contactos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .contacto {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-row: 4;
  }

  .contacto h2 {
    grid-column: 1 / span 2;
  }

  .contacto-info {
    flex-direction: column;
    gap: 10px;
  }

  
}

@media screen and (max-width: 1400px) {
  nav > a {
    display: none;
  }
}

@media screen and (max-width: 1300px) {
  .whatsapp-logo {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    bottom: 60px;
    top: auto;
    right: 20px;
  }

  iframe {
    max-width: 100%;
    height: auto;
    display: block;
    align-self: center;
    justify-self: center;
  }

  .contacto-info {

    height: 150px;
}

  .contacto-item {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 1280px) {
  .contacto-info  button{
    width: 60vw;
  }


  body {
    font-size: 16px;
  }

  .background-image {
    height: 50vh;
  }

  section {
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
  }

  section .sobre-nosotros-img {
    width: 100%;
    max-height: 600px;
  }

  section div {
    margin-right: 0;
  }

  .carousel-track img {
  width: 40vw;
  height: 20vh;
}

  #horarios-contactos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .horarios, .contacto, .mapa {
    grid-column: 1;
    grid-row: auto;
  }

  .condiciones {
    grid-column: 1;
    grid-row: 1;
  }

  footer {
    height: auto;
    padding: 20px;
  }

  .whatsapp-logo {
    height: 70px;
    width: 70px;
    top: auto;
    bottom: 60px;
    right: 20px;
  }
}


@media screen and (max-width: 600px) {
  section .sobre-nosotros-img {
    max-height: 400px;
  }

  .contacto-info  button{
    width: 80vw;
  }


  .contacto-info{
    justify-self: center;
  }

  .contacto-info button {
    margin: 0;
  }
}

@media screen and (max-width: 500px) {
  body {
    font-size: 14px;
  }

  button {
    font-size: 20px;
    margin-top: 150px;
  }

  nav p, nav a, a {
    font-size: 14px;
  }

  .idiomas {
    gap: 4px;
  }

  .idiomas p {
    font-size: 10px;
  }

  .idiomas span {
    font-size: 10px;
  }

  .idiomas .flag-icon {
    width: 14px;
    height: 10.5px;
  }

  .ingles, .portugues, .español {
    gap: 2px;
  }

  section h2 {
    font-size: 20px;
  }

  section p {
    font-size: 14px;
  }

  .carousel-track img {
    width: 75vw;
    height: 35vh; 
  }

  .whatsapp-logo {
    right: 60px;
    bottom: 90px;
    height: 60px;
    width: 60px;
  }
}

@media screen and (max-width: 440px) {
  .whatsapp-logo {
    right: 20px;
    bottom: 20px;
    height: 60px;
    width: 60px;
  }
}



