/* ===========================================================
   HOSTAL CRÁMER — "Casa de familia"
   Paleta: terracota cálido + crema + verde oliva apagado
   Tipografía: Fraunces (display) + Karla (texto)
   =========================================================== */

:root {
  --terracota: #b85c38;
  --terracota-dark: #8f4327;
  --crema: #f6efe3;
  --crema-2: #efe4d1;
  --marron: #3d2b22;
  --marron-soft: #5c4636;
  --oliva: #6b7048;
  --oliva-dark: #4f5535;
  --blanco: #fffaf2;

  --font-display: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;

  --radius: 4px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--marron);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.9rem;
}
.section-eyebrow.center { text-align: center; }
.section-eyebrow.light { color: #d9a98c; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; color: var(--marron); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.light { color: var(--blanco); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--terracota); color: var(--blanco); }
.btn-primary:hover { background: var(--terracota-dark); transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: rgba(0,0,0,0.05); transform: translateY(-2px); }

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 239, 227, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 1.6rem 0;
}
.topbar.scrolled {
  background: rgba(246, 239, 227, 0.96);
  box-shadow: 0 2px 20px rgba(61,43,34,0.08);
  padding: 0.9rem 0;
  backdrop-filter: blur(6px);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--terracota);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--terracota);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--marron);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--marron-soft);
  position: relative;
  padding: 0.3rem 0;
  text-shadow: 0 1px 12px rgba(246,239,227,0);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.topbar:not(.scrolled) .nav a:not(.nav-cta) {
  color: var(--blanco);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.topbar:not(.scrolled) .brand-name {
  color: var(--blanco);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.topbar:not(.scrolled) .brand-mark {
  border-color: var(--blanco);
  color: var(--blanco);
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--terracota);
  transition: width 0.25s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--terracota);
  color: var(--blanco) !important;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta:hover { background: var(--terracota-dark); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.burger span { width: 24px; height: 2px; background: var(--marron); transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.62);
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,43,34,0.55) 0%, rgba(61,43,34,0.35) 45%, rgba(61,43,34,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  color: var(--blanco);
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0d9c4;
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--blanco);
  max-width: 700px;
  margin-bottom: 1.6rem;
}
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 540px;
  color: #f1e6d8;
  margin-bottom: 2.3rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--blanco); }

.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: #f1e6d8;
}
.hero-scroll span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 36px; background: rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--blanco);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* ===== INTRO / NOSOTROS ===== */
.intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}
.intro h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.6rem; }
.intro-text { font-size: 1.08rem; line-height: 1.75; color: var(--marron-soft); max-width: 560px; }
.intro-stats { display: flex; flex-direction: column; gap: 2.2rem; padding-top: 0.5rem; border-left: 1.5px solid var(--terracota); padding-left: 2.2rem; }
.stat-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--terracota); display: block; line-height: 1; }
.stat-label { font-size: 0.92rem; color: var(--marron-soft); margin-top: 0.4rem; display: block; max-width: 220px; }

/* ===== DAY / VIDA ===== */
.day { background: var(--crema-2); padding: 6.5rem 1.5rem; }
.day h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.day-sub { max-width: 560px; font-size: 1.05rem; line-height: 1.65; color: var(--marron-soft); margin-bottom: 3.5rem; }

.day-gallery {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.day-card { position: relative; overflow: hidden; border-radius: var(--radius); grid-column: span 1; grid-row: span 1; }
.day-card.big { grid-column: span 2; grid-row: span 2; }
.day-card.wide { grid-column: span 2; }
.day-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.day-card:hover img { transform: scale(1.07); }
.day-card figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(61,43,34,0.85));
  color: var(--blanco);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== ROOMS ===== */
.rooms { max-width: var(--container); margin: 0 auto; padding: 7rem 1.5rem; }
.rooms-head { max-width: 640px; margin-bottom: 3.5rem; }
.rooms-head h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1.3rem; }
.rooms-text { font-size: 1.05rem; line-height: 1.7; color: var(--marron-soft); }

