/* ==========================================================================
   Calzado TRENCITAS — hoja de estilos principal
   ========================================================================== */

:root {
  --burgundy: #7a1f2b;
  --burgundy-dark: #5a1520;
  --rose: #e7a1b0;
  --rose-soft: #f9e4e8;
  --cream: #fbf6f1;
  --sand: #f1e7dc;
  --ink: #2b1d20;
  --muted: #6f5d60;
  --sage: #4f6f52;
  --sage-soft: #e5ede3;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(43, 29, 32, .06);
  --shadow: 0 12px 32px rgba(43, 29, 32, .10);
  --shadow-lg: 0 24px 60px rgba(43, 29, 32, .16);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--burgundy); color: var(--white);
  padding: .75rem 1rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 246, 241, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-color: rgba(122, 31, 43, .1); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--burgundy); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--burgundy); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  box-shadow: inset 0 0 0 3px var(--rose);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .06em; }
.brand-text small { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: .55rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-list a:hover { background: var(--rose-soft); color: var(--burgundy); }
.nav-list a[aria-current="page"] { background: var(--burgundy); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--rose-soft); color: var(--burgundy); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream); border-bottom: 1px solid rgba(122, 31, 43, .1);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease);
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: .35rem; }
  .nav-list a { padding: .85rem 1.1rem; font-size: 1.05rem; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--burgundy); color: var(--white); box-shadow: 0 10px 24px rgba(122, 31, 43, .28); }
.btn-primary:hover { background: var(--burgundy-dark); color: var(--white); }
.btn-ghost { border-color: rgba(122, 31, 43, .25); color: var(--burgundy); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--burgundy); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -200px;
  background: radial-gradient(circle, var(--rose-soft) 0%, transparent 70%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--burgundy); background: var(--rose-soft);
  padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 { color: var(--burgundy); }
.hero h1 em { font-style: italic; color: var(--ink); font-weight: 500; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--sand);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -1.5rem; bottom: 2rem;
  background: var(--white); border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .85rem; max-width: 260px;
}
.hero-badge .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--rose-soft); display: grid; place-items: center; color: var(--burgundy); flex: none; }
.hero-badge .dot svg { width: 22px; height: 22px; }
.hero-badge p { margin: 0; font-size: .9rem; line-height: 1.35; font-weight: 700; }

/* Encabezado de página interior */
.page-hero { position: relative; padding: clamp(3rem, 6vw, 5rem) 0; color: var(--white); isolation: isolate; overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(90, 21, 32, .92) 0%, rgba(122, 31, 43, .7) 45%, rgba(122, 31, 43, .25) 100%); }
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.page-hero p { max-width: 52ch; font-size: 1.15rem; opacity: .92; margin: 0; }
.page-hero .eyebrow { background: rgba(255, 255, 255, .16); color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: var(--sand); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.split-media:hover img { transform: scale(1.04); }

/* Tarjetas de cualidades (inicio) */
.qualities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 900px; margin-inline: auto; }
.quality p { font-family: var(--font-display); font-size: 1.25rem !important; line-height: 1.45; }
.quality {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(122, 31, 43, .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quality:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quality .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--burgundy); margin-bottom: 1.1rem; }
.quality .icon svg { width: 26px; height: 26px; }
.quality p { margin: 0; color: var(--ink); font-size: 1.05rem; }

.quote-band { background: var(--burgundy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.quote-band::before { content: "\201C"; position: absolute; top: -.2em; left: .15em; font-family: var(--font-display); font-size: 16rem; line-height: 1; opacity: .08; }
.quote-band p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; max-width: 36ch; margin: 0 auto 1rem; }
.quote-band strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem); color: var(--rose); letter-spacing: .02em; }

/* Galería (inicio) */
.gallery-duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
.gallery-duo figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); aspect-ratio: 4 / 3; }
.gallery-duo figure:last-child { aspect-ratio: auto; }
.gallery-duo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-duo figure:hover img { transform: scale(1.04); }

/* Conócenos: misión, visión, valores */
.story-text p { font-size: 1.1rem; }
.mvv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.mvv-card { background: var(--cream); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid rgba(122, 31, 43, .08); }
.mvv-card h3 { color: var(--burgundy); display: flex; align-items: center; gap: .65rem; }
.mvv-card h3 svg { width: 28px; height: 28px; flex: none; }
.mvv-card p:last-child { margin-bottom: 0; }
.mvv-card.wide { grid-column: 1 / -1; }
.values { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.values li { background: var(--white); border: 1px solid rgba(122, 31, 43, .15); color: var(--burgundy); font-weight: 800; padding: .6rem 1.15rem; border-radius: 999px; }

/* Productos */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.brand-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.brand-card .media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.brand-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.brand-card:hover .media img { transform: scale(1.06); }
.brand-card .body { padding: 1.25rem 1.5rem 1.5rem; text-align: center; }
.brand-card .body h3 { margin: 0; color: var(--burgundy); }

/* Compromiso social */
.commit { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.commit + .commit { margin-top: 1.5rem; }
.commit-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.commit-media img { width: 100%; height: 100%; object-fit: cover; }
.commit h2 { color: var(--burgundy); }
.commit.green { background: var(--sage-soft); }
.commit.green h2 { color: var(--sage); }
.commit.green em { color: var(--sage); font-weight: 700; }
.pillars { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.pillars > li { position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: var(--cream); border-radius: var(--radius); }
.pillars > li::before {
  counter-increment: pillar; content: counter(pillar);
  position: absolute; left: 1.1rem; top: 1.15rem; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--burgundy); color: var(--white);
  font-weight: 800; font-size: .95rem;
}
.pillars { counter-reset: pillar; }
.pillars p:last-child { margin-bottom: 0; }
.sublist { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.sublist li { display: flex; gap: .6rem; align-items: flex-start; }
.sublist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); margin-top: .65em; flex: none; }
.pill-note { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--rose-soft); color: var(--burgundy); padding: .35rem .8rem; border-radius: 999px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.contact-card { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(122, 31, 43, .06); text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.contact-card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--burgundy); flex: none; }
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }
.contact-card .value { font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 800; color: var(--burgundy); word-break: break-word; margin: 0; }
.contact-card.whatsapp .icon { background: #e2f5e9; color: #1f8f4e; }
.contact-card.facebook .icon { background: #e6edfb; color: #1877f2; }
.contact-card.wide { grid-column: 1 / -1; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-text small { color: rgba(255, 255, 255, .55); }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-follow { margin-top: 1.25rem; }
.footer-follow p { margin: 0 0 .6rem; font-size: .95rem; }
.social { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social:hover { background: #1877f2; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-bottom a { color: rgba(255, 255, 255, .55); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-media { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 1rem; }
  .qualities, .brands { grid-template-columns: repeat(2, 1fr); }
  .commit { grid-template-columns: 1fr; }
  .commit-media { position: static; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 2rem); }
  .qualities, .brands, .mvv, .contact-grid, .gallery-duo { grid-template-columns: 1fr; }
  .gallery-duo figure:last-child { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .pillars > li { padding-left: 3.5rem; }
}
