/* ================================================================
   A la Taula Benimaclet — Landing
   Paleta orgánica · sage green + cream · Fraunces
================================================================ */

:root {
  --sage: #6f8559;
  --sage-dark: #4f6240;
  --sage-deep: #3e4f31;
  --olive: #8a9968;
  --cream: #f3ead7;
  --cream-soft: #f8f1de;
  --cream-deep: #ece1c4;
  --ink: #2a2a26;
  --ink-soft: #4a4a44;
  --muted: #8a8678;
  --line: rgba(42, 42, 38, 0.12);
  --white: #fdfaf0;

  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius: 28px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 24px rgba(60, 60, 40, 0.06);
  --shadow-md: 0 10px 40px rgba(60, 60, 40, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 14px 20px; gap: 14px; }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
}

.about h2 em,
.order h2 em {
  color: var(--cream-deep);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage-dark);
  margin-bottom: 22px;
}

.eyebrow--light { color: var(--cream-soft); }
.eyebrow--small { font-size: 0.65rem; margin-bottom: 12px; }

.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 26px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--dark { background: var(--sage-dark); color: var(--cream); }
.btn--dark:hover { background: var(--ink); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--sage-dark); border-color: var(--sage-dark); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn--cream { background: var(--cream); color: var(--sage-deep); }
.btn--cream:hover { background: var(--white); transform: translateY(-1px); }

.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(243, 234, 215, 0.4); }
.btn--ghost-light:hover { background: var(--cream); color: var(--sage-deep); border-color: var(--cream); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 234, 215, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--sage-dark); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--sage-dark);
  transition: width 0.3s;
}
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav__cta:hover { background: var(--ink); }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.hero__content { order: 2; }
.hero__media { order: 1; position: relative; }

.hero__title {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  max-width: 15ch;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta li {
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.hero__meta strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 2px;
}

.hero__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 64% 36% 51% 49% / 38% 62% 38% 62%;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--cream-deep);
  animation: morph 18s ease-in-out infinite;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes morph {
  0%, 100% { border-radius: 64% 36% 51% 49% / 38% 62% 38% 62%; }
  33% { border-radius: 47% 53% 64% 36% / 55% 41% 59% 45%; }
  66% { border-radius: 41% 59% 36% 64% / 47% 56% 44% 53%; }
}

.hero__badge {
  position: absolute;
  bottom: 6%;
  right: -4%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  z-index: 3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-deep);
}
.hero__badge-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--sage-deep);
  line-height: 1;
  margin-bottom: 8px;
  font-style: italic;
}
.hero__badge-text {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 500;
  line-height: 1.5;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero__decor {
  position: absolute;
  z-index: 0;
  opacity: 0.6;
}
.hero__decor--leaf-1 {
  top: 60px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, var(--olive) 0%, transparent 65%);
  filter: blur(10px);
}
.hero__decor--leaf-2 {
  bottom: 40px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle at 60% 60%, var(--cream-deep) 0%, transparent 70%);
  filter: blur(10px);
}
.hero__decor--circle {
  top: 50%; left: 0;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--cream-soft);
  transform: translate(-40%, -50%);
  z-index: 0;
}

@media (max-width: 880px) {
  .hero { padding: 50px 0 80px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero__content { order: 2; text-align: left; }
  .hero__media {
    order: 1;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero__badge {
    width: 110px;
    height: 110px;
    padding: 12px;
    bottom: 6%;
    right: -6%;
  }
  .hero__badge-num { font-size: 1.5rem; margin-bottom: 4px; }
  .hero__badge-text { font-size: 0.48rem; letter-spacing: 0.14em; }
  .hero__decor--leaf-1,
  .hero__decor--leaf-2,
  .hero__decor--circle { display: none; }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--sage);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--sage-dark);
  border-bottom: 1px solid var(--sage-dark);
}
.marquee__track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
}
.marquee__track span:nth-child(even) { opacity: 0.55; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */

.about {
  position: relative;
  background: var(--sage-deep);
  color: var(--cream);
  padding: 120px 0;
  overflow: hidden;
}

.about__decor {
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 234, 215, 0.08) 0%, transparent 70%);
}

.about__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section-title {
  color: var(--cream);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 30px;
}
.about__text p {
  font-size: 1.05rem;
  color: rgba(243, 234, 215, 0.85);
  max-width: 48ch;
  margin: 0 0 18px;
}

.about__signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.signature__line { width: 40px; height: 1px; background: var(--cream); }
.about__signature strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
}
.about__signature span {
  font-size: 0.78rem;
  color: rgba(243, 234, 215, 0.6);
  letter-spacing: 0.05em;
}

.about__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about__img {
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--cream-deep);
}
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__img--1 {
  border-radius: 50% 50% 14px 14px / 32% 32% 14px 14px;
  margin-top: 30px;
}
.about__img--2 {
  border-radius: 14px 14px 50% 50% / 14px 14px 32% 32%;
  margin-bottom: 30px;
}

