:root {
    --primary-color: #385E72;
    --secondary-color: #587C83;
    --accent-color: #3B7262;
    --text-color: #4A4A4A;
    --light-bg-color: #f7f9f7;
    --border-color: #e0e0e0;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #f0f4f2;
}

/* Aplicar Archivo Black a todos los h1 */
h1, h2, h3, h4 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
}


/*
h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
}*/

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* === Header con efecto vidrio templado === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: rgba(255,255,255,1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.666);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav a {
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav a.active,
.nav a:hover {
    background-color: #0a3d35; /* igual al color de los h2 */
    color: white;
}


/* === HERO con carrusel === */
.hero-section {
  position: relative;
  min-height: 70vh; /* altura del carrusel */
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-carousel .slide.active {
  opacity: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.18));
  z-index: 0; /* queda detrás del .hero-content */
}


.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(300px, 80%, 980px);
  max-width: 980px;
  padding: 28px 36px;
  border-radius: 16px;

  background: rgba(72, 72, 72, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  backdrop-filter: blur(10px) saturate(110%);
  border: 1px solid rgba(60, 60, 60, 0.18);
  background-clip: padding-box;
  box-shadow: 0 8px 28px rgba(13, 75, 59, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 20px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    backdrop-filter: blur(8px) saturate(110%);
  }
}

.hero-content h1 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 42px); /* tamaño responsivo */
  color: #fff;
  line-height: 1.05;
  margin: 0 0 12px 0;
  text-shadow: 0 6px 18px rgba(0,0,0,0.4);
  word-break: keep-all;
  hyphens: none;
}


.hero-content p {
  width: 100%;
  max-width: 760px;
}

.hero-content h1 {
    font-size: clamp(24px, 3.6vw, 46px);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 20px;
    line-height: 1.6;
}

.hero-content .cta-button {
  margin-top: 15px;
  text-align: center;
  min-width: 200px;
  max-width: 300px;
}

.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #0a3d35; /* ← igual al color de los h2 */
  color: white;
  font-weight: 500;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}
.cta-button:hover {
  background-color: #062a24; /* un tono un poco más oscuro para hover */
  transform: translateY(-3px);
}

.cta-button:hover {
    background-color: #2e594e;
    transform: translateY(-3px);
}

/* === Intro “Vive Bellamente” === */
.intro-section {
    background-color: #f3f7f3;
    padding-top: 60px;
    padding-bottom: 100px;
    padding-left: 5%;
    padding-right: 5%;
    text-align: center;
}

.intro-section h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: #0a3d35;
}

.intro-section p {
    max-width: 900px;
    margin: 0 auto;
    color: #737373;
    line-height: 1.7;
    font-size: 1.03rem;
}

/* === Services Section === */
.services-section {
    background-color: #e7ede9;
    padding: 50px 5% 90px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -8px 28px rgba(66, 16, 49, 0.03);
    text-align: center;
}

.services-section h3 {
    font-size: 2rem;
    margin-bottom: 6px;
    text-align: center;
    color: #0a3d35; 
}

.services-section .services-sub {
    margin-bottom: 80px;
    color: #737373;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* FORZAR centrado de los 2 últimos banners en "Nuestros Servicios" */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  /* aseguro el comportamiento de alineación de items */
  justify-items: start;
}

/* Me aseguro que las tarjetas no ocupen un ancho forzado */
.services-grid .service-item {
  width: auto !important;
}

/* Centrar los dos últimos (4º y 5º) con mayor especificidad */
.services-grid > .service-item:nth-last-child(2),
.services-grid > .service-item:last-child {
  justify-self: center !important;   /* centra cada tarjeta horizontalmente */
  -webkit-justify-self: center !important;
  -moz-justify-self: center !important;
}




