/* ═══════════════════════════════════════════
   MICA Eventos — boho chic elegante
   Paleta derivada de sus propias fotos:
   arena, lino, madera, palma, ámbar, barro
   ═══════════════════════════════════════════ */

:root {
  --arena: #EFE7DA;
  --lino: #FAF5EC;
  --tinta: #2F2A22;
  --tinta-suave: #5B5244;
  --madera: #7A5B3E;
  --palma: #44513D;
  --ambar: #B5803F;
  --barro: #A2593B;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;

  --arch-radius: 999px 999px 0 0;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--arena);
  color: var(--tinta);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; }

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

em { font-style: italic; }

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.nav--solid {
  background: rgba(239, 231, 218, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 1px 0 rgba(47, 42, 34, 0.08);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.nav-brand span,
.footer-brand span {
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-left: 0.3em;
  color: var(--madera);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  border: 1px solid var(--tinta);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover { background: var(--tinta); color: var(--lino); }

@media (max-width: 700px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─── hero ─── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 4.5rem;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--madera);
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.5rem, 17vw, 13rem);
  line-height: 0.9;
  letter-spacing: 0.14em;
  text-indent: 0.14em; /* compensa el letter-spacing final */
  margin-bottom: -0.32em; /* la M I C A se posa sobre el arco */
  position: relative;
  z-index: 3;
  display: flex;
}

.hero-word { display: inline-block; }

.hero-arch {
  position: relative;
  width: min(64vmin, 480px);
  height: min(66svh, 620px);
  border-radius: var(--arch-radius);
  overflow: hidden;
  z-index: 2;
}

.hero-arch-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(to top, rgba(47, 42, 34, 0.55), rgba(47, 42, 34, 0) 45%);
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  color: var(--lino);
  text-align: center;
}

.hero-hint {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--tinta-suave);
}

/* ─── secciones base ─── */
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--barro);
  margin-bottom: 1rem;
}

.eyebrow-light { color: var(--arena); opacity: 0.8; }

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  max-width: 14em;
}

/* ─── manifiesto ─── */
.manifesto {
  padding: clamp(6rem, 14vh, 10rem) var(--gutter);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-line {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.12;
  max-width: 16em;
}

.manifesto-line .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;   /* aire para descendentes (p, j, q) */
  margin-bottom: -0.14em;
}

.manifesto-line .w > span { display: inline-block; }

.manifesto-body { max-width: 34em; padding-top: 1rem; }

.manifesto-body p + p { margin-top: 1.2em; }

.manifesto-sub { color: var(--tinta-suave); }

.manifesto-figure {
  width: min(100%, 380px);
  justify-self: end;
}

.manifesto-figure img {
  border-radius: var(--arch-radius);
  aspect-ratio: 4 / 5;
}

.manifesto-figure figcaption,
.moment figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--tinta-suave);
  text-align: center;
}

@media (max-width: 840px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-figure { justify-self: center; }
}

/* ─── servicios ─── */
.services {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  background: var(--lino);
  border-radius: 999px 999px 0 0 / 120px 120px 0 0; /* arco sutil de sección */
}

.services > .eyebrow, .services > .section-title { text-align: center; margin-left: auto; margin-right: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1200px;
  margin: clamp(3rem, 7vh, 5rem) auto 0;
}

.service { text-align: center; }

.service-img {
  border-radius: var(--arch-radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 1.6rem;
}

.service-img img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service:hover .service-img img { transform: scale(1.05); }

.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.service p {
  font-size: 0.98rem;
  color: var(--tinta-suave);
  max-width: 30em;
  margin: 0 auto;
}

@media (max-width: 840px) {
  .services-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ─── momentos: pan horizontal ─── */
.moments {
  background: var(--lino);
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

.moments-head {
  padding: 0 var(--gutter) clamp(2rem, 5vh, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.moments-pin { overflow: hidden; }

.moments-track {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  padding: 0 var(--gutter);
  width: max-content;
}

.moment {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 400px);
}

.moment img {
  aspect-ratio: 3 / 4;
  border-radius: var(--arch-radius);
}

.moment:nth-child(even) img { border-radius: 0 0 999px 999px; } /* arco invertido alternado */

/* fallback móvil: carrusel nativo */
@media (max-width: 768px) {
  .moments-pin { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .moments-pin::-webkit-scrollbar { display: none; }
  .moment { scroll-snap-align: center; width: min(78vw, 340px); }
}

/* ─── proceso ─── */
.process {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.process-list {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--ambar);
  display: block;
  margin-bottom: 0.7rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.process-step p { font-size: 0.95rem; color: var(--tinta-suave); }

@media (max-width: 900px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .process-list { grid-template-columns: 1fr; max-width: 26rem; }
}

/* ─── quote ─── */
.quote {
  background: var(--palma);
  color: var(--arena);
  padding: clamp(6rem, 16vh, 11rem) var(--gutter);
  text-align: center;
}

.quote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.25;
  max-width: 22em;
  margin: 0 auto;
}

.quote cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

/* ─── contacto ─── */
.contact {
  background: var(--palma);
  color: var(--lino);
  text-align: center;
  padding: 0 var(--gutter) clamp(6rem, 14vh, 10rem);
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.08;
}

.contact-sub {
  margin: 1.2rem auto 2.6rem;
  max-width: 30em;
  opacity: 0.85;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  border-radius: 999px;
  padding: 1em 2.2em;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--arena);
  color: var(--tinta);
}

.btn-solid:hover { background: var(--lino); }

.btn-ghost {
  border: 1px solid rgba(250, 245, 236, 0.5);
  color: var(--lino);
}

.btn-ghost:hover { border-color: var(--lino); }

/* ─── footer ─── */
.footer {
  background: var(--palma);
  color: var(--arena);
  text-align: center;
  padding: 0 var(--gutter) 2.5rem;
}

.footer::before {
  content: "";
  display: block;
  width: min(240px, 60%);
  margin: 0 auto 2.2rem;
  border-top: 1px solid rgba(250, 245, 236, 0.25);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 1.1rem;
}

.footer-meta {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ─── reveals (estado inicial lo pone JS; sin JS todo es visible) ─── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
