/* bacci® — rediseño 2026 */
:root {
  --coral: #e9514e;
  --coral-deep: #d23f3c;
  --ink: #16202e;
  --denim: #1f3352;
  --denim-deep: #111c2e;
  --cream: #f7f3ee;
  --line: #e5ded5;
  --muted: #5a6472;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--coral); }
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 500; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 1.1rem;
}
.eyebrow-light { color: #ff9b97; }
.lead { font-size: 1.22rem; line-height: 1.55; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border: 1px solid var(--coral-deep); background: var(--coral-deep); color: #fff;
  font: 500 0.82rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-small { padding: 12px 18px; font-size: 0.74rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.nav a:not(.btn):hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.nav-toggle { display: none; background: none; border: 0; padding: 12px 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero {
  position: relative; min-height: min(calc(100svh - var(--header-h)), 860px);
  display: flex; align-items: flex-end; color: #fff; background: var(--denim-deep); overflow: hidden;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,28,46,.25) 0%, rgba(17,28,46,.35) 40%, rgba(17,28,46,.88) 100%);
}
.hero-content { position: relative; padding-block: 90px 56px; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { max-width: 13ch; }
.hero h1 em { color: #ff8f8b; }
.hero-caption { font-size: 1.2rem; font-weight: 300; max-width: 46ch; margin: 1.4rem 0 2rem; min-height: 3.2em; transition: opacity .4s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots { display: flex; gap: 10px; margin-top: 44px; }
.hero-dots button {
  width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255,255,255,.4); transition: background .3s; }
.hero-dots button[aria-current="true"]::after { background: #fff; }

/* Secciones */
.section { padding-block: clamp(70px, 10vw, 130px); }
.section-cream { background: var(--cream); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }

/* Marca */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.about-text p:not(.lead) { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line); }
.pillar { padding: 36px 32px 0 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar-num { display: block; font: italic 500 2.2rem/1 var(--serif); color: var(--coral); margin-bottom: 18px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Colección */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 18px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  font: 500 0.76rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; transition: background .2s, color .2s;
}
.chip:hover, .chip.is-active { background: var(--ink); color: #fff; }
.gallery { columns: 4 240px; column-gap: 14px; }
.g-item { display: block; position: relative; margin-bottom: 14px; break-inside: avoid; overflow: hidden; background: var(--line); cursor: zoom-in; }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item span {
  position: absolute; left: 0; bottom: 0; padding: 7px 12px; background: #fff; color: var(--ink);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0; transition: opacity .25s;
}
.g-item:hover span, .g-item:focus-visible span { opacity: 1; }

/* Mayoristas */
.wholesale { background: var(--denim-deep); color: #fff; }
.wholesale h2 em { color: #ff8f8b; }
.wholesale-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.wholesale .lead { color: rgba(255,255,255,.82); margin: 1.5rem 0 2rem; max-width: 48ch; }
.wholesale-list { list-style: none; margin: 0; padding: 0; }
.wholesale-list li { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.18); }
.wholesale-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.wholesale-list strong { display: block; font-weight: 500; font-size: 1.15rem; margin-bottom: 4px; }
.wholesale-list span { color: rgba(255,255,255,.7); font-size: 1rem; }

/* Blog */
.blog { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.blog-media { display: block; overflow: hidden; }
.blog-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blog p:not(.eyebrow) { color: var(--muted); margin: 1.2rem 0 1.6rem; max-width: 44ch; }
.link-arrow {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--coral-deep); border-bottom: 1px solid currentColor; padding-bottom: 5px;
}
.link-arrow:hover { color: var(--ink); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: 32px 28px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--coral-deep); transform: translateY(-3px); }
.contact-label { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-deep); }
.contact-value { font: 500 1.6rem/1.2 var(--serif); overflow-wrap: anywhere; }
.contact-note { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); font-size: 0.95rem; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand { font: 300 2.4rem/1 var(--sans); color: var(--coral); letter-spacing: 0.02em; margin-bottom: 14px; }
.footer-brand sup { font-size: .35em; }
.footer-logos { display: flex; align-items: center; gap: 26px; margin-top: 26px; }
.footer-logos img { max-height: 44px; width: auto; opacity: .85; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a, .social a { text-decoration: none; transition: color .2s; }
.site-footer nav a:hover, .social a:hover { color: #fff; }
.social { display: flex; gap: 14px; }
.social a { display: inline-flex; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,15,24,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; object-fit: contain; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.lb-btn:hover { background: var(--coral-deep); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Aparición al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .logo img { height: 32px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 22px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-content { padding-block: 70px 40px; }
  .about, .wholesale-grid, .blog, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .gallery { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .section-head { margin-bottom: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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