:root {
    --beige: rgb(230, 230, 230);
}


body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: black;
}

.madera {
    position: relative;
    background: url('../images/madera.webp') center/cover no-repeat fixed;
}

/* Capa de transparencia */
.madera::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(3, 3, 3, 0.8); /* Blanco translúcido */
    z-index: 0;
}

/* Asegurá que el contenido esté encima */
.madera > * {
    position: relative;
    z-index: 1;
}

.marck-script-regular {
  font-family: "Marck Script", cursive;
  font-weight: 400;
  font-style: normal;
}

.noto-sans-nko-unjoined {
  font-family: "Noto Sans NKo Unjoined", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.signika {
  font-family: "Signika", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "GRAD" 0;
}

h2{
    font-family: "Signika", sans-serif;
    font-weight: 700;
    color: var(--beige);
}

p{
    font-family: "Noto Sans NKo Unjoined", sans-serif;
    font-weight: 100;
    
}

button, .btn-square {
    font-family: "Noto Sans NKo Unjoined", sans-serif;
}

/* ==== NAVBAR ==== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* blanco semitransparente */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
    /* da efecto de vidrio difuminado */
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: center;
    /* centra el logo */
    align-items: center;
}

.navbar-logo img {
    height: 70px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .navbar-logo img {
    height: 50px;
    transition: transform 0.3s ease;
    }
}

.navbar-logo img:hover {
    transform: scale(1.05);
}

/* ==== SECCIONES GENERALES ==== */
.section {
    padding: 80px 20px 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--beige);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Cuando el elemento entra en pantalla */
.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .section {
        padding: 60px 20px 40px 20px;
    }
    .section-title {
        font-size: 2.5rem;   /* entre 20–22 px aprox */
        line-height: 1.3;
        text-align: center;  /* mejora alineación en pantallas pequeñas */
        margin-bottom: 1rem;
    }
}


/* ==== HERO ==== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 90px; /* 🧩 evita que quede detrás del navbar */
}

/* ==== VIDEO DE FONDO ==== */
.video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* 💡 Clave: cubrir toda el área sin distorsión */
.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100vw;
  height: 56.25vw; /* relación 16:9 = 9 / 16 = 0.5625 */
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: cover;
}

/* ==== OVERLAY ==== */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* ==== CONTENIDO ==== */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 700px;
  padding: 40px 20px 60px;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h2 {
  font-size: 3.8rem;
  line-height: 1.1;
}

@media (max-width: 992px) {
  .hero {
    height: 80vh;
    margin-top: 70px;
  }
  .hero-content h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero-content h2 {
    font-size: 3rem;
    margin-bottom: 0px;
  }
  .video-container iframe {
    width: 150vh;
    height: 100vh;
  }
}

.separador-italia {
    width: 100%;
    height: 8px;
    display: flex;
    overflow: hidden;
    
}

.verde { background-color: #008C45; flex: 1; }
.blanco { background-color: #F4F5F0; flex: 1; }
.rojo { background-color: #CD212A; flex: 1; }

@media (max-width: 768px) {
    .separador-italia {
        width: 100%;
        height: 5px;
    }
}

/* ==== BOTONES CUADRADOS ==== */
.botones-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0px; /* Espaciado consistente */
}

.btn-square {
    width: 200px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 0;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
    transition: all 0.35s ease;
}

/* EFECTO HOVER */
.btn-square:hover {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: #c4c4c4;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(179, 179, 179, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .btn-square {
        width: 150px;
        height: 50px;
    }
}

/* ==== SERVICIOS ==== */

.servicios {
    text-align: center;
    
}

.servicios .section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    
}

.iconos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
  justify-items: center;
  align-items: start; /* ⬅️ mejor base visual */
}

/* Cada ítem se organiza en columna y se centra */
.icono-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Igualar altura de la imagen */
.icono-serv {
  width: 80px;
  height: 80px; /* ⬅️ fuerza consistencia visual */
  object-fit: contain;
  margin-bottom: 15px;
}

/* Aseguramos que los títulos se alineen */
.icono-item h3 {
  font-family: "Marck Script";
  font-size: 2rem;
  color: var(--beige);
  margin-bottom: 8px;
  min-height: 48px; /* ⬅️ fija un alto igual para todos los títulos */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Texto */
.icono-item p {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
  max-width: 240px;
}

/* Responsivo */
@media (max-width: 992px) {
  .iconos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {

    .servicios {
    padding-top: 40px;
    
}

    .servicios .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    
}
    .iconos-grid {
        grid-template-columns: 1fr;
    }
}

/* ==== SECCIÓN HORARIOS y MAPA ==== */
.horarios {
    padding: 80px 20px;
    color: #ffffff;
}

.horarios .section-title {
    color: var(--beige);
    margin-bottom: 2rem;
}

.horarios .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Mapa */
.mapa-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsivo */
@media (max-width: 768px) {
    .horarios {
        padding: 60px 15px;
    }
    
    .horarios .section-title {
        font-size: 2rem;
    }


    .mapa-container {
        margin-top: 30px;
    }
}

/* ==== RESPONSIVO ==== */
@media (max-width: 992px) {
    .iconos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .iconos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* ==== BLOQUE PRINCIPAL ==== */
.carrusel-reserva {
  padding: 80px 20px;
}

/* ==== CARRUSEL ==== */
.carrusel-section {
  text-align: center;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Botones del carrusel */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: #000;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  z-index: 5;
}

.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

/* ==== FORMULARIO DE RESERVAS ==== */
.reservas {
  text-align: center;
  
}

.reservas h2 {
  font-size: 2.4rem;
  color: #000;
}

.reserva-form {
  max-width: 400px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #fdfdfd;
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #0078d7;
  box-shadow: 0 0 6px rgba(0, 120, 215, 0.2);
}

.reserva-form button {
  background-color: #000;
  color: var(--beige);
  align-self: center;
  max-width: 300px;
  width: 100%;
}

/* ==== RESPONSIVO ==== */
@media (max-width: 992px) {
  .carrusel-reserva {
    padding: 60px 10px;
  }

  .carousel {
    height: 400px;
  }

  .reservas h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }

  .slide img {
    width: 100%;
  }
}

/* ==== PARALLAX VISTAS ==== */
.parallax-vistas {
    position: relative;
    height: 90vh; /* altura visual potente */
    background-image: url('../images/terraza.webp'); /* tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* efecto parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

/* capa de color para contraste */
.parallax-overlay {
    background-color: rgba(0, 0, 0, 0.35);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
    animation: fadeInUp 1.5s ease;
}

.parallax-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.parallax-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Animación suave de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== RESPONSIVO ==== */
@media (max-width: 768px) {
    .parallax-vistas {
        background-attachment: scroll; /* desactiva parallax en móviles por rendimiento */
        height: 60vh;
    }

    .parallax-content h2 {
        font-size: 2rem;
    }

    .parallax-content p {
        font-size: 1rem;
    }
}


/* ==== GALERÍA ==== */
.galeria {
    background-color: var(--beige);
    text-align: center;
    padding: 40px 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* ✅ 6 por fila en escritorio */
    gap: 10px;
    margin-top: 40px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galeria-item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ==== LIGHTBOX ==== */
.lightbox {
    display: none; /* oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(255,255,255,0.2);
    animation: fadeIn 0.5s ease;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox .close:hover {
    opacity: 0.7;
}

/* ==== ANIMACIÓN ==== */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==== RESPONSIVO ==== */
@media (max-width: 1024px) {
    .galeria-grid {
        grid-template-columns: repeat(4, 1fr); /* tablets */
    }
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr); /* móviles */
    }
}