.about__quote {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--ink);
  padding: 20px 26px;
  border-radius: 16px;
  max-width: 280px;
  box-shadow: var(--shadow-md);
}
.about__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 880px) {
  .about { padding: 90px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 60px; }
  .about__quote { position: static; transform: none; margin-top: 20px; max-width: none; }
}

/* ---------- Values ---------- */

.values {
  padding: 120px 0;
  background: var(--cream);
}
.values__head {
  text-align: center;
  margin-bottom: 70px;
}
.values__head .section-title {
  margin: 0 auto;
  max-width: 22ch;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: 44px 36px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.value-card--accent {
  background: var(--sage);
  color: var(--cream);
}
.value-card--accent h3, .value-card--accent .value-card__icon { color: var(--cream); }

.value-card__icon {
  width: 56px; height: 56px;
  color: var(--sage-dark);
  margin-bottom: 28px;
}
.value-card h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.value-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.value-card--accent p { color: rgba(243, 234, 215, 0.85); }

.value-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(111, 133, 89, 0.1);
  color: var(--sage-dark);
}
.value-card--accent .value-card__tag {
  background: rgba(243, 234, 215, 0.18);
  color: var(--cream);
}

@media (max-width: 880px) {
  .values__grid { grid-template-columns: 1fr; }
  .values { padding: 80px 0; }
}

/* ---------- Carta digital ---------- */

.carta {
  padding: 120px 0;
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
}

.carta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.carta__text > p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 32px;
}

.carta__features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.carta__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--ink);
}
.carta__features svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--sage-dark);
}

.carta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.carta__media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.carta__phone {
  position: relative;
  width: 320px;
}

.carta__phone-frame {
  position: relative;
  background: #1a1a18;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(60, 60, 40, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.carta__phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}

.carta__phone-screen iframe {
  border: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 143%;
  height: 143%;
  transform: scale(0.7);
  transform-origin: top left;
}

.carta__phone-shadow {
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 50px;
  background: radial-gradient(ellipse at center, rgba(60, 60, 40, 0.25) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 1;
}

@media (max-width: 880px) {
  .carta { padding: 80px 0; }
  .carta__inner { grid-template-columns: 1fr; gap: 60px; }
  .carta__phone { width: 260px; }
}

/* ---------- Order ---------- */

.order {
  padding: 120px 0;
  background: var(--sage);
  color: var(--cream);
}

.order__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.order__text .section-title {
  color: var(--cream);
  margin-bottom: 24px;
}
.order__text > p {
  font-size: 1.05rem;
  color: rgba(243, 234, 215, 0.85);
  max-width: 46ch;
  margin: 0 0 40px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 234, 215, 0.18);
}
.steps__num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.6;
}
.steps h4 {
  color: var(--cream);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.steps p {
  font-size: 0.92rem;
  color: rgba(243, 234, 215, 0.8);
  margin: 0;
}

.order__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.order__card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.order__card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-deep);
}
.order__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.order__card-body { padding: 30px 32px 34px; }

.hours {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { color: var(--ink-soft); }
.hours li span:last-child { font-family: var(--font-serif); font-weight: 500; }

@media (max-width: 880px) {
  .order { padding: 80px 0; }
  .order__inner { grid-template-columns: 1fr; gap: 50px; }
}

/* ---------- Contact ---------- */

.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact__head {
  text-align: center;
  margin-bottom: 60px;
}
.contact__head .section-title { margin: 0 auto; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.contact__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 32px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: all 0.25s;
  min-height: 200px;
}
.contact__card:hover {
  background: var(--sage-deep);
  color: var(--cream);
  border-color: var(--sage-deep);
  transform: translateY(-4px);
}

.contact__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.contact__card:hover .contact__label { color: rgba(243, 234, 215, 0.7); }

.contact__value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.contact__link {
  font-size: 0.85rem;
  color: var(--sage-dark);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.contact__card:hover .contact__link { color: var(--cream); }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact__map iframe { display: block; filter: grayscale(0.3) contrast(0.95); }

@media (max-width: 880px) {
  .contact { padding: 80px 0; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 70px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(243, 234, 215, 0.12);
}
.footer__logo {
  width: 110px;
  height: auto;
  display: block;
  margin: 0 0 14px;
}
.footer__brand p {
  font-size: 0.9rem;
  color: rgba(243, 234, 215, 0.6);
  margin: 0;
  max-width: 30ch;
}
.footer__nav, .footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}
.footer__nav a, .footer__legal a {
  color: rgba(243, 234, 215, 0.7);
  transition: color 0.2s;
}
.footer__nav a:hover, .footer__legal a:hover { color: var(--cream); }

.footer__bottom {
  text-align: center;
  padding: 24px 28px;
  font-size: 0.78rem;
  color: rgba(243, 234, 215, 0.5);
}
.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer__bottom a:hover { color: var(--cream); }

@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Páginas legales ---------- */
.legal {
  padding: 140px 0 90px;
}
.legal .container { max-width: 760px; }
.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 40px 0 12px;
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal ul {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--sage-deep); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 10px 0 20px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.legal th { color: var(--ink); font-weight: 600; }
