/* ============================================================================
 *  Centro Óptico Sicuani — HOME ULTRA-PREMIUM (celestial-natural)
 *  Todas las clases usan prefijo .hp-  → cero conflicto con el CSS legacy.
 *  Paleta: noche índigo + neutros orgánicos + azul de marca + luz estelar.
 * ========================================================================== */
:root {
  --hp-night: #0a0f20;
  --hp-night-2: #111934;
  --hp-blue: #2539c4;
  --hp-blue-l: #6b8cff;
  --hp-ivory: #faf7f1;
  --hp-sand: #efe9dd;
  --hp-line: #e6e0d4;
  --hp-ink: #14161d;
  --hp-ink-soft: #5c6070;
  --hp-star: #cfe0ff;
  --hp-gold: #d9c38b;
  --hp-wa: #25d366;
  --hp-display: 'Newsreader', Georgia, serif;
  --hp-ui: 'Archivo', 'Outfit', system-ui, sans-serif;
  --hp-body: 'Inter', system-ui, sans-serif;
}

/* el home ocupa el ancho completo; oculta el scroll-x */
#view-home .view-home { overflow: hidden; }
#view-home img { max-width: 100%; display: block; }

/* ---------- primitivos ---------- */
.hp-eyebrow { display: inline-block; font-family: var(--hp-ui); font-weight: 600; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--hp-blue-l); margin-bottom: 1.1rem; }
.hp-eyebrow--blue { color: var(--hp-blue); }
.hp-eyebrow--star { color: var(--hp-gold); }
.hp-h2 { font-family: var(--hp-display); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.01em; color: var(--hp-ink); }
.hp-h2 em, .hp-hero__title em { font-style: italic; color: var(--hp-blue); }
.hp-h2--light { color: #fff; } .hp-h2--light em { color: var(--hp-star); }
.hp-lead { font-family: var(--hp-body); font-size: 1.05rem; line-height: 1.7; color: var(--hp-ink-soft); max-width: 60ch; }
.hp-lead--light { color: rgba(255,255,255,.72); }
.hp-link { font-family: var(--hp-ui); font-weight: 600; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hp-blue); white-space: nowrap; }
.hp-link:hover { color: var(--hp-blue-l); }

