/* ============================================================
   CREARE CERÁMICAS — sitio fiel al brochure
   Los gráficos reales del PDF son el contenido visual.
   El CSS aporta marco, ritmo, navegación e interacción.
   ============================================================ */

:root {
  --navy:       #1f3a6b;
  --blue-700:   #3a5a96;
  --blue-600:   #4a6ca6;
  --blue-500:   #5e7fbf;
  --blue-400:   #7e9bd1;
  --denim:      #4e6a9e;   /* fondo de la portada */
  --rust:       #9a5b3f;

  --cream:      #fbefdf;   /* fondo, igual al brochure */
  --cream-100:  #fdf7ee;
  --cream-200:  #f5e8d4;
  --cream-300:  #ecdcc2;

  --ink:        #2d3f5e;
  --ink-soft:   #5b6b86;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script:  'Caveat', cursive;
  --font-body:    'Quicksand', system-ui, sans-serif;

  --maxw: 1180px;
  --maxw-narrow: 940px;
  --radius: 18px;
  --shadow-sm: 0 4px 18px rgba(31, 58, 107, .08);
  --shadow-md: 0 16px 44px rgba(31, 58, 107, .14);
  --shadow-lg: 0 30px 70px rgba(31, 58, 107, .2);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--grain);
  line-height: 1.65;
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.container--narrow { max-width: var(--maxw-narrow); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--navy); letter-spacing: .005em; }
.section h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.eyebrow { font-family: var(--font-script); font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--blue-500); font-weight: 600; line-height: 1; margin-bottom: .3rem; }
.script { font-family: var(--font-script); }

/* ---------- Botones ---------- */
.btn {
  --b: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: .85rem 1.6rem; border-radius: 100px; border: 1.5px solid var(--b);
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s;
}
.btn--solid { background: var(--b); color: var(--cream-100); box-shadow: 0 8px 22px rgba(74,108,166,.28); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(74,108,166,.4); }
.btn--ghost { background: transparent; color: var(--blue-700); }
.btn--ghost:hover { background: var(--blue-600); color: var(--cream-100); transform: translateY(-3px); }
.btn--small { padding: .55rem 1.1rem; font-size: .9rem; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--cream-200); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; }
.nav__brand { display: flex; flex-direction: column; line-height: .82; }
.nav__wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: .28em; color: var(--navy); padding-left: .28em; }
.nav__sub { font-family: var(--font-display); font-style: italic; font-size: .82rem; letter-spacing: .35em; color: var(--blue-500); padding-left: .35em; }

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) { position: relative; font-weight: 600; font-size: .98rem; color: var(--ink); padding: .2rem 0; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  background: radial-gradient(120% 120% at 50% 0%, #5c79ad 0%, var(--denim) 55%, #45618f 100%);
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.hero__cover {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) .05s forwards;
}
.hero__cover img { width: 100%; }
.hero__tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 2.1rem); color: #fff; margin-top: 2rem; max-width: 760px; margin-inline: auto; opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) .25s forwards; }
.hero__lede { max-width: 560px; margin: 1rem auto 0; color: rgba(255,255,255,.86); font-size: 1.05rem; opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) .38s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) .5s forwards; }
.hero__cta .btn--solid { --b: #fff; color: var(--navy); }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero__cta .btn--ghost:hover { background: #fff; color: var(--navy); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ SECCIONES ============ */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); }
.section__intro { color: var(--ink-soft); margin-top: 1rem; font-size: 1.06rem; }
.section__head h2 { position: relative; display: inline-block; }
.section__head h2::after { content: ""; display: block; width: 80px; height: 5px; margin: .8rem auto 0; border-radius: 100px; background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); }

/* ---------- Marco "plato" para los gráficos del brochure ---------- */
.plate {
  border-radius: var(--radius); overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-300);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plate img { width: 100%; }
.plate + .plate { margin-top: 1.4rem; }
.plate--wide { box-shadow: var(--shadow-lg); }

/* ---------- Marco foto ---------- */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--cream-300); background: var(--cream-200); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 16/9; margin-bottom: 1.4rem; }

/* ============ BIENVENIDA ============ */
.welcome__grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; margin-top: clamp(2rem, 4vw, 3rem); }
.welcome__grid .photo { aspect-ratio: 4/5; }
.prose .script { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--blue-600); line-height: 1.05; margin-bottom: 1rem; }
.prose p:not(.script) { color: var(--ink-soft); margin-bottom: 1rem; }
.prose .btn { margin-top: .4rem; }

/* ============ EXPERIENCIAS ============ */
.exp-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 1.6rem; }
.exp-btn {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem 1.1rem; border-radius: 14px;
  background: var(--cream-100); border: 1.5px solid var(--cream-300);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background-color .3s;
}
.exp-btn:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.exp-btn__name { font-weight: 700; color: var(--navy); font-size: .95rem; line-height: 1.25; }
.exp-btn__price { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--blue-700); }
.exp-btn__price small { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--rust); }
.exp-btn--featured { background: var(--blue-600); border-color: var(--blue-600); }
.exp-btn--featured .exp-btn__name { color: #fff; }
.exp-btn--featured .exp-btn__price { color: #fff; }
.exp-btn--featured .exp-btn__price small { color: #ffe2c9; }
.experiences__note { text-align: center; margin-top: 1.8rem; color: var(--ink-soft); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; }

/* ============ GALERÍA ============ */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery__grid .photo { aspect-ratio: 3/4; }
.gallery__grid .photo:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
@media (max-width: 760px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } .gallery__grid .photo:first-child { grid-column: span 2; } }

/* ============ VISÍTANOS ============ */
.visit { background: var(--blue-600); color: var(--cream-100); overflow: hidden; }
.visit__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.visit .eyebrow { color: #ffe2c9; }
.visit h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.visit__list { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: 1.1rem; }
.visit__list li { display: grid; gap: .15rem; color: rgba(255,255,255,.92); font-size: 1.05rem; }
.visit__label { font-family: var(--font-script); font-size: 1.25rem; color: #ffe2c9; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.visit__cta .btn--solid { --b: #fff; color: var(--blue-700); }
.visit__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.visit__cta .btn--ghost:hover { background: #fff; color: var(--blue-700); }
.visit__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.4); }
.visit__map iframe { width: 100%; height: 360px; border: 0; filter: saturate(.9); }

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: rgba(255,255,255,.78); padding-block: 3rem; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.footer__brand { display: flex; flex-direction: column; align-items: center; }
.footer__wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: .3em; padding-left: .3em; color: #fff; }
.footer__sub { font-family: var(--font-display); font-style: italic; letter-spacing: .4em; padding-left: .4em; font-size: .85rem; color: rgba(255,255,255,.7); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.footer__links a { font-weight: 600; font-size: .95rem; transition: color .25s; }
.footer__links a:hover { color: #fff; }
.footer__legal { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.55); }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .3s var(--ease);
  animation: wapulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wapulse { 0%,100% { box-shadow: 0 10px 26px rgba(37,211,102,.45); } 50% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,.12); } }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .welcome__grid, .visit__inner { grid-template-columns: 1fr; }
  .welcome__grid .photo { max-width: 360px; margin-inline: auto; }
  .exp-buttons { grid-template-columns: repeat(2, 1fr); }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--cream-200);
    padding: 1rem 1.25rem 1.6rem; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .45s var(--ease);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a:not(.btn) { padding: .9rem .2rem; border-bottom: 1px solid var(--cream-200); }
  .nav__menu .btn { margin-top: 1rem; }
}
@media (max-width: 520px) {
  .exp-buttons { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .visit__map iframe { height: 280px; }
}
