/* ============================
   RESET
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  color: #0f172a;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}


/* ============================
   VARIABLES
============================ */
:root {
  --accent: #0b7285;
  --accent-hover: #095a6d;
  --muted: #6b7280;
  --radius: 12px;

  --header-footer-bg: #0b7285;
  --header-footer-color: #fff;

  --header-h: 210px;
}


/* ============================
   HEADER
============================ */
.site-header {
  background: var(--header-footer-bg);
  color: var(--header-footer-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.site-header .logo img {
  max-height: 180px;
  width: auto;
}


/* ============================
   MENÚ PRINCIPAL
============================ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
  flex-wrap: nowrap;
}

.menu li a {
  color: #fff;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-block;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.6rem;
}


/* ============================
   BOTÓN RESERVAR
============================ */
.menu-book {
  margin-left: 16px;
}

.btn-book {
  background: #f59e0b;
  color: #fff;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn-book:hover {
  background: #d48806;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.btn-book:active {
  transform: translateY(0);
}


/* ============================
   HERO
============================ */
.hero {
  min-height: 70vh;
  background: url('assets/BG1.webp') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--header-h);
  scroll-margin-top: var(--header-h);
}

.hero-content h1 {
  font-size: 2.8rem;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 6px 24px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.6rem;
}

.hero-content p {
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  margin-bottom: 1.2rem;
}

.hero-content .btn-book {
  font-size: 1rem;
  padding: 10px 18px;
}


/* ============================
   SECCIONES
============================ */
.section {
  padding: 56px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  scroll-margin-top: var(--header-h);
}

.section h2 {
  width: 100%;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.section-text {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: left;
  flex: 1 1 45%;
}

.section-img {
  flex: 1 1 45%;
  max-width: 100%;
}

.section-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}

.section-img img:hover {
  transform: scale(1.03);
}


/* ============================
   BLOQUES IZQUIERDA / DERECHA
============================ */
.block-left .section-img {
  order: 1;
}

.block-left .section-text {
  order: 2;
  margin-left: 24px;
}

.block-right .section-img {
  order: 2;
}

.block-right .section-text {
  order: 1;
  margin-right: 24px;
}


/* ============================
   NUESTRAS CABAÑAS
============================ */
.cabanas-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin-top: 12px;
  width: 100%;
}

.cabaña {
  text-align: center;
}

.cabaña h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #0b7285;
}

.cabaña img {
  border-radius: 12px;
  width: 100%;
  height: 280px;
  object-fit: cover;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cabaña img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}


/* ============================
   DESCRIPCIÓN DE CABAÑAS
============================ */
.cabana-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
  padding: 0 4px;
}


/* ============================
   TÍTULOS CLICKEABLES
============================ */
.galeria-titulo,
.cabana-titulo {
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.galeria-titulo:hover,
.cabana-titulo:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ============================
   GALERÍA GENERAL
============================ */
.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;
}

.gallery a {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}


/* ============================
   SERVICIOS
============================ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 10px;
  width: 100%;
}

.service-desc-long,
.service-lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 800px;
  text-align: center;
  margin: 12px auto;
}

.servicio {
  flex: 0 1 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.servicio img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.servicio h4 {
  font-size: 1rem;
  margin: 0;
  color: #0b7285;
}

.servicio-desc {
  font-size: 0.95rem;
  color: #334155;
}

.servicio:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}


/* ============================
   FORMULARIO DE CONTACTO
============================ */
form {
  max-width: 520px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 114, 133, 0.12);
}


/* ============================
   BOTÓN ENVIAR MENSAJE
============================ */
button[type="submit"] {
  background: var(--accent);
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

button[type="submit"]:hover {
  background: #064f5e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 7px 18px rgba(6, 79, 94, 0.38),
    0 0 0 2px rgba(255, 255, 255, 0.18);
}

button[type="submit"]:active {
  background: #043e4a;
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(6, 79, 94, 0.28);
}


/* ============================
   MAPA
============================ */
.map-container {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}


/* ============================
   FOOTER
============================ */
footer {
  background: var(--header-footer-bg);
  color: var(--header-footer-color);
  padding: 30px 16px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-contact {
  flex: 1 1 50%;
  min-width: 280px;
}

.footer-contact .footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.footer-contact p,
.footer-contact a {
  color: #f3f4f6;
  margin: 5px 0;
  font-size: 0.95rem;
}

.footer-contact a {
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ============================
   REDES SOCIALES
============================ */
.footer-social {
  flex: 0 1 300px;
  text-align: right;
}

.footer-social p {
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 0;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-social a:hover {
  color: #d9f3f7;
  transform: translateX(-2px);
}

.footer-social a img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex: 0 0 21px;
}

.footer-social a span {
  white-space: nowrap;
}


/* ============================
   WIDGET WHATSAPP
============================ */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.whatsapp-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-widget img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}


/* ============================
   RESPONSIVE - TABLET
============================ */
@media (max-width: 1024px) {

  .section {
    padding: 40px 18px;
  }

  .cabaña img {
    height: 220px;
  }

  .menu {
    gap: 4px;
  }

  .menu li a {
    padding: 7px 8px;
  }

  .menu-book {
    margin-left: 8px;
  }
}


/* ============================
   RESPONSIVE - MOBILE
============================ */
@media (max-width: 768px) {

  :root {
    --header-h: 92px;
  }

  .site-header .logo img {
    max-height: 64px;
  }

  .header-inner {
    padding: 10px 14px;
    position: relative;
    justify-content: center;
  }

  .site-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .main-nav {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .menu {
    display: none;
    position: absolute;
    top: 84px;
    right: 14px;
    left: 14px;
    background: rgba(7, 21, 33, 0.97);
    padding: 12px;
    border-radius: 10px;
    flex-direction: column;
    align-items: stretch;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  }

  .menu.show {
    display: flex;
  }

  .menu li a {
    display: block;
    text-align: center;
    padding: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-book {
    margin-left: 0;
  }

  .btn-book {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: var(--header-h);
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section {
    padding: 28px 14px;
    flex-direction: column;
  }

  .section h2 {
    font-size: 1.75rem;
    margin-bottom: 18px;
  }

  .section-img,
  .section-text {
    flex: 0 1 100%;
    margin: 0;
    text-align: center;
  }

  .section-img img {
    height: 280px;
  }

  .block-left .section-img,
  .block-left .section-text,
  .block-right .section-img,
  .block-right .section-text {
    order: initial;
    margin: 0;
  }

  .cabanas-gallery {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cabaña {
    width: 100%;
  }

  .cabaña img {
    height: 260px;
  }

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 5px;
  }

  .servicio {
    flex: 0 1 48%;
  }

  .service-desc-long,
  .service-lead {
    max-width: 100%;
  }


  /* FOOTER MOBILE */
.footer-top {
  flex-direction: column;
  gap: 22px;
}

.footer-contact {
  min-width: 100%;
}

.footer-social {
  flex: 1 1 100%;
  width: 100%;
  text-align: center;
}

.footer-social-links {
  align-items: center;
}

.footer-social a {
  justify-content: center;
}

.footer-bottom {
  margin-top: 20px;
}


/* ============================
   MOBILE PEQUEÑO
============================ */
@media (max-width: 480px) {

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .btn-book {
    font-size: 0.95rem;
    padding: 9px 16px;
  }

  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .section-img img {
    height: 240px;
  }

  .servicios-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .servicio {
    padding: 12px 8px;
  }

  .servicio-desc {
    font-size: 0.9rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .footer-social a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.footer-social a:first-child img,
.footer-social a:last-child img {
  width: 22px;
  height: 22px;
}

  .whatsapp-widget {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
}