/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

main {
  padding-bottom: 60px;
  /* o el tamaño de tu footer */
}

body {
  background-color: #f4fdf7;
  color: #333;
  line-height: 1.6;
  margin-top: 70px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Dancing Script', cursive;
  color: #007a21;
}

body,
p,
a,
button {
  font-family: 'Montserrat', sans-serif;
}

/* ========================
   FORMULARIOS DE CONTACTOS
========================= */

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea,
select,
button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Hover para las tarjetas de contacto */
#contacto .col-md-3 > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* opcional: cambia el cursor al pasar sobre la tarjeta */
}

#contacto .col-md-3 > div:hover {
    transform: translateY(-8px) scale(1.03); /* se eleva y se agranda un poco */
    box-shadow: 0 12px 20px rgba(0,0,0,0.25); /* sombra más intensa */
}

/* Opcional: efecto para los íconos */
#contacto .col-md-3 > div:hover i {
    color: #2e7d32; /* verde más intenso al pasar el mouse */
    transform: scale(1.2); /* ícono un poco más grande */
    transition: transform 0.3s ease, color 0.3s ease;
}


/* ========================
   SECCIONES
========================= */

.section {
  max-width: 900px;
  margin: 80px auto 40px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
  color: #990000;
  margin-bottom: 10px;
}



/* ========================
   HERO
========================= */

.hero {
  position: relative;
  height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: url(../images/Hotel2.jpg) center center / cover no-repeat;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.typing-text {
  display: block;
  min-height: 50px;
  /* más alto para que no brinque al escribir */
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  /* más grande */
  font-weight: 500;
  /* más grueso */
  letter-spacing: 1px;
  /* un poco de espacio entre letras */
  position: relative;
  z-index: 2;
}

/* 🔹 Título en cursiva elegante */
.hero h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* 🔹 Subtítulos / frases */
.hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
}

/* Botón */
.hero .button {
  padding: 12px 30px;
  background: #28a745;
  /* verde hotel */
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  position: relative;
  z-index: 2;
}

.hero .button:hover {
  background: #218838;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: 450px;
    padding: 20px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}


/* ========================
   MAPA
========================= */

.mapa {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.mapa .card {
  max-width: 900px;
  width: 100%;
}

/* ========================
   FOOTER
========================= */

/* Footer mejorado */
.footer {
  background: #007a21;
  /* similar al ejemplo */
  color: #ddd;
  padding: 40px 20px 20px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 15px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #ffd700;
  /* línea decorativa roja */
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffd700;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 10px;
  font-size: 14px;
  color: #aaa;
}

.services-section {
  background-color: #007a21;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.service-icon {
  width: 100px;
  height: 100px;
  background-color: white;
  color: #007a21;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}



.bienvenido {
  display: inline-block;
  font-size: 3rem;
  font-weight: bold;
  color: #0d0d0d;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlide 1.5s ease forwards;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================
  TARJETAS DE HABITACIONES
========================= */

.room-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* hace que ocupe toda la altura disponible del col */
}

.room-image-wrapper {
  overflow: hidden;
}

.room-image {
  width: 100%;
  height: 200px;
  /* altura fija para todas las imágenes */
  object-fit: cover;
  /* mantiene proporción y recorta si es necesario */
}

.room-info {
  flex-grow: 1;
  /* hace que la info ocupe el resto del espacio */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* separa título, texto y botón */
  padding: 1rem;
  text-align: center;
  background-color: white;
  color: #007a21;
}

.btn-reservar {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: #007a21;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 0.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-reservar:hover {
  background-color: #005e16;
  transform: scale(1.05);
}

/* 
FIN TARJETAS DE HABITACIONES
========================= */



#imagenHabitacion {
  transition: opacity 0.4s ease-in-out;
}

/* ========================
   LINEA DE TIEMPO
========================= */

/* Sección */
.fotos-timeline {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}

.fotos-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #2e7d32;
}

/* Timeline horizontal */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 20px 0;
}

/* Línea verde */
.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #2e7d32;
  z-index: 0;
  border-radius: 3px;
}

/* Cada tarjeta */
.timeline-card {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* transición suave */
}

.timeline-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.timeline-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2e7d32;
}

