/* ============================================================
   VICOA BRANDS — vicoabrands.cl
   Estilo Apple: limpio, full-screen, mucho espacio, fade-in al scroll.
   Negro #1D1D1F · blanco · amarillo #FFD400 (solo acento) · Inter.
   ============================================================ */

:root {
  --black: #1D1D1F;
  --white: #FFFFFF;
  --grey-light: #F5F5F7;
  --grey: #86868B;
  --grey-600: #6E6E73;
  --grey-700: #48484A;
  --yellow: #FFD400;
  --border: #E4E4E7;
  --nav-h: 60px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--yellow); color: var(--black); }

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { height: 30px; width: auto; transition: opacity 0.3s var(--ease); }
.nav__logo--black { display: none; }
.nav.scrolled .nav__logo--white { display: none; }
.nav.scrolled .nav__logo--black { display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; font-size: 14px; font-weight: 500; border-radius: 8px;
  color: rgba(255,255,255,0.9); transition: color 0.25s var(--ease), background 0.2s var(--ease);
}
.nav.scrolled .nav__links a { color: var(--grey-700); }
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a:hover { color: var(--black); }
.nav__cta {
  margin-left: 8px; background: var(--yellow); color: var(--black) !important;
  font-weight: 600 !important; padding: 9px 18px !important; border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.1s var(--ease);
}
.nav__cta:hover { background: #F0C800; }
.nav__cta:active { transform: scale(0.97); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: 0.3s var(--ease); }
.nav { color: var(--white); }
.nav.scrolled { color: var(--black); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: var(--white); overflow: hidden; padding: var(--nav-h) 24px 80px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(29,29,31,0.45) 0%, rgba(29,29,31,0.15) 38%, rgba(29,29,31,0.72) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__logo { height: 76px; width: auto; margin: 0 auto 30px; filter: drop-shadow(0 2px 18px rgba(0,0,0,0.35)); }
.hero h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 800; }
.hero__sub { margin: 22px auto 0; max-width: 580px; font-size: clamp(17px, 2.1vw, 22px); font-weight: 400; color: rgba(255,255,255,0.9); line-height: 1.45; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--yellow); border: 1px solid rgba(255,212,0,0.55);
  padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero__cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.hero__cue svg { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------------- SECTIONS ---------------- */
.section { padding: clamp(80px, 13vh, 150px) 0; }
.section--grey { background: var(--grey-light); }
.section--dark { background: var(--black); color: var(--white); }

.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.section--dark .kicker { color: var(--yellow); }
.h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; color: var(--grey-600); }
.section--dark .lead { color: rgba(255,255,255,0.7); }

/* Quiénes somos */
.about__head { max-width: 760px; }
.about__head .h2 { margin: 14px 0 18px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.pillar { border-top: 2px solid var(--black); padding-top: 20px; }
.pillar__mark { color: var(--black); margin-bottom: 16px; }
.pillar h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.pillar p { font-size: 15.5px; line-height: 1.55; color: var(--grey-600); }

/* Media feature (image + text), full-bleed image with overlay */
.feature {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.feature__bg { position: absolute; inset: 0; z-index: 0; }
.feature__bg img { width: 100%; height: 100%; object-fit: cover; }
.feature__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(29,29,31,0.1) 0%, rgba(29,29,31,0.15) 45%, rgba(29,29,31,0.82) 100%);
}
.feature__inner { position: relative; z-index: 2; width: 100%; padding: 0 0 clamp(48px, 8vh, 96px); }
.feature .kicker { color: var(--yellow); }
.feature .h2 { margin: 14px 0 16px; max-width: 760px; }
.feature__text { max-width: 580px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.88); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  background: var(--yellow); color: var(--black); font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; padding: 9px 16px; border-radius: 999px;
}

/* Marcas */
.brands__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.brands__head .h2 { margin-top: 14px; }
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand {
  background: #161618; border: 1px solid rgba(255,255,255,0.08); border-radius: 20px;
  padding: 44px 32px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.brand:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); background: #1b1b1e; }
.brand__logo { height: 92px; width: auto; object-fit: contain; margin-bottom: 28px; }
.brand p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.72); max-width: 240px; }
.brand__note { margin-top: 14px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--grey); }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--black); color: var(--white); padding: clamp(72px, 12vh, 130px) 0 48px; }
.footer__cta { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.footer__cta .h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.footer__mail {
  display: inline-block; margin-top: 26px; font-size: clamp(20px, 2.6vw, 30px); font-weight: 700;
  letter-spacing: -0.01em; border-bottom: 2px solid var(--yellow); padding-bottom: 3px;
  transition: color 0.2s var(--ease);
}
.footer__mail:hover { color: var(--yellow); }
.footer__grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer__logo { height: 30px; width: auto; }
.footer__social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__social a { font-size: 14px; color: rgba(255,255,255,0.7); padding: 6px 10px; border-radius: 8px; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.footer__social a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.footer__copy { width: 100%; margin-top: 28px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ---------------- REVEAL ANIM ---------------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

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

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 820px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px 16px; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform 0.35s var(--ease); }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { color: var(--black); padding: 14px; font-size: 16px; border-radius: 10px; }
  .nav__links a:hover { color: var(--black); }
  .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav__burger { display: block; }
  .pillars { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .brands { grid-template-columns: 1fr; }
  .feature { min-height: 78vh; }
  .footer__grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero__logo { height: 58px; }
  .hero__tag { font-size: 11px; }
}
