/* HotelCerca — Estilos globales */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg:          #faf8f3;
  --ink:         #1c1c1c;
  --accent:      #b08d57;
  --muted:       #ece7dc;
  --border:      #dfd8c8;
  --text-muted:  #6b6457;
  --green-dark:  #1a3a2a;
  --green-mid:   #2d6a4f;
  --green-light: #52b788;
  --white:       #ffffff;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Tipografía ─────────────────────────────────────────────────────── */
.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media(min-width:640px){ .container { padding: 0 1.5rem; } }
@media(min-width:1024px){ .container { padding: 0 2rem; } }

.section { padding: 3rem 0; }
@media(min-width:768px){ .section { padding: 4rem 0; } }

/* ── Componentes ────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.4rem; border-radius: 999px; font-size: .875rem;
  font-weight: 600; transition: all .2s; cursor: pointer; border: none;
  white-space: nowrap; gap: .4rem;
}
.btn-dark  { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #333; }
.btn-gold  { background: var(--accent); color: #fff; }
.btn-gold:hover { background: #9a7a48; }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-green { background: var(--green-mid); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }

.input {
  width: 100%; padding: .65rem 1rem; border-radius: .75rem;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: .9rem; color: var(--ink); outline: none; transition: border-color .2s;
}
.input:focus { border-color: var(--accent); }

.badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.badge-gold   { background: #fdf3e3; color: #8c6520; border: 1px solid #f0d8a8; }
.badge-green  { background: #e8f5ee; color: var(--green-dark); border: 1px solid #b7dfc9; }
.badge-gray   { background: #f2f2f0; color: #555; border: 1px solid #ddd; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media(max-width:640px){ .nav-links { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero-card {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: 1.5rem;
  border: 1px solid var(--border); padding: 3rem 2rem;
  box-shadow: var(--shadow);
}
@media(min-width:640px){ .hero-card { padding: 4rem 3rem; } }

.hero-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}

.hero-search {
  display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem;
  max-width: 600px;
}
@media(min-width:600px){ .hero-search { flex-direction: row; } }
.hero-search .input { flex: 1; }

/* ── Cards de hotel ──────────────────────────────────────────────────── */
.hotel-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.hotel-card { display: flex; flex-direction: column; }

.hotel-card__img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--muted);
}
.hotel-card__img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #e8f5ee 0%, #d4edda 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

.hotel-card__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.hotel-card__rating {
  display: flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600; color: var(--accent);
}
.hotel-card__rating svg { width: 14px; height: 14px; fill: var(--accent); }

.hotel-card__name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.hotel-card__meta { font-size: .82rem; color: var(--text-muted); }
.hotel-card__desc { font-size: .85rem; color: #555; line-height: 1.5; flex: 1; }

/* Comparador de precios */
.price-compare {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid var(--muted);
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.price-btn {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: .4rem .75rem; border-radius: .6rem; font-size: .75rem;
  font-weight: 600; transition: all .2s; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--ink); cursor: pointer; min-width: 80px;
}
.price-btn:hover { border-color: var(--accent); background: #fff8f0; color: var(--accent); }
.price-btn .platform { font-size: .65rem; opacity: .7; font-weight: 400; }

/* ── Cards de destino ────────────────────────────────────────────────── */
.destination-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.destination-card {
  padding: 1.25rem;
  transition: border-color .2s;
}
.destination-card:hover { border-color: var(--accent); }
.destination-card__city { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.destination-card__name { margin-top: .4rem; font-size: 1rem; font-weight: 700; }

/* ── Sección de lugar (destino) ───────────────────────────────────────── */
.place-hero {
  background: var(--green-dark); color: #fff;
  border-radius: 1.25rem; padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
}
.place-hero h1 { color: #fff; }
.place-hero p  { color: rgba(255,255,255,.8); margin-top: .75rem; max-width: 600px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark); color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer a:hover { color: var(--green-light); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; text-align: center; color: rgba(255,255,255,.45);
}

/* ── Tropical leaf SVG decoration ────────────────────────────────────── */
.leaf-deco { position: absolute; pointer-events: none; user-select: none; }

/* ── Divider hojas ───────────────────────────────────────────────────── */
.leaf-divider { overflow: hidden; height: 80px; opacity: .15; }

/* ── Filtros ─────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  padding: 1rem 1.25rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 1rem;
  margin-bottom: 1.5rem;
}
.filter-bar select {
  padding: .4rem .85rem; border: 1.5px solid var(--border);
  border-radius: .6rem; font-size: .85rem; background: var(--bg);
  color: var(--ink); cursor: pointer; outline: none;
}
.filter-bar select:focus { border-color: var(--accent); }

/* ── Utilitarios ─────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green-mid); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media(max-width:900px){ .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px){ .grid-3,.grid-4 { grid-template-columns: 1fr; } }

.featured-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .25rem .6rem;
  border-radius: 999px; letter-spacing: .04em;
}

.stars { color: var(--accent); }

/* ── Formulario de registro ──────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: 600; }
textarea.input { min-height: 120px; resize: vertical; }

/* ── Paginación ──────────────────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  padding: .4rem .9rem; border-radius: .5rem; font-size: .875rem;
  border: 1.5px solid var(--border); transition: all .2s;
}
.pagination a:hover  { border-color: var(--accent); color: var(--accent); }
.pagination .active  { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  border-radius: 1.5rem; padding: 3rem 2rem; color: #fff; text-align: center;
}
.cta-box h2 { color: #fff; }
.cta-box p  { color: rgba(255,255,255,.8); margin: .75rem auto 0; max-width: 500px; }