/* Hover effect */
.timeline-card:hover {
  transform: translateY(-10px) scale(1.05); /* se eleva y se agranda ligeramente */
  box-shadow: 0 12px 20px rgba(0,0,0,0.25); /* sombra más intensa */
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .timeline-horizontal {
    flex-direction: column;
  }

  .timeline-horizontal::before {
    top: auto;
    left: 50%;
    width: 6px;
    height: 100%;
  }

  .timeline-card {
    width: 80%;
    margin-bottom: 30px;
  }
}


/* ========================
   SERVICIOS HOTEL
========================= */
#servicios h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-size: 3.5rem;
}

#servicios {
  background: linear-gradient(135deg, #f8fff9, #e9f7ef);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}


#servicios h2::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 3px;
  background: #ffd700;
  left: 50%;
  transform: translateX(-40%);
  bottom: 0;
  border-radius: 2px;
}


#servicios-hotel h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#servicios-hotel .material-symbols-outlined {
  font-size: 28px;
  color: #007a21;
}

/* Íconos con línea amarilla */
#servicios-hotel .icon {
  font-size: 36px;
  color: #007a21;
  border-left: 4px solid #ffd700;
  padding-left: 12px;
  margin-right: 12px;
  height: 100%;
  display: flex;
  align-items: flex-start;
}

/* Ajuste del título de cada bloque */
#servicios-hotel h5 {
  font-weight: bold;
  margin-bottom: 8px;
}

#servicios-hotel ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

#servicios-hotel ul li {
  margin-bottom: 4px;
}

/* Opcional: suavizar aparición al hacer scroll */
#servicios-hotel .col-md-6 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Títulos verdes personalizados para servicios */
.titulo-verde {
  color: #007a21 !important;
}

.menu-carta ul li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  /* Ajusta el tamaño si lo quieres un poco más pequeño o grande */
}

.menu-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.menu-list li {
  margin-bottom: 4px;
  /* reduce el espacio entre li */
  line-height: 1.3;
  /* más compacto */
}


#servicios-hotel .col-md-6:nth-child(1) {
  animation-delay: 0.1s;
}

#servicios-hotel .col-md-6:nth-child(2) {
  animation-delay: 0.2s;
}

#servicios-hotel .col-md-6:nth-child(3) {
  animation-delay: 0.3s;
}

#servicios-hotel .col-md-6:nth-child(4) {
  animation-delay: 0.4s;
}

#servicios-hotel .col-md-6:nth-child(5) {
  animation-delay: 0.5s;
}

#servicios-hotel .col-md-6:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo y Mensaje de Bienvenida centrado debajo del título */
.logo-bienvenida {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}

/* Solo en celulares: logo más pequeño */
@media (max-width: 768px) {
  .logo-bienvenida {
    max-width: 250px;
  }
}

/* Mensaje de Bienvenida */
@media (max-width: 768px) {
  #servicios h2 {
    font-size: 3rem;
  }
}


/* ========================
   CARRUSEL DE IMAGENES
========================= */
/* Contenedor del carrusel */
.carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  /* Ocupa toda la pantalla */
  overflow: hidden;
  margin: 50px 0 50px 0;
}

/* Cada slide */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: all 1s ease-in-out;
}

.carousel-slide.active {
  left: 0;
  opacity: 1;
  z-index: 1;
}

/* Texto encima de la imagen */
.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  /* Fondo oscuro para legibilidad */
  padding: 20px 25px;
  border-radius: 10px;
  max-width: 85%;
}

/* Títulos */
.carousel-content h1 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

/* Párrafos */
.carousel-content p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

/* Botón */
.carousel-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007a21;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.carousel-btn:hover {
  background-color: #005c19;
}

/* Controles */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 3;
  transition: 0.3s;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .carousel {
    height: 45vh;
    /* Menos alto en móvil */
  }

  .carousel-content {
    max-width: 95%;
    padding: 15px 18px;
  }

  .carousel-content h1 {
    font-size: 1.3rem;
  }

  .carousel-content p {
    font-size: 0.95rem;
  }

  .carousel-btn {
    font-size: 0.85rem;
    padding: 8px 18px;
  }
}


/* =======================
  BOTONES RESERVAR DE HABITACION
======================= */