.rooms-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 200px 200px;
  gap: 0.9rem;
  margin-bottom: 4rem;
}
.mosaic-item { overflow: hidden; border-radius: var(--radius); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.m1 { grid-column: span 3; grid-row: span 2; }
.m2 { grid-column: span 3; }
.m3 { grid-column: span 1; }
.m4 { grid-column: span 2; }
.m5 { grid-column: span 2; }
.m6 { grid-column: span 1; }

.rooms-amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 2.5rem;
}
.amenity { display: flex; align-items: center; gap: 1rem; }
.amenity-ico {
  width: 46px; height: 46px;
  background: var(--crema-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.amenity p { font-size: 0.95rem; color: var(--marron-soft); font-weight: 500; }

/* ===== CARE ===== */
.care {
  background: var(--oliva-dark);
  color: var(--blanco);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.care-text { padding: 6rem 4rem; max-width: 560px; display: flex; flex-direction: column; justify-content: center; }
.care-text .section-eyebrow { color: #d3d9b8; }
.care-text h2 { color: var(--blanco); font-size: clamp(2.1rem, 3.6vw, 2.9rem); margin-bottom: 1.4rem; }
.care-text p { font-size: 1.02rem; line-height: 1.7; color: #e6e9d6; margin-bottom: 1.8rem; }
.care-list { display: flex; flex-direction: column; gap: 0.8rem; }
.care-list li {
  font-size: 0.95rem;
  padding-left: 1.6rem;
  position: relative;
  color: #f0f2e2;
}
.care-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px;
  background: var(--terracota);
  border-radius: 50%;
}
.care-media { overflow: hidden; min-height: 420px; }
.care-media img { width: 100%; height: 100%; object-fit: cover; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--marron); padding: 7rem 1.5rem; }
.testimonials h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); max-width: 640px; margin-bottom: 3.5rem; }
.testi-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.testi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.testi-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--blanco);
  margin-bottom: 1.4rem;
}
.testi-card cite { font-size: 0.85rem; color: #d9a98c; font-style: normal; }
.testi-note {
  text-align: center;
  margin-top: 3rem;
  color: #d4c3b6;
  font-size: 0.92rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTACT ===== */
.contact { padding: 7rem 1.5rem; max-width: var(--container); margin: 0 auto; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
.contact-info h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin: 0.8rem 0 1.3rem; }
.contact-lead { font-size: 1.05rem; line-height: 1.7; color: var(--marron-soft); margin-bottom: 2.3rem; max-width: 460px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(61,43,34,0.12);
}
.detail-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terracota); font-weight: 700; margin-bottom: 0.3rem; }
.detail-value { font-size: 1.05rem; color: var(--marron); }
.detail-value a { text-decoration: underline; text-decoration-color: var(--terracota); }
.contact-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.contact-map { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 40px rgba(61,43,34,0.15); }
.contact-map iframe { filter: sepia(0.15) saturate(0.9); }

/* ===== FOOTER ===== */
.footer { background: var(--marron); color: #cdb9a9; padding: 3rem 1.5rem 2.5rem; }
.footer-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.footer-brand .brand-mark { border-color: #cdb9a9; color: #cdb9a9; }
.footer-brand .brand-name { color: var(--blanco); }
.footer p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer p a { text-decoration: underline; text-decoration-color: rgba(205,185,169,0.5); }
.footer p a:hover { text-decoration-color: var(--terracota); }
.footer-fine { font-size: 0.78rem; opacity: 0.7; margin-top: 1rem; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 80vw);
    background: var(--crema); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem 2.5rem; gap: 1.8rem; transition: right 0.35s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.15); }
  .nav.open { right: 0; }
  .nav a { font-size: 1.1rem; }
  .burger { display: flex; z-index: 101; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-stats { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1.5px solid var(--terracota); padding-left: 0; padding-top: 2rem; gap: 2rem 3rem; }

  .day-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .day-card.big { grid-column: span 2; grid-row: span 1; }
  .day-card.wide { grid-column: span 2; }

  .rooms-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .m1, .m2, .m3, .m4, .m5, .m6 { grid-column: span 1; grid-row: span 1; height: 220px; }
  .rooms-amenities { grid-template-columns: 1fr 1fr; }

  .care { grid-template-columns: 1fr; }
  .care-text { padding: 4rem 1.5rem; }
  .care-media { min-height: 320px; }

  .testi-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .rooms-amenities { grid-template-columns: 1fr; }
  .day-gallery { grid-template-columns: 1fr; }
  .day-card.big, .day-card.wide { grid-column: span 1; }
}
