/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f0e6;
  --bg-2:      #ece2d0;
  --paper:     #fffdfa;
  --ink:       #241f1a;
  --ink-soft:  #3a332c;
  --ink-mute:  #766c60;
  --accent:    #a8455a;   /* dusty antique rose */
  --accent-2:  #8a7350;   /* warm taupe gold */
  --line:      rgba(36,31,26,0.12);
  --line-2:    rgba(36,31,26,0.08);
  --shadow:    0 30px 60px -30px rgba(36,31,26,0.35);

  --serif: "Fraunces", "Iowan Old Style", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 84px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-weight: 500; }
em { font-style: italic; color: var(--accent); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

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

/* =============================================================
   4. Typography
   ============================================================= */
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-top: 0.5rem;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-mute);
  font-size: 1.08rem;
  max-width: 42ch;
}
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered p { margin-inline: auto; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .45s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(168,69,90,0.55); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* --- Nav --- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), height .4s var(--ease-out);
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.01em; }
.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-links a {
  position: relative;
  font-size: 0.95rem; font-weight: 500;
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: none; }
.nav.is-solid {
  background: rgba(246,240,230,0.9);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}
.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  width: 30px; padding: 0.5rem 0;
}
.nav-burger span { display: block; width: 100%; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 490;
  background: var(--bg);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1.5rem;
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.8rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* --- Cards --- */
.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card img { transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.card:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.04); }

/* --- Forms --- */
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  font: inherit;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(168,69,90,0.12);
}
.form-grid { display: grid; gap: 1.1rem; }
.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status[data-state="ok"] { color: #4a6b3a; }
.form-status[data-state="err"] { color: var(--accent); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(36,31,26,0.15) 0%, rgba(36,31,26,0.1) 40%, rgba(36,31,26,0.72) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--paper); max-width: 46rem; }
.hero-content .kicker { color: #f0d9c8; }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  color: var(--paper);
  margin-top: 0.6rem;
  text-wrap: balance;
}
.hero-title em { color: #e7b8a8; font-style: italic; }
.hero-sub {
  margin-top: 1.3rem;
  font-size: 1.15rem;
  max-width: 34rem;
  color: rgba(255,255,255,0.86);
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn-primary { background: var(--paper); color: var(--ink); }
.hero-actions .btn-primary:hover { background: var(--accent); color: var(--paper); }
.hero-actions .btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--paper); }
.hero-actions .btn-ghost:hover { border-color: var(--paper); }
.hero-scroll {
  position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 2rem; z-index: 2;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  display: none; align-items: center; gap: 0.6rem;
}
.hero-scroll-line { width: 1px; height: 34px; background: rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  animation: scrollLine 2.2s var(--ease-soft) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@media (min-width: 720px) { .hero-scroll { display: flex; } }

/* --- Manifesto --- */
.manifesto { padding-block: clamp(5rem, 10vw, 9rem); }
.manifesto-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.manifesto-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent-2);
  font-weight: 600;
}
.manifesto-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.28;
  margin-top: 0.75rem;
}
.manifesto-body { color: var(--ink-mute); font-size: 1.05rem; }
.manifesto-body p + p { margin-top: 1.1rem; }
.manifesto-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat-num { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.2rem; }

@media (min-width: 960px) {
  .manifesto-grid { grid-template-columns: 0.9fr 1.6fr; gap: 4rem; }
}

