/* ==========================================================================
   NI PAPER — sitio propio (HTML/PHP), réplica del look real de la marca.
   Blanco, Nunito Sans, acento menta. Esquinas redondeadas, look amigable.
   ========================================================================== */

:root {
  --c-bg:        #FFFFFF;
  --c-bg-soft:   #F7F7F7;
  --c-ink:       #333333;
  --c-text:      #696969;
  --c-muted:     #9a9a9a;
  --c-line:      #ececec;
  --c-accent:    #79C4B4;
  --c-accent-dk: #5da997;
  --c-wa:        #25D366;
  --c-black:     #000000;

  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 60px);

  --shadow: 0 10px 30px rgba(0,0,0,.07);
  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--c-ink); margin: 0; font-weight: 800; }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(48px, 6vw, 84px) var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.center { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: none; border-radius: var(--radius);
  font-weight: 700; font-size: 15px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dk); }
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.btn--wa { background: var(--c-wa); color: #fff; }
.btn--wa:hover { background: #1ebe59; }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--block { width: 100%; }

.link-underline { text-decoration: underline; text-underline-offset: 3px; font-style: italic; }

/* ============================================================= TOPBAR === */
.topbar { background: var(--c-black); color: #fff; font-size: 13px; }
.topbar__inner {
  max-width: var(--max-w); margin-inline: auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.topbar__item { color: #fff; }
.topbar__item--accent { color: var(--c-accent); font-weight: 700; }
@media (max-width: 760px) {
  .topbar__inner { justify-content: center; }
  .topbar__item--hide-sm { display: none; }
}

/* =========================================================== HEADER === */
.site-header { background: #fff; position: relative; z-index: 50; border-bottom: 1px solid var(--c-line); }
.site-header__row {
  max-width: var(--max-w); margin-inline: auto; padding: 20px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.social-row { display: flex; gap: 16px; align-items: center; color: #b0b0b0; }
.social-row a { color: #b0b0b0; transition: color .2s ease; }
.social-row a:hover { color: var(--c-accent); }
.social-row--footer { justify-content: center; margin: 14px 0; color: var(--c-ink); }
.social-row--footer a { color: var(--c-ink); }

.site-header__logo { justify-self: center; }
.site-header__logo img { height: 78px; width: auto; }

.site-header__cta {
  justify-self: end;
  background: var(--c-accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  transition: background .2s ease;
}
.site-header__cta:hover { background: var(--c-accent-dk); }

.nav__burger { display: none; justify-self: end; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--c-ink); display: block; }

.mainnav {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px);
  padding: 0 var(--gutter) 18px; max-width: var(--max-w); margin-inline: auto;
  font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  position: relative;
}
.mainnav > a { padding: 6px 0; color: var(--c-ink); border-bottom: 2px solid transparent; transition: border-color .2s ease, color .2s ease; }
.mainnav > a:hover, .mainnav > a.is-active { border-color: var(--c-accent); }
.mainnav__drop { position: relative; }
.mainnav__drop-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font: inherit; color: var(--c-ink); text-transform: uppercase; letter-spacing: .03em; padding: 6px 0; }
.mainnav__drop-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 10px 0; min-width: 200px; display: none; flex-direction: column;
  text-transform: none; font-weight: 600; letter-spacing: normal; z-index: 60;
}
.mainnav__drop:hover .mainnav__drop-panel,
.mainnav__drop.is-open .mainnav__drop-panel { display: flex; }
.mainnav__drop-panel a { padding: 10px 20px; color: var(--c-text); }
.mainnav__drop-panel a:hover { background: var(--c-bg-soft); color: var(--c-ink); }

@media (max-width: 900px) {
  .site-header__row { grid-template-columns: auto 1fr auto; }
  .social-row { display: none; }
  .site-header__cta { display: none; }
  .nav__burger { display: flex; }
  .mainnav {
    display: none; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 10px var(--gutter) 20px;
  }
  .mainnav.is-open { display: flex; }
  .mainnav__drop { width: 100%; }
  .mainnav__drop-panel { position: static; transform: none; box-shadow: none; padding-left: 12px; display: none; }
  .mainnav__drop.is-open .mainnav__drop-panel { display: flex; }
}

/* ============================================================== HERO === */
.hero-grid {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1px; background: var(--c-line);
  max-width: var(--max-w); margin: var(--gutter) auto 0; border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.promo-card {
  position: relative; background: var(--c-bg); padding: 28px; display: flex; flex-direction: column;
  min-height: 320px; overflow: hidden;
}
.promo-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.promo-card__title { font-size: 26px; font-weight: 800; margin: 10px 0 14px; }
.promo-card__img { margin-top: auto; }
.promo-card__img img { width: 100%; border-radius: var(--radius); }

.carousel { position: relative; background: var(--c-bg-soft); overflow: hidden; }
.carousel__track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.carousel__slide { flex: 0 0 100%; position: relative; min-height: 320px; }
.carousel__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.carousel__kicker { font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.carousel__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); margin: 10px 0 20px; }
.carousel__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0; }
.carousel__dot.is-on { background: #fff; }

.promo-stack { display: flex; flex-direction: column; }
.promo-tile { position: relative; flex: 1; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; background: var(--c-bg); }
.promo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.promo-tile__content { position: relative; z-index: 1; }
.promo-tile--overlay { color: #fff; }
.promo-tile--overlay .promo-tile__content { background: rgba(0,0,0,.3); padding: 20px; }
.promo-tile__title { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.promo-tile__price { font-size: 22px; font-weight: 800; margin-top: 6px; }

/* ======================================================== INTRO TEXT === */
.intro-text { max-width: 900px; margin: 0 auto; text-align: center; font-size: 17px; }

/* ============================================================= CARDS === */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--tight { gap: 18px; }
.card {
  background: var(--c-bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.card__media { aspect-ratio: 4/5; overflow: hidden; background: var(--c-bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 18px; }
.card__body p { margin: 0; font-size: 14.5px; }
.card__price { font-weight: 800; color: var(--c-ink); font-size: 17px; margin-top: auto; }
.card__cta { margin-top: 10px; }

/* ============================================================ BANNER === */
.banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; min-height: 300px; padding: 40px;
  max-width: var(--max-w); margin: 0 auto;
}
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 1; }
.banner__content { position: relative; z-index: 2; color: #fff; max-width: 460px; }
.banner__content .eyebrow { color: rgba(255,255,255,.85); }
.banner__content h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin: 12px 0 18px; }
.banner--soft { background: var(--c-bg-soft); }
.banner--soft .banner__content { color: var(--c-ink); }
.banner--soft .banner__content .eyebrow { color: var(--c-muted); }
.banner--soft .banner__content h2 { color: var(--c-ink); }

/* =================================================== VIDEO / PROCESO === */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--max-w); margin: 0 auto; }
.video-tile {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0;
  background: var(--c-bg-soft); border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; font: inherit;
}
.video-tile img { width: 100%; height: 100%; object-fit: cover; }
.video-tile__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15); transition: background .2s ease;
}
.video-tile:hover .video-tile__play { background: rgba(0,0,0,.3); }
.video-tile__play span {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; color: var(--c-accent);
  font-size: 18px; padding-left: 3px; transition: transform .2s ease;
}
.video-tile:hover .video-tile__play span { transform: scale(1.08); }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* ========================================================= VIDEO MODAL === */
.video-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.video-modal__box { position: relative; z-index: 1; width: 100%; max-width: 900px; }
.video-modal__close {
  position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 8px;
}
.video-modal__frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ========================================================= WAITLIST === */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: var(--max-w); margin: 0 auto; }
@media (max-width: 760px) { .split2 { grid-template-columns: 1fr; } }
.panel { background: var(--c-bg-soft); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.panel--dark { background: var(--c-ink); color: #fff; }
.panel--dark h3, .panel--dark .eyebrow { color: #fff; }
.panel__count { font-size: 42px; font-weight: 800; color: var(--c-accent); margin: 14px 0; }

/* ============================================================== FAQ === */
.faq-item { border-top: 1px solid var(--c-line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 700; color: var(--c-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__mark { font-weight: 400; font-size: 22px; color: var(--c-accent); flex: none; transition: transform .3s ease; }
.faq-item[open] .faq-item__mark { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; max-width: 68ch; }

/* ======================================================= PAGE HEADER === */
.pagehead { position: relative; background: var(--c-bg-soft); min-height: 240px; display: flex; align-items: center; overflow: hidden; }
.pagehead__bg { position: absolute; right: 0; top: 0; height: 100%; width: 45%; object-fit: cover; opacity: .95; }
.pagehead__inner { position: relative; z-index: 2; max-width: var(--max-w); margin-inline: auto; width: 100%; padding: 40px var(--gutter); }
.pagehead h1 { font-size: clamp(34px, 5vw, 52px); }
.pagehead__crumb { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); }
.pagehead__crumb a { color: var(--c-muted); }
.pagehead__crumb span.is-current { color: var(--c-ink); text-decoration: underline; }
@media (max-width: 700px) { .pagehead__bg { display: none; } }

/* =========================================================== CONTACT === */
.contact-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: var(--max-w); margin: 0 auto; text-align: center; }
.contact-points > div { padding: 0 20px; }
.contact-points svg { color: var(--c-accent); margin-bottom: 12px; }
.contact-points h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

.showroom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: var(--max-w); margin: 0 auto; }
.showroom-card h3 { font-size: 18px; margin-bottom: 8px; }
.showroom-card .city { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); }
.showroom-card p { margin: 6px 0 0; font-size: 14px; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; max-width: var(--max-w); margin: 0 auto; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* =========================================================== CONTACT FORM === */
.formcard { background: var(--c-bg-soft); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #ddd; border-radius: var(--radius);
  padding: 12px 14px; font-size: 15px; color: var(--c-ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }
.banner-msg { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 14.5px; max-width: var(--max-w); margin-inline: auto; }
.banner-msg--ok { background: #e4f6f1; color: #206b53; }
.banner-msg--err { background: #fde8e8; color: #9e2e22; }

/* ============================================================ FOOTER === */
.site-footer { background: #fff; padding-top: 40px; }
.site-footer__strip { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: end; gap: 0; max-width: 1400px; margin: 0 auto; }
.site-footer__col img { width: 100%; height: 260px; object-fit: cover; }
.site-footer__col--center { display: flex; flex-direction: column; align-items: center; padding: 0 20px 20px; }
.site-footer__logo { height: 120px; width: auto; margin-bottom: 6px; }
.newsletter { display: flex; width: 100%; max-width: 320px; border: 1px solid #ddd; border-radius: var(--radius-pill); overflow: hidden; margin-top: 10px; }
.newsletter input { flex: 1; border: none; padding: 10px 16px; font-size: 14px; }
.newsletter button { border: none; background: var(--c-ink); color: #fff; padding: 0 18px; cursor: pointer; }
@media (max-width: 760px) { .site-footer__strip { grid-template-columns: 1fr; } .site-footer__col img { height: 160px; } .site-footer__col--center { order: -1; } }

.site-footer__bottom { text-align: center; font-size: 13px; color: var(--c-muted); padding: 26px var(--gutter) 30px; }
.site-footer__bottom a { color: var(--c-accent); font-weight: 700; }

/* ============================================================ WA FLOAT === */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 56px; height: 56px; border-radius: 50%; background: var(--c-wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); }

/* ============================================================== SPLIT === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; max-width: var(--max-w); margin: 0 auto; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.split ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.split ul li { padding-left: 22px; position: relative; font-size: 14.5px; }
.split ul li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 700; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* ============================================================ REVEAL === */
[data-reveal] { will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