.hp-btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--hp-ui); font-weight: 600; font-size: .95rem; padding: .95rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn--sm { padding: .65rem 1.1rem; font-size: .85rem; }
.hp-btn--primary { background: var(--hp-blue); color: #fff; box-shadow: 0 10px 30px rgba(37,57,196,.35); }
.hp-btn--primary:hover { background: #1b2aa0; }
.hp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hp-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hp-btn--dark { background: var(--hp-ink); color: #fff; }
.hp-btn--dark:hover { background: #000; }
.hp-btn--wa { background: var(--hp-wa); color: #053d22; }
.hp-btn--wa:hover { background: #1ebe5d; }

.hp-section { padding: clamp(4rem, 9vw, 8rem) clamp(20px, 6vw, 96px); }
.hp-section__head { max-width: 1280px; margin: 0 auto clamp(2rem,4vw,3.5rem); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hp-section__head--center { flex-direction: column; align-items: center; text-align: center; }
.hp-section__head--center .hp-lead { margin: .8rem auto 0; text-align: center; }
.hp-inner { max-width: 1280px; margin: 0 auto; }

/* fondos */
.hp-night { background: var(--hp-night); color: #fff; position: relative; overflow: hidden; }
.hp-light { background: var(--hp-ivory); color: var(--hp-ink); }
.hp-sand { background: var(--hp-sand); color: var(--hp-ink); }

/* reveal */
.hp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.hp-reveal.in { opacity: 1; transform: none; }

/* ============================ HERO ============================ */
.hp-hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(130% 100% at 50% -10%, #1a2350 0%, var(--hp-night-2) 38%, var(--hp-night) 100%); color: #fff; overflow: hidden; padding: 96px clamp(20px,6vw,96px) 64px; }
.hp-constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hp-hero__veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 60% at 50% 45%, transparent 0%, rgba(10,15,32,.55) 100%); pointer-events: none; }
.hp-hero__inner { position: relative; z-index: 2; max-width: 920px; }
.hp-hero__title { font-family: var(--hp-display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1.4rem; }
.hp-hero__title em { color: var(--hp-star); font-style: italic; }
.hp-hero__lead { font-family: var(--hp-body); font-size: clamp(1rem,1.6vw,1.2rem); line-height: 1.7; color: rgba(255,255,255,.78); max-width: 56ch; margin: 0 auto 2.2rem; }
.hp-hero__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hp-hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--hp-ui); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hp-hero__scroll::after { content: ''; display: block; width: 1px; height: 34px; margin: 12px auto 0; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: hpScroll 2.4s ease-in-out infinite; }
@keyframes hpScroll { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================ TRUST ============================ */
.hp-trust { background: var(--hp-ink); color: #fff; padding: 1.15rem clamp(20px,6vw,96px); }
.hp-trust__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .7rem 2.6rem; align-items: center; justify-content: center; font-family: var(--hp-ui); font-size: .86rem; letter-spacing: .02em; }
.hp-trust__inner span { display: inline-flex; align-items: center; gap: .5rem; opacity: .9; }
.hp-trust__inner b { color: var(--hp-gold); font-weight: 700; }

/* ======================== COLECCIONES ========================= */
.hp-collections__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.hp-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; border-radius: 18px; overflow: hidden; padding: 1.6rem; color: #fff; isolation: isolate; transition: transform .4s ease, box-shadow .4s ease; }
.hp-cat:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20,22,29,.22); }
.hp-cat::before { content: ''; position: absolute; inset: 0; z-index: -2; transition: transform .6s ease; }
.hp-cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(8,12,28,.78) 100%); }
.hp-cat:hover::before { transform: scale(1.06); }
.hp-cat--oftalmico::before { background: linear-gradient(150deg, #2b3a8f, #0d1330); }
.hp-cat--sol::before { background: linear-gradient(150deg, #c79a52, #4a3417); }
.hp-cat--contacto::before { background: linear-gradient(150deg, #2f7d8a, #10222c); }
.hp-cat--accesorio::before { background: linear-gradient(150deg, #6b4f8f, #221634); }
.hp-cat__name { font-family: var(--hp-display); font-size: 1.5rem; font-weight: 500; }
.hp-cat__sub { font-family: var(--hp-ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .3rem; }
.hp-cat__go { margin-top: .9rem; font-family: var(--hp-ui); font-size: .8rem; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: .3s; }
.hp-cat:hover .hp-cat__go { opacity: 1; transform: none; }

/* ========================= TECNOLOGÍA ========================= */
.hp-tech { padding: clamp(4rem,9vw,8rem) clamp(20px,6vw,96px); }
.hp-tech__grid { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.hp-techcard { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 1.8rem 1.6rem; transition: transform .35s ease, background .35s, border-color .35s; }
.hp-techcard:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(107,140,255,.5); }
.hp-techcard__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(107,140,255,.25), rgba(37,57,196,.12)); margin-bottom: 1.1rem; }
.hp-techcard__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--hp-star); stroke-width: 1.6; }
.hp-techcard h3 { font-family: var(--hp-display); font-weight: 500; font-size: 1.25rem; margin-bottom: .5rem; color: #fff; }
.hp-techcard p { font-family: var(--hp-body); font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.66); }

/* =========================== PROMO ============================ */
.hp-promo { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: var(--hp-ivory); }
.hp-promo__media { position: relative; min-height: 460px; overflow: hidden; background: linear-gradient(140deg, #e7e1d4, #cdd4e6); }
.hp-promo__media video { width: 100%; height: 100%; object-fit: cover; }
.hp-promo__content { padding: clamp(2.4rem,5vw,5rem); display: flex; flex-direction: column; justify-content: center; border-left: 3px solid var(--hp-blue); }
.hp-promo__title { font-family: var(--hp-display); font-weight: 500; font-size: clamp(2.6rem,6vw,5rem); line-height: 1; letter-spacing: -.02em; margin: .4rem 0 1.1rem; }
.hp-promo__title em { font-style: italic; color: var(--hp-blue); }

/* ========================= POR QUÉ ============================ */
.hp-why__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.hp-pillar { text-align: left; }
.hp-pillar__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--hp-line); box-shadow: 0 8px 22px rgba(20,22,29,.06); margin-bottom: 1rem; }
.hp-pillar__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--hp-blue); stroke-width: 1.6; }
.hp-pillar h3 { font-family: var(--hp-display); font-weight: 500; font-size: 1.2rem; margin-bottom: .4rem; }
.hp-pillar p { font-family: var(--hp-body); font-size: .9rem; line-height: 1.6; color: var(--hp-ink-soft); }

/* ======================== TESTIMONIOS ========================= */
.hp-testi__grid { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.hp-quote { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 2rem; }
.hp-quote__stars { color: var(--hp-gold); letter-spacing: .2em; margin-bottom: .9rem; }
.hp-quote p { font-family: var(--hp-display); font-size: 1.2rem; line-height: 1.5; font-style: italic; color: rgba(255,255,255,.92); margin-bottom: 1.2rem; }
.hp-quote__who { font-family: var(--hp-ui); font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.hp-quote__who b { color: #fff; font-weight: 700; display: block; letter-spacing: 0; font-size: .95rem; }

/* =========================== SEDES ============================ */
.hp-sedes__grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.hp-sede { background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; padding: 2rem; box-shadow: 0 10px 30px rgba(20,22,29,.05); }
.hp-sede h3 { font-family: var(--hp-display); font-weight: 500; font-size: 1.4rem; margin-bottom: .8rem; }
.hp-sede p { font-family: var(--hp-body); font-size: .95rem; color: var(--hp-ink-soft); margin: .35rem 0; display: flex; gap: .55rem; }
.hp-sede__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ========================== CTA CITAS ========================= */
.hp-cta { text-align: center; padding: clamp(4rem,9vw,7rem) clamp(20px,6vw,96px); }
.hp-cta__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hp-cta h2 { font-family: var(--hp-display); font-weight: 500; font-size: clamp(2rem,5vw,3.4rem); line-height: 1.08; color: #fff; margin-bottom: 1rem; }
.hp-cta h2 em { font-style: italic; color: var(--hp-star); }
.hp-cta p { font-family: var(--hp-body); color: rgba(255,255,255,.72); margin-bottom: 2rem; }
.hp-cta__btns { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* =========================== FOOTER =========================== */
.hp-footer { background: #06090f; color: rgba(255,255,255,.66); padding: clamp(3rem,6vw,5rem) clamp(20px,6vw,96px) 2rem; }
.hp-footer__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; }
.hp-footer__brand { font-family: var(--hp-display); font-size: 1.4rem; color: #fff; margin-bottom: .7rem; }
.hp-footer h4 { font-family: var(--hp-ui); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hp-gold); margin-bottom: 1rem; }
.hp-footer p, .hp-footer a { font-family: var(--hp-body); font-size: .9rem; line-height: 1.9; color: rgba(255,255,255,.62); }
.hp-footer a:hover { color: #fff; }
.hp-news { display: flex; gap: .5rem; margin-top: .8rem; }
.hp-news input { flex: 1; padding: .7rem .9rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #fff; font-family: var(--hp-body); font-size: .88rem; }
.hp-news input:focus { outline: none; border-color: var(--hp-blue-l); }
.hp-news button { padding: .7rem 1.1rem; border-radius: 10px; background: var(--hp-blue); color: #fff; font-family: var(--hp-ui); font-weight: 600; cursor: pointer; }
.hp-footer__bottom { max-width: 1280px; margin: 2.4rem auto 0; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-family: var(--hp-body); font-size: .82rem; color: rgba(255,255,255,.45); }

/* WhatsApp flotante */
.hp-wa { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: var(--hp-wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4); transition: transform .25s; }
.hp-wa:hover { transform: scale(1.08); }
.hp-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1080px) {
  .hp-collections__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-tech__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-why__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hp-promo { grid-template-columns: 1fr; }
  .hp-promo__media { min-height: 280px; }
  .hp-tech__grid, .hp-testi__grid, .hp-sedes__grid { grid-template-columns: 1fr; }
  .hp-section__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .hp-collections__grid, .hp-why__grid, .hp-footer__grid { grid-template-columns: 1fr; }
  .hp-cat { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-reveal { opacity: 1; transform: none; transition: none; }
  .hp-hero__scroll::after { animation: none; }
  .hp-btn:hover, .hp-cat:hover, .hp-techcard:hover { transform: none; }
}