@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  .services-grid .service-item {
    width: 100%; /* en pantallas medianas o chicas vuelven a ocupar el ancho */
    justify-self: auto;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


.service-item {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--light-bg-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-item img {
  width: 25%;
  max-width: 140px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
  object-fit: contain;
  color: #0a3d35;
}



.service-item h4 {
  color: #0a3d35;
}

.service-item p {
  color: #737373;
}


/* === Footer === */
.footer {
    background-color: #fff; /* fondo blanco */
    color: #000; /* texto negro */
    padding: 40px 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.footer-brand .logo {
    color: rgb(0, 0, 0);
    margin-top: 15px;
}

.footer-links h4,
.footer-hours h4,
.footer-social h4,
.footer-contact h4 { /* 🔹 añadimos la columna contacto */
    color: rgb(0, 0, 0);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: rgb(0, 0, 0);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social a {
    color: rgb(0, 0, 0);
    font-size: 1.5em;
    margin-right: 15px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 1;
}

/* 🔹 Nueva columna contacto */
.footer-contact p {
    margin: 0 0 5px;
    color: #000;
    opacity: 0.8;
}

.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.015);
    padding-top: 20px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-links,
    .footer-hours,
    .footer-social,
    .footer-contact {
        width: 100%;
    }

    .footer-social a {
        margin: 0 10px;
    }
}


/* === Responsive === */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: calc(100% - 40px);
        margin: 40px auto;
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-links, .footer-hours, .footer-social {
        width: 100%;
    }

    .footer-social a {
        margin: 0 10px;
    }

    .intro-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
/* Logo como imagen en header y footer */
.header .logo img {
  height: 60px; /* ajusta la altura a tu gusto */
  width: auto;
  display: block;
}

.footer-brand .logo img {
  height: 40px; /* logo en el footer más pequeño */
  width: auto;
  display: block;
}








/* === Habitaciones (rooms-section) === */
.rooms-section {
  background-color: #f3f7f3;
  padding: 60px 5% 100px;
  text-align: center;
}

.rooms-section h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #0a3d35;
}

.rooms-section p {
  max-width: 900px;
  margin: 0 auto 40px;
  color: #737373;
  line-height: 1.7;
  font-size: 1.03rem;
}
/* Color de los h3 dentro de las tarjetas de habitaciones */
.rooms-section .room-card h3 {
  color: #0a3d35; /* el color que quieras */
}

/* Grid de tarjetas */
.room-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta individual */
.room-card {
  position: relative;
  padding: 30px 20px 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--light-bg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Imagen */
.room-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Imágenes de habitaciones: ancho completo, redondeadas arriba, rectas abajo */
.rooms-section .room-card img {
  width: 114%;                       /* ocupa todo el ancho */
  display: block;                    /* elimina espacio raro debajo */
  border-top-left-radius: 10px;      /* redondeo solo arriba izq */
  border-top-right-radius: 10px;     /* redondeo solo arriba der */
  border-bottom-left-radius: 0;      /* recto abajo izq */
  border-bottom-right-radius: 0;     /* recto abajo der */
  margin-bottom: 10px;                  /* quita margen debajo de la imagen */
}

.rooms-section .room-card {
  padding-top: 0;      /* quita padding arriba */
  overflow: hidden;    /* hace que la imagen quede integrada */
}

/* Etiqueta “Disponible” */
.room-card .tag {
  position: absolute;
  top: 15px;
  right: 15px;
  left: auto;
  background-color: #0a3d35; /* 🔹 igual al color de los h2 */
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
}


/* Precio */
.room-card .price {
  font-weight: bold;
  color: var(--accent-color);
  margin: 10px 0;
}

/* Lista de comodidades */
.room-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  width: 100%;
}
.room-card ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #737373;
}
.room-card ul li i {
  color: var(--accent-color);
  margin-right: 6px;
}

/* Botón alternativo */
.cta-button-alt {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ccc;
  color: #333;
  font-weight: 500;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}
.cta-button-alt:hover {
  background-color: #bbb;
  transform: translateY(-3px);
}
/* Quitar/reducir espacio entre el párrafo y la lista dentro de las tarjetas */
.rooms-section .room-card p {
  margin-bottom: 4px; /* o 0px para eliminarlo del todo */
}

/* Reduce el espacio entre h3 y p en las tarjetas de habitaciones */
.rooms-section .room-card h3 {
  margin-bottom: 10px; /* menos espacio debajo del título */
}

.rooms-section .room-card p {
  margin-top: 0;      /* quita espacio arriba del párrafo */
}
/* === Habitaciones: alinear contenido a la izquierda === */

/* Títulos de habitaciones a la izquierda y ocupando todo el ancho */
.rooms-section .room-card h3 {
  text-align: left;         /* fuerza título a la izquierda */
  width: 100%;              /* ocupa todo el ancho */
  margin-top: 0;            /* quita margen superior si lo hay */
  margin-bottom: 8px;       /* separación pequeña debajo */
  font-size: 1.6rem;        /* tamaño que prefieras */
  color: #0a3d35;           /* color que prefieras */
}


/* Responsive */
@media (max-width: 768px) {
  .rooms-section {
    padding: 40px 5% 60px;
  }
}

/* === Galería === */
.gallery-section {
  background-color: #f3f7f3; /* fondo igual que habitaciones */
  padding: 60px 5% 100px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #0a3d35;
}