.btn-reservar {
  display: inline-block;
  padding: 0.4rem 1rem;
  /* espacio interno */
  background-color: #007a21;
  /* color de fondo */
  color: #fff;
  /* color del texto */
  font-weight: bold;
  border: none;
  border-radius: 0.3rem;
  /* esquinas redondeadas */
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-reservar:hover {
  background-color: #005e16;
  /* verde más oscuro al hover */
  transform: scale(1.05);
  /* ligero zoom */
}


/* ================
    INICIO XD
  ================= */
/* Sección de confianza */
#confianza h2 {
  color: #007a21;
}

.feature-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 48px;
  color: #007a21;
  background: #e9f7ef;
  border-radius: 50%;
  padding: 12px;
}

#confianza img {
  max-width: 90%;
  /* se ajusta sin ocupar todo */
  max-height: 380px;
  /* altura máxima */
  object-fit: cover;
  border-radius: 12px;
}

.habitacion-img-preview {
  width: 125%;
  height: 475px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: #e9f7ef;
  display: block;
}

@media (max-width: 991px) {
  .habitacion-img-preview {
    height: 220px;
  }
}

/* ========================
   CARRUSEL SWIPER
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.6s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.8s;
}

.fade-in:nth-child(5) {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#galeria-hotel img {
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

#galeria-hotel img:hover {
  transform: scale(1.05);
}


#reserva-seccion {
  scroll-margin-top: 100px;
  /* ajusta según el alto de tu navbar */
}

/* ========================
   SECCIÓN RESEÑAS
========================= */
/* Sección general */
.resena-section {
  padding: 60px 20px;
  background: #f9f9f9;
  font-family: "Segoe UI", sans-serif;
}

.resena-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 50px;
  color: #2e7d32;
}

/* Línea principal */
.resena {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.resena::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #2e7d32;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 5px;
}

/* Elementos */
.resena-item {
  padding: 20px 30px;
  position: relative;
  width: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* transición suave */
}

.resena-item.left {
  left: 0;
}

.resena-item.right {
  left: 50%;
}

/* Caja de contenido */
.resena-content {
  padding: 20px;
  background: white;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resena-content h3 {
  margin: 0 0 10px;
  color: #2e7d32;
}

.resena-content p {
  margin: 0;
  color: #444;
  line-height: 1.6;
}

/* Hover effect */
.resena-item:hover .resena-content {
  transform: translateY(-10px); /* se eleva un poco */
  box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* sombra más intensa */
}

/* Círculos */
.resena-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2e7d32;
  border: 3px solid #fff;
  z-index: 1;
}

.resena-item.left::before {
  right: -10px;
}

.resena-item.right::before {
  left: -10px;
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .resena::after {
    left: 20px;
  }

  .resena-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 25px;
  }

  .resena-item.right {
    left: 0%;
  }

  .resena-item.left::before,
  .resena-item.right::before {
    left: 10px;
  }
}

/* ========================
   TRADICIONES
========================= */
#tradiciones .carousel-item img {
    max-height: 600px; /* ajusta según tus imágenes */
    object-fit: contain; /* mantiene la proporción de la imagen */
    width: 100%;
}
#tradiciones h2 {
    font-size: 2rem;
    color: #007a21;
}
#tradiciones p {
    font-size: 1.1rem;
    line-height: 1.6;
}

#carouselTradiciones .carousel-item img {
    max-height: 600px; /* ajusta según tus imágenes */
    object-fit: contain;
    width: 100%;
}

/* Botones verdes centrados verticalmente */
#carouselTradiciones .carousel-control-prev,
#carouselTradiciones .carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

#carouselTradiciones .carousel-control-prev-icon,
#carouselTradiciones .carousel-control-next-icon {
    background-color: #28a745; /* verde */
    border-radius: 50%;
    padding: 10px;
}

#carouselTradiciones .carousel-control-prev-icon:hover,
#carouselTradiciones .carousel-control-next-icon:hover {
    background-color: #1e7e34; /* verde más oscuro al pasar el mouse */
}

/* ========================
   SECCION MISION Y VISION
========================= */
/* Hover para las tarjetas dentro de container */
.container_mivi .col-md-6 > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* transición suave */
}

.container_mivi .col-md-6 > div:hover {
    transform: translateY(-10px); /* se eleva un poco */
    box-shadow: 0 12px 20px rgba(0,0,0,0.25); /* sombra más intensa */
}
