/* ==========================================================
   Akun Hotel — estilos
   Paleta costera: azul océano, arena y un acento terracota
   ========================================================== */

:root {
  --oceano: #17394d;
  --oceano-osc: #0f2836;
  --mar: #2f6f8a;
  --arena: #f6f1e9;
  --arena-osc: #ebe2d3;
  --acento: #c27a4a;
  --acento-osc: #a5623a;
  --texto: #2a2f33;
  --texto-suave: #5e676d;
  --blanco: #ffffff;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(15, 40, 54, 0.12);
  --fuente-titulos: "Cormorant Garamond", Georgia, serif;
  --fuente-texto: "Jost", "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente-texto);
  color: var(--texto);
  background: var(--blanco);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, .titulo {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  color: var(--oceano);
  line-height: 1.15;
}

a { color: var(--mar); }
a:hover { color: var(--acento); }

img { max-width: 100%; }

.text-suave { color: var(--texto-suave); }
.bg-arena { background: var(--arena); }
.bg-oceano { background: var(--oceano); color: #dfe8ec; }
.bg-oceano h2, .bg-oceano h3 { color: var(--blanco); }

.seccion { padding: 5.5rem 0; }
@media (max-width: 767.98px) { .seccion { padding: 3.75rem 0; } }

.antetitulo {
  display: inline-block;
  font-family: var(--fuente-texto);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--acento);
  margin-bottom: .75rem;
}

.titulo-seccion {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.linea {
  width: 56px; height: 2px;
  background: var(--acento);
  margin: 0 0 1.5rem;
}
.text-center .linea { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  border-radius: 999px;
  padding: .75rem 1.6rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.btn-acento { background: var(--acento); border-color: var(--acento); color: #fff; }
.btn-acento:hover, .btn-acento:focus { background: var(--acento-osc); border-color: var(--acento-osc); color: #fff; }
.btn-oceano { background: var(--oceano); border-color: var(--oceano); color: #fff; }
.btn-oceano:hover, .btn-oceano:focus { background: var(--oceano-osc); border-color: var(--oceano-osc); color: #fff; }
.btn-borde-blanco { border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.btn-borde-blanco:hover { background: #fff; color: var(--oceano); }

/* ---------- Barra superior ---------- */
.barra-top {
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #c9d6dc;
  font-size: .85rem;
  padding: .4rem 0;
}
.barra-top a { color: #e6eef1; text-decoration: none; }
.barra-top a:hover { color: var(--acento); }
.barra-top i { color: var(--acento); margin-right: .35rem; }

/* ---------- Navegación ---------- */
.navbar {
  background: #000;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
  padding: .5rem 0;
}
.navbar-brand img { height: 96px; width: auto; }
@media (max-width: 991.98px) { .navbar-brand img { height: 72px; } }
.navbar-toggler i { color: #fff !important; }
.navbar .nav-link {
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  padding: .5rem .9rem !important;
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute; left: .9rem; right: .9rem; bottom: .2rem;
  height: 2px; background: var(--acento);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: #fff; }
.navbar .nav-link.active { color: var(--acento); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .navbar .nav-link::after { display: none; }
  .navbar-collapse { padding: .75rem 0 1rem; }
  .navbar .btn { width: 100%; margin-top: .5rem; }
}

/* ---------- Portada (hero) ---------- */
.hero { position: relative; }
.hero .carousel-item { height: min(88vh, 760px); min-height: 480px; }
.hero .carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,40,54,.25) 0%, rgba(15,40,54,.35) 45%, rgba(15,40,54,.75) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-texto {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 9vh, 6rem);
  color: #fff;
  pointer-events: none;
}
.hero-texto .container { pointer-events: auto; }
.hero-texto h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
  margin-bottom: .5rem;
}
.hero-texto p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; color: #eef3f5; }
.hero-texto .antetitulo { color: #f1c7a8; }
.hero .carousel-indicators { z-index: 3; margin-bottom: 1.25rem; }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 3; width: 7%; }

/* ---------- Cabecera de páginas internas ---------- */
.cabecera {
  position: relative;
  min-height: 340px;
  display: flex; align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4.5rem 0 3rem;
}
.cabecera::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,40,54,.3), rgba(15,40,54,.78));
}
.cabecera .container { position: relative; }
.cabecera h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 500; margin: 0; }
.cabecera .antetitulo { color: #f1c7a8; }
.cabecera .migas { font-size: .9rem; color: #d7e2e7; margin-top: .5rem; }
.cabecera .migas a { color: #fff; text-decoration: none; }

/* ---------- Bloques de imagen ---------- */
.foto-redonda {
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  width: 100%;
  object-fit: cover;
}
.foto-doble { position: relative; padding: 0 0 3rem 3rem; }
.foto-doble .principal { aspect-ratio: 4/3; }
.foto-doble .secundaria {
  position: absolute; left: 0; bottom: 0;
  width: 46%; aspect-ratio: 1;
  border: 6px solid #fff;
}
@media (max-width: 575.98px) { .foto-doble { padding: 0 0 2rem 1.5rem; } }

/* ---------- Datos destacados ---------- */
.dato {
  text-align: center;
  padding: 1.5rem 1rem;
}
.dato .numero {
  font-family: var(--fuente-titulos);
  font-size: 2.6rem; color: var(--blanco);
  line-height: 1;
}
.dato .etiqueta { font-size: .92rem; color: #c9d6dc; margin-top: .4rem; }

/* ---------- Servicios ---------- */
.servicio {
  background: #fff;
  border-radius: var(--radio);
  padding: 1.75rem 1.25rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15,40,54,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.servicio:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.servicio i {
  font-size: 1.9rem;
  color: var(--acento);
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--arena);
  margin-bottom: .9rem;
}
.servicio h3 { font-family: var(--fuente-texto); font-size: 1rem; font-weight: 500; color: var(--texto); margin: 0; }
.servicio small { display: block; color: var(--texto-suave); margin-top: .25rem; }

/* ---------- Tarjetas de habitaciones ---------- */
.tarjeta-hab {
  border: none;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,40,54,.07);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
}
.tarjeta-hab:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.tarjeta-hab .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.tarjeta-hab .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tarjeta-hab:hover .img-wrap img { transform: scale(1.05); }
.tarjeta-hab .card-body { padding: 1.5rem; }
.tarjeta-hab h3 { font-size: 1.65rem; margin-bottom: .5rem; }
.tarjeta-hab ul { padding-left: 0; list-style: none; margin: .75rem 0 0; }
.tarjeta-hab li { font-size: .95rem; color: var(--texto-suave); padding: .15rem 0; }
.tarjeta-hab li i { color: var(--acento); margin-right: .45rem; }
.etiqueta-destacada {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--acento); color: #fff;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}

/* ---------- Galerías ---------- */
.galeria { --gap: .75rem; }
.galeria .item {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  background: var(--arena-osc);
}
.galeria .item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.galeria .item:hover img { transform: scale(1.06); filter: brightness(.88); }
.galeria .item::after {
  content: "\F52A"; /* bi-zoom-in */
  font-family: "bootstrap-icons";
  position: absolute; right: .6rem; bottom: .5rem;
  color: #fff; font-size: 1.2rem;
  opacity: 0; transition: opacity .3s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.galeria .item:hover::after { opacity: 1; }

.filtros .btn {
  padding: .45rem 1.2rem;
  font-size: .9rem;
  border: 1.5px solid var(--arena-osc);
  color: var(--oceano);
  background: #fff;
  margin: .25rem;
}
.filtros .btn.activo { background: var(--oceano); border-color: var(--oceano); color: #fff; }

/* Visor de fotos (lightbox) */
#visor .modal-content { background: transparent; border: none; }
#visor .modal-body { padding: 0; position: relative; text-align: center; }
#visor img {
  max-height: 86vh;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
#visor .visor-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.4rem; color: var(--oceano);
  display: flex; align-items: center; justify-content: center;
}
#visor .visor-prev { left: .5rem; }
#visor .visor-next { right: .5rem; }
#visor .visor-cerrar {
  position: fixed; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  width: 42px; height: 42px; font-size: 1.3rem; color: var(--oceano);
  z-index: 1060;
}
#visor .visor-contador { color: #e6eef1; font-size: .9rem; margin-top: .6rem; }
.modal-backdrop.show { opacity: .88; }

/* ---------- Ubicación / contacto ---------- */
.mapa {
  border: 0;
  width: 100%;
  min-height: 380px;
  height: 100%;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.dato-contacto {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--arena-osc);
}
.dato-contacto:last-child { border-bottom: none; }
.dato-contacto i {
  flex: 0 0 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--arena); color: var(--acento); font-size: 1.2rem;
}
.dato-contacto .rotulo { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--texto-suave); }
.dato-contacto a, .dato-contacto span.valor { color: var(--texto); text-decoration: none; font-weight: 500; }
.dato-contacto a:hover { color: var(--acento); }

.caja-form {
  background: #fff;
  border-radius: var(--radio);
  padding: 2rem;
  box-shadow: var(--sombra);
}
@media (max-width: 575.98px) { .caja-form { padding: 1.4rem; } }
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--arena-osc);
  padding: .7rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mar);
  box-shadow: 0 0 0 .2rem rgba(47,111,138,.15);
}
.form-label { font-size: .9rem; font-weight: 500; color: var(--oceano); }

.distancia {
  background: #fff;
  border-radius: var(--radio);
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 4px 16px rgba(15,40,54,.06);
}
.distancia i { font-size: 1.6rem; color: var(--acento); }
.distancia h3 { font-family: var(--fuente-texto); font-size: 1.05rem; font-weight: 500; margin: .6rem 0 .25rem; color: var(--texto); }
.distancia p { margin: 0; color: var(--texto-suave); font-size: .95rem; }

/* ---------- Llamado a la acción ---------- */
.cta {
  position: relative;
  background-size: cover; background-position: center;
  color: #fff;
  padding: 6rem 0;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(15,40,54,.72); }
.cta .container { position: relative; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 500; }
.cta p { color: #e1eaee; }

/* ---------- Pie ---------- */
footer {
  background: var(--oceano-osc);
  color: #b8c7ce;
  padding: 4rem 0 1.5rem;
  font-size: .95rem;
}
footer h4 {
  font-family: var(--fuente-texto);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .18em;
  color: #fff; margin-bottom: 1rem; font-weight: 500;
}
footer a { color: #dbe5e9; text-decoration: none; }
footer a:hover { color: var(--acento); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: .2rem 0; }
footer .logo-pie { height: 70px; border-radius: 6px; margin-bottom: 1rem; }
footer .legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.25rem;
  font-size: .85rem; color: #8ea2ab;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wsp-flotante {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 1030;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  text-decoration: none;
  transition: transform .2s ease;
}
.wsp-flotante:hover { color: #fff; transform: scale(1.08); }

/* ---------- Animación de aparición ---------- */
.aparecer { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.aparecer.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aparecer { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