.gallery-section p {
  max-width: 900px;
  margin: 0 auto 40px;
  color: #737373;
  line-height: 1.7;
  font-size: 1.03rem;
}

/* Grid de imágenes */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* espacio entre imágenes */
  max-width: 1200px;
  margin: 0 auto;
}

/* Imágenes individuales */
.gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 10px;       /* esquinas redondeadas */
  object-fit: cover;         /* recorta para que llenen el contenedor */
  aspect-ratio: 4 / 3;       /* relación de aspecto uniforme */
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-section {
    padding: 40px 5% 60px;
  }
}


/* === Contacto === */
.contact-section {
  background-color: #f3f7f3;
  padding: 60px 5% 100px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #0a3d35;
}

.contact-section p {
  max-width: 900px;
  margin: 0 auto 40px;
  color: #737373;
  line-height: 1.7;
  font-size: 1.03rem;
}

/* Tarjeta de contacto */
.contact-card {
  background-color: #fff;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cada ítem de contacto */
.contact-item {
  display: flex;
  align-items: center;
  background-color: #f1f5f1;
  padding: 15px 20px;
  border-radius: 10px;
  gap: 15px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Iconos de cada ítem de contacto */
.contact-item i {
  font-size: 1.5rem;
  color: #0a3d35; /* igual que los h2 */
}

.contact-item h4 {
  margin: 0 0 4px;
  font-weight: 600;
  color: #0a3d35;
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Botón enviar mensaje ocupando todo el ancho interior de la tarjeta */
/* Botón enviar mensaje */
.send-message-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 14px;
  background-color: #0a3d35; /* igual que los h2 */
  color: #fff;
  font-weight: 500;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.send-message-button:hover {
  background-color: #062a24; /* un poco más oscuro para el hover */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-card {
    padding: 20px;
  }
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* fondo oscuro de la pantalla */
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: zoomIn 0.3s ease;
}

/* Flechas y X */
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
  background: transparent; /* 🔹 sin fondo ni sombra */
  border-radius: 0;         /* 🔹 sin borde redondo */
}

.lightbox .close {
  top: 20px;
  right: 35px;
  transform: none; /* la X no necesita translateY */
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* En pantallas grandes (desktop) forzar una sola línea */
@media (min-width: 1200px) {
  .hero-content {
    max-width: 1100px;   /* más ancho para que quepa */
  }
  .hero-content h1 {
    white-space: nowrap; /* fuerza una sola línea */
    font-size: 42px;     /* ajusta este valor si aún no cabe */
  }
}

/* Ajuste para pantallas medianas */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero-content h1 {
    font-size: 36px;
  }
}

/* Ajuste para móviles pequeños */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 18px;
    line-height: 1.05;
  }
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #0a3d35; /* mismo color que h2 */
  margin-left: auto;
  transition: color 0.3s;
}
.copy-btn:hover {
  color: #062a24; /* tono más oscuro al pasar */
}
.send-message-button i {
  margin-right: 8px;
  font-size: 1.2rem;
}
/* === Video Section === */
.video-section {
  background-color: #f3f7f3;
  padding: 1px 5% 100px;
  text-align: center;
}

.video-container {
  position: relative;
  width: 80%;               /* 🔹 ocupa solo el 80% del ancho */
  max-width: 960px;         /* 🔹 tope máximo en escritorio */
  margin: 0 auto;           /* 🔹 centrado */
  aspect-ratio: 16 / 9;     /* 🔹 mantiene proporción 1920x1080 */
  overflow: hidden;
  border-radius: 12px;      /* 🔹 esquinas suaves */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* === NUEVO layout: banners más anchos y en una sola fila === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr)); /* 🔹 5 columnas amplias */
  gap: 40px; /* más espacio entre ellos */
  max-width: 1400px; /* 🔹 más ancho total del contenedor */
  margin: 0 auto;
  justify-items: center;
  align-items: stretch;
  padding: 0 40px; /* agrega aire lateral */
}

.services-grid .service-item {
  width: 100%;
  padding: 40px 30px; /* 🔹 más alto y espacioso */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--light-bg-color);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.services-grid .service-item img {
  width: 30%; /* 🔹 iconos un poco más grandes */
  max-width: 160px;
  height: auto;
  margin-bottom: 10px;
}

.services-grid .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 🔹 Responsivo */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(250px, 1fr)); /* 3 por fila */
    max-width: 1000px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr)); /* 2 por fila */
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 por fila */
  }
}
