@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Identidad Mucho Tuyo: paleta del dossier; ciruela oscuro tomado del logo */
:root {
  --crema: #FAF5ED;
  --kraft: #E9D8C1;
  --coral: #E8796B;
  --ciruela: #6D405B;
  --ciruela-logo: #57123A;
  --hoja: #73846C;
  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--crema); color: var(--ciruela); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; background: var(--crema); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; color: var(--coral); }
h1, h2 { color: var(--ciruela-logo); }

/* Cabecera: el logo pequeño aparece al salir de la portada */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px) 26px; pointer-events: none; background: linear-gradient(rgba(250, 245, 237, .92), rgba(250, 245, 237, .6) 60%, rgba(250, 245, 237, 0)); }
.brand, .badge { pointer-events: auto; }
.brand img { height: 52px; width: auto; }
.badge { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ciruela-logo); border: 1px solid rgba(87, 18, 58, .35); border-radius: 999px; padding: 7px 16px; background: rgba(250, 245, 237, .7); backdrop-filter: blur(6px); margin-left: auto; }
.js .brand { opacity: 0; }

/* Portada */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform-origin: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 245, 237, .95) 0%, rgba(250, 245, 237, .78) 36%, rgba(250, 245, 237, 0) 62%); }
.hero-text { position: relative; z-index: 2; max-width: 640px; padding: 110px clamp(16px, 6vw, 96px) 80px; }
.hero-logo { width: clamp(190px, 22vw, 300px); margin: 0 0 30px -8px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.005em; max-width: 15ch; }
.intro { margin-top: 22px; max-width: 32ch; color: var(--ciruela); font-size: clamp(16px, 1.4vw, 19px); }
.kicker { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--hoja); margin-bottom: 16px; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ciruela); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 38px; margin: 10px auto 0; background: linear-gradient(var(--coral), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0%, 100% { opacity: .2; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Ocasiones */
.gallery { padding: clamp(90px, 13vw, 170px) clamp(16px, 5vw, 72px) clamp(70px, 10vw, 140px); background: var(--crema); text-align: center; }
.gallery-lead { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; margin-bottom: clamp(48px, 8vw, 110px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 44px); max-width: 1240px; margin: 0 auto; align-items: start; text-align: left; }
.frame { overflow: hidden; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(87, 18, 58, .35); }
.frame img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.card figcaption { padding: 18px 4px 0; }
.card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ciruela-logo); }
.card strong::after { content: ""; display: block; width: 28px; height: 2px; margin: 10px 0 8px; background: var(--coral); }
.card span { font-size: 15px; color: var(--ciruela); }
.c2 { margin-top: clamp(40px, 8vw, 120px); }
.c3 { margin-top: clamp(16px, 3vw, 40px); }

/* Promesa */
.promise { padding: clamp(90px, 12vw, 160px) 16px; background: var(--kraft); text-align: center; }
.promise-text { font-family: var(--serif); font-size: clamp(34px, 5vw, 72px); line-height: 1.1; color: var(--ciruela-logo); }
.promise-sign { margin-top: 26px; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--ciruela); }

/* Cierre */
.closing { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 16px; background: var(--crema); }
.big { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 11vw, 168px); line-height: .98; }
.heart { width: 64px; margin-top: 34px; }

.foot { padding: 28px 16px 36px; text-align: center; font-size: 13px; color: var(--ciruela); background: var(--crema); }

@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(250, 245, 237, .97) 0%, rgba(250, 245, 237, .85) 48%, rgba(250, 245, 237, 0) 78%); }
  .hero-img img { object-position: 76% center; }
  .hero-text { padding-bottom: 64px; }
  .hero-logo { width: 170px; margin-bottom: 20px; }
  .scroll-hint { display: none; }
  .brand img { height: 42px; }
  .badge { font-size: 10px; padding: 6px 12px; }
  .cards { grid-template-columns: 1fr; max-width: 420px; gap: 48px; }
  .c2, .c3 { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint::after { animation: none; }
}
