/* =====================================================================
   HOTELES DEL MUNDO · Estilos compartidos de las landings (boutique)
   Basado en el prototipo Villa Atta. Lo usan TODAS las landings.
   ===================================================================== */
:root {
  --cream: #f4eee2;
  --cream2: #ece3d2;
  --card: #fffdf8;
  --ink: #23201b;
  --muted: #5c5347;
  --muted2: #6e655a;
  --teal: #1d4b46;
  --teal-soft: #9ec3b8;
  --teal-text: #d9e6e0;
  --accent: #bd5b38;
  --line: rgba(35, 32, 27, 0.10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Mulish", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
img { display: block; }
section[id] { scroll-margin-top: 128px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.05; margin: 0; color: var(--ink); }

/* ===== Barra "Volver a Costa de la Luz" ===== */
.back-bar {
  position: sticky; top: 0; z-index: 60;
  background: #16456f; color: #fff;
  font-size: 13px; font-weight: 600;
}
.back-bar__inner {
  max-width: 1180px; margin: 0 auto; padding: 8px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.back-bar a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: #fff; transition: opacity .2s ease; }
.back-bar a:hover { opacity: .8; }
.back-bar__brand { color: #cfe0f0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.back-bar__brand strong { color: #e0a44b; }

/* ===== Header ===== */
.header { position: sticky; top: 33px; z-index: 50; background: rgba(244, 238, 226, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-container { max-width: 1180px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-link { text-decoration: none; line-height: 1; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 25px; color: var(--teal); }
.logo-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: #9a8e78; margin-top: 2px; }

.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; color: #3a352d; }
.nav-menu a { text-decoration: none; position: relative; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--teal); transition: width 0.35s ease; }
.nav-menu a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.language-selector select { border: 1px solid rgba(35, 32, 27, 0.18); background: var(--card); padding: 8px 10px; border-radius: 3px; font-family: var(--sans); font-size: 13px; color: #3a352d; cursor: pointer; }
.reserve-btn { text-decoration: none; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.reserve-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal); display: block; transition: 0.3s; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 8px 28px 18px; flex-direction: column; gap: 14px; font-size: 15px; font-weight: 600; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; }
.mobile-menu a.book { color: var(--accent); }

/* ===== Hero ===== */
.hero { position: relative; height: 86vh; min-height: 560px; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,46,44,0.30) 0%, rgba(16,38,36,0.20) 40%, rgba(16,38,36,0.72) 100%); }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; height: 100%; padding: 0 28px 64px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: #e9dcc2; margin-bottom: 18px; }
.display { font-family: var(--serif); font-weight: 600; font-size: 78px; line-height: 1.0; color: #fff; margin: 0 0 18px; max-width: 760px; }
.hero-sub { font-size: 19px; line-height: 1.5; color: #f2ead9; margin: 0 0 28px; max-width: 530px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { background: rgba(255,255,255,0.14); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.28); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary { text-decoration: none; display: inline-block; background: var(--accent); color: #fff; padding: 16px 30px; border-radius: 3px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 12px 30px rgba(0,0,0,0.25); transition: transform 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.intro { max-width: 980px; margin: 0 auto; padding: 88px 28px 64px; }
.lead { font-family: var(--serif); font-size: 33px; line-height: 1.32; color: var(--ink); margin: 0 0 30px; font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.two-col p { margin: 0; }
.two-col strong, .lead strong { color: var(--ink); }

.why { background: var(--teal); color: var(--teal-text); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 84px 28px; max-width: 1180px; margin: 0 auto; }
.why .eyebrow { color: var(--teal-soft); }
.why h2 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.08; margin: 0 0 24px; color: #fff; }
.why p { font-size: 16px; line-height: 1.8; color: var(--teal-text); margin: 0 0 18px; }
.why p strong { color: #fff; }
.stats { display: flex; flex-direction: column; gap: 22px; }
.stat { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 18px; }
.stat-num { font-family: var(--serif); font-size: 52px; font-weight: 600; color: #fff; line-height: 1; }
.stat-label { font-size: 14px; color: var(--teal-soft); margin-top: 6px; }

/* Gallery — 6 fotos en cuadrícula limpia (sin huecos) */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.link-underline { text-decoration: none; color: var(--teal); font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--teal); padding-bottom: 3px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 4px; background: #cdbf9f; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }

.rooms-section { background: var(--cream2); }
.center-head { text-align: center; margin-bottom: 46px; }
.center-head .eyebrow { margin-bottom: 14px; }
.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.room-card { background: var(--card); border: 1px solid rgba(35,32,27,0.08); border-radius: 5px; padding: 26px 28px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.room-name { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.room-detail { font-size: 14px; color: var(--muted2); line-height: 1.6; }
.cap { flex-shrink: 0; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.rooms-note { max-width: 820px; margin: 38px auto 0; text-align: center; font-size: 15px; line-height: 1.8; color: var(--muted2); }
.rooms-note strong { color: var(--ink); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-col h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--teal); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(35,32,27,0.14); }
.service-col ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 2.1; color: var(--muted); }

.editorial { background: var(--cream2); }
.editorial-inner { max-width: 980px; margin: 0 auto; padding: 84px 28px; }

.loc-sub { font-size: 16px; color: var(--muted2); margin: 0; }
.map-wrap { border-radius: 6px; overflow: hidden; box-shadow: 0 18px 44px rgba(35,32,27,0.14); margin: 36px 0; }
.map-wrap iframe { border: 0; width: 100%; display: block; }
.loc-cols h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--teal); margin: 0 0 14px; }

.search { background: var(--cream2); }
.search-inner { max-width: 1000px; margin: 0 auto; padding: 80px 28px; text-align: center; }
.search h2 { margin-bottom: 10px; }
.widget-subtitle { color: var(--muted2); font-size: 16px; margin: 0 auto 32px; max-width: 620px; }
.widget-box { min-height: 60px; }

.final-cta { background: var(--teal); }
.final-cta-inner { max-width: 760px; margin: 0 auto; padding: 90px 28px; text-align: center; }
.final-cta h2 { font-family: var(--serif); font-weight: 600; font-size: 48px; color: #fff; margin: 0 0 18px; line-height: 1.1; }
.final-cta p { font-size: 17px; color: var(--teal-text); margin: 0 0 34px; line-height: 1.6; }

.footer { background: var(--ink); color: #b3aa99; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 46px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo { color: #f2ead9; font-size: 22px; }
.footer .logo-sub { color: #7d7464; }
.footer-back { margin-top: 10px; }
.footer-back a { color: #8c8474; text-decoration: none; font-size: 13px; font-weight: 600; border-bottom: 1px solid #514b40; padding-bottom: 2px; transition: color .2s ease; }
.footer-back a:hover { color: #e0a44b; }
.disclaimer { margin: 0; max-width: 520px; font-size: 13px; line-height: 1.7; color: #8c8474; }
.disclaimer strong { color: #b3aa99; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== TIPO B (6 hoteles alternativos) ===== */
.b-amenities { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.b-amenity { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.b-amenity .icon { font-size: 16px; }

.alts { background: var(--cream2); }
.alts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.alt-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.alt-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(35,32,27,.16); }
.alt-img { position: relative; height: 210px; overflow: hidden; background: #cdbf9f; }
.alt-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.alt-card:hover .alt-img img { transform: scale(1.06); }
.alt-rank { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 16px; }
.alt-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.alt-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 8px; line-height: 1.2; }
.alt-badges { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--teal-text); padding: 5px 10px; border-radius: 3px; margin-bottom: 12px; align-self: flex-start; }
.alt-desc { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; flex: 1; }
.alt-btn { text-decoration: none; text-align: center; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 3px; font-size: 14px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.alt-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }

.seo-section { padding: 64px 0; }
.seo-section:nth-of-type(even) { background: var(--cream2); }
.seo-inner { max-width: 880px; margin: 0 auto; }
.seo-inner h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin: 0 0 22px; }
.seo-inner p { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 0 0 18px; }
.seo-inner p strong { color: var(--ink); }

.b-location { padding: 72px 0; }
.b-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.b-location-img { border-radius: 6px; overflow: hidden; box-shadow: 0 18px 44px rgba(35,32,27,.14); }
.b-location-img img { width: 100%; height: 360px; object-fit: cover; }
.b-location-text p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0 0 22px; }

@media (max-width: 860px) {
  .b-location-grid { grid-template-columns: 1fr; }
}

/* Banner de cookies */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1500; background: var(--ink); color: #e7ddcb; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 16px 24px; box-shadow: 0 -6px 24px rgba(0,0,0,.2); flex-wrap: wrap; transform: translateY(100%); transition: transform .4s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner[hidden] { display: flex; }
.cookie-banner__text { margin: 0; font-size: 14px; max-width: 720px; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-btn { padding: 9px 20px; border-radius: 3px; font-family: var(--sans); font-weight: 700; font-size: 13px; cursor: pointer; border: none; }
.cookie-btn--accept { background: var(--accent); color: #fff; }
.cookie-btn--reject { background: transparent; color: #cfc6b6; border: 1px solid rgba(255,255,255,.3); }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; gap: 12px; text-align: center; } .cookie-btn { flex: 1; } .cookie-banner__actions { width: 100%; } }

@media (max-width: 860px) {
  .back-bar__brand { display: none; }
  .header { top: 37px; }
  .nav-menu, .header .reserve-btn { display: none; }
  .nav-toggle { display: flex; }
  .display { font-size: 48px; }
  .h2, .why h2, .final-cta h2 { font-size: 34px; }
  .lead { font-size: 26px; }
  .two-col, .why-grid, .loc-cols-grid { grid-template-columns: 1fr !important; }
  .why-grid { gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item.big { grid-column: span 2; grid-row: auto; }
  .rooms-grid, .services-grid { grid-template-columns: 1fr; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}
@media (max-width: 480px) {
  .container, .intro, .nav-container { padding-left: 18px; padding-right: 18px; }
  .display { font-size: 40px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.big { grid-column: auto; }
  .btn-primary { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .gallery-item img { transition: none; }
}