/* --- Marquee --- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Bento grid (colecciones) --- */
.bento {
  padding-block: clamp(5rem, 10vw, 9rem);
}
.bento-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.bento-card:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 10; }
.bento-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.bento-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(36,31,26,0) 0%, rgba(36,31,26,0.32) 30%, rgba(36,31,26,0.88) 62%, rgba(36,31,26,0.94) 100%);
}
.bento-card-label { position: absolute; z-index: 2; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; color: var(--paper); }
.bento-card-label .kicker { color: #e7c9bb; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.bento-card-label h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); margin-top: 0.3rem; color: var(--paper); text-shadow: 0 2px 10px rgba(0,0,0,0.55); }
.bento-card-label p { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin-top: 0.35rem; max-width: 30ch; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.bento-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(168,69,90,0.4); }
.bento-card:hover img { transform: scale(1.1); filter: saturate(1.15); }

@media (min-width: 720px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .bento-card:nth-child(1) { grid-column: span 4; }
}

/* --- Gallery carousel --- */
.gallery { padding-block: clamp(4rem, 9vw, 8rem); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.gallery-track {
  margin-top: 2.5rem;
  display: flex; gap: 1.1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding-block: 0.5rem 1.5rem;
  scrollbar-width: thin;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gallery-item {
  flex: 0 0 auto;
  width: min(280px, 76vw);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- Testimonials --- */
.testimonials {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.testimonials-grid {
  display: grid; gap: 2.5rem;
  align-items: center;
}
.testimonials-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.testimonials-photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  font-style: italic;
}
.testimonial-stars { color: var(--accent); letter-spacing: 0.2em; margin-bottom: 1.2rem; }
.testimonial-name { margin-top: 1.4rem; font-weight: 600; }
.testimonial-dots { display: flex; gap: 0.6rem; margin-top: 2rem; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s var(--ease-out), transform .3s var(--ease-out); }
.testimonial-dots button[aria-current="true"] { background: var(--accent); transform: scale(1.3); }

@media (min-width: 860px) {
  .testimonials-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
}

/* --- About teaser --- */
.about-teaser { padding-block: clamp(5rem, 10vw, 9rem); }
.about-teaser-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-teaser-figure { border-radius: 22px; overflow: hidden; aspect-ratio: 16/11; box-shadow: var(--shadow); }
.about-teaser-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .about-teaser-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .about-teaser-grid.reverse .about-teaser-figure { order: 2; }
}

/* --- Final CTA --- */
.cta {
  position: relative;
  margin-inline: clamp(1rem, 3vw, 2rem);
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 4rem);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-halo {
  position: absolute; inset: -60% -20% -60% -20%;
  background: radial-gradient(45% 45% at 50% 40%, rgba(168,69,90,0.5), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 40rem; margin-inline: auto; }
.cta h2 { color: var(--paper); font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cta p { margin-top: 1rem; color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent); color: var(--paper); }
.cta .btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--paper); }

/* --- Page hero (interior pages) --- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.page-hero .kicker { display: block; margin-bottom: 0.6rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.page-hero p { margin-top: 1.1rem; color: var(--ink-mute); max-width: 40rem; font-size: 1.1rem; }

/* --- Info blocks (sobre-nosotras / contacto) --- */
.info-grid { display: grid; gap: 2rem; padding-block: clamp(2rem, 6vw, 4rem); }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 2rem;
}
.info-card .kicker { display: block; margin-bottom: 0.5rem; }
.info-card h3 { font-size: 1.4rem; margin-top: 0.3rem; }
.info-card p { margin-top: 0.8rem; color: var(--ink-mute); }
.info-card a.map-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; color: var(--accent); font-weight: 600; }
@media (min-width: 780px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

.map-embed { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* --- Full gallery (coleccion.html) --- */
.full-gallery { padding-block: clamp(3rem, 8vw, 6rem); }
.full-gallery-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
.full-gallery-item { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; }
.full-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .full-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .full-gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Footer --- */
.footer {
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; }
.footer-tagline { color: var(--ink-mute); margin-top: 0.6rem; max-width: 26rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 600; margin-bottom: 0.9rem; font-family: var(--sans); }
.footer-col a, .footer-col p { display: block; color: var(--ink-soft); margin-bottom: 0.55rem; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.9rem; margin-top: 0.5rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.85rem; color: var(--ink-mute);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}

/* =============================================================
   7. Reveal / effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive helpers already inlined per component
   ============================================================= */

/* =============================================================
   9. Reduced motion — only intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-scroll-line::after { animation: none; }
}
