/* Mafanca — styles */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6e6e6e;
  --line: #ececea;
  --gold: #c9a961;
  --gold-deep: #a08544;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 4px 12px rgba(10,10,10,.04);
  --shadow-md: 0 8px 24px rgba(10,10,10,.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 600; letter-spacing: -.005em; }
h4 { font-size: .95rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  text-indent: .22em;
}
.brand-tagline {
  font-family: var(--sans);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 6px;
  border-top: 1px solid var(--gold);
  align-self: stretch;
  text-align: center;
  text-indent: .42em;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: .7rem 1.5rem; font-size: .9rem; letter-spacing: .02em; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform .25s ease, opacity .25s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a:not(.btn) { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; text-align: center; }

/* Hero — split layout (text left, vertical photo right) */
.hero-split {
  position: relative;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(201,169,97,.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) 24px clamp(56px, 8vw, 110px);
}
.hero-text h1 { max-width: 14ch; }
.hero-text .lede { font-size: 1.08rem; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: .92rem;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink);
  aspect-ratio: 4 / 5;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5));
  pointer-events: none;
}
.hero-photo-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: #fff;
  background: rgba(13,13,13,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.18);
}

/* Strip */
.strip {
  background: var(--ink);
  color: var(--white);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 24px;
  text-align: center;
}
.strip-grid div { display: flex; flex-direction: column; gap: 4px; }
.strip-grid strong { font-family: var(--serif); font-size: 1.8rem; color: #e9c89a; font-weight: 500; }
.strip-grid span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-sub { color: var(--muted); }

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d8d6d0;
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--gold-deep);
  display: grid; place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.card.quote { padding: 32px; }
.card.quote p { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.4; margin-bottom: 18px; }
.card.quote footer { display: flex; flex-direction: column; gap: 2px; }
.card.quote strong { font-weight: 600; }
.card.quote span { font-size: .82rem; color: var(--muted); }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.checks { display: grid; gap: 8px; margin: 18px 0 28px; }
.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,.18);
}

/* Before & After gallery */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.ba-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}
.ba-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, opacity .3s ease;
}
.ba-item:hover img { transform: scale(1.05); opacity: .92; }
.ba-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.14);
}
.ba-item::after {
  content: "Antes / Después";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Brands / Productos */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.brand-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.brand-group h3 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.brand-group ul { display: grid; gap: 12px; }
.brand-group li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.brand-group li:first-child { padding-top: 0; border-top: 0; }
.brand-group strong { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.brand-group span { font-size: .9rem; color: var(--muted); }

/* Contact */
.contact-list { display: grid; gap: 14px; margin: 22px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-alt);
  font-size: 1.1rem;
}
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list span:not(.ico) { color: var(--ink); }

.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.socials a {
  font-size: .85rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  transition: background .2s ease, color .2s ease;
}
.socials a:hover { background: var(--ink); color: var(--white); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.contact-form label { display: grid; gap: 6px; }
.contact-form span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,.20);
}
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 64px 0 24px;
  margin-top: 0;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tagline { color: #e9c89a; border-top-color: rgba(233,200,154,.35); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-tag { color: rgba(255,255,255,.6); margin-top: 10px; max-width: 32ch; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer ul li { padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; }
.footer-bottom small { color: rgba(255,255,255,.5); }


/* Responsive */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-media { order: -1; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
  .hero-photo { max-width: 480px; margin: 0 auto; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

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