/* =====================================================================
   CI NUBANA — SITIO CORPORATIVO
   Sistema de diseño propio (paleta azul tecnología). No depende de
   Bootstrap ni de app.css — hoja de estilos independiente y liviana.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blue-900: #071227;
  --blue-800: #0a1e42;
  --blue-700: #0e3169;
  --blue-600: #1051d6;
  --blue-500: #2f74fb;
  --blue-100: #e8f0ff;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --bg: #f3f6fc;
  --surface: #ffffff;
  --text: #101828;
  --text-muted: #5b6577;
  --border: #e3e8f2;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 30, 66, 0.06);
  --shadow: 0 10px 28px rgba(10, 30, 66, 0.10);
  --container: 1240px;
  --font-body: "Montserrat", Arial, sans-serif;
  --font-head: "Poppins", "Montserrat", Arial, sans-serif;
}

/* ---------- Reset ---------- */
.tienda * { box-sizing: border-box; }
.tienda {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.tienda img { max-width: 100%; display: block; }
.tienda a { text-decoration: none; color: inherit; }
.tienda ul { list-style: none; margin: 0; padding: 0; }
.tienda button { font-family: inherit; cursor: pointer; }
.tienda h1, .tienda h2, .tienda h3, .tienda h4 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--blue-900);
}

.tn-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================================
   LOGO (texto, para verse bien sobre fondos azules/oscuros)
   ===================================================================== */
.tn-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
}
.tn-logo__mark {
  width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  margin-right: 3px;
}
.tn-logo__accent { color: var(--cyan-400); }
.tn-logo--footer { font-size: 21px; margin-bottom: 14px; }

/* =====================================================================
   NAVBAR — una sola fila, corporativo
   ===================================================================== */
.tn-navbar {
  background: var(--blue-600);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-sm);
}
.tn-navbar__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.tn-header__burger {
  display: none;
  width: 36px; height: 36px; border: 0; background: transparent;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.tn-header__burger svg { width: 24px; height: 24px; stroke: #fff; }

.tn-navbar__nav { display: flex; align-items: center; gap: 4px; }
.tn-navbar__nav a {
  color: #eaf1ff; font-size: 14px; font-weight: 600;
  padding: 9px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
.tn-navbar__nav a:hover, .tn-navbar__nav a.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; }

.tn-navbar__right { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.tn-navbar__phone { display: flex; align-items: center; gap: 8px; color: #fff; }
.tn-navbar__phone svg { width: 18px; height: 18px; stroke: #fff; flex-shrink: 0; }
.tn-navbar__phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.tn-navbar__phone-text small { font-size: 11px; color: #cfe0ff; }
.tn-navbar__phone-text span { font-size: 13.5px; font-weight: 700; }

.tn-btn-wsp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue-700); font-weight: 700; font-size: 13.5px;
  padding: 10px 18px; border-radius: 999px;
}
.tn-btn-wsp:hover { background: var(--blue-100); }
.tn-btn-wsp svg { width: 17px; height: 17px; stroke: var(--blue-700); }

/* Drawer lateral (mobile) */
.tn-drawer-overlay {
  position: fixed; inset: 0; background: rgba(7, 18, 39, 0.55);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.tn-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.tn-drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(320px, 84vw);
  background: var(--surface); z-index: 91;
  transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.tn-drawer.is-open { transform: translateX(0); }
.tn-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: var(--blue-900); color: #fff;
}
.tn-drawer__head button { background: none; border: 0; }
.tn-drawer__head button svg { width: 22px; height: 22px; stroke: #fff; }
.tn-drawer__list { padding: 10px; overflow-y: auto; flex: 1; }
.tn-drawer__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500;
}
.tn-drawer__list a:hover { background: var(--blue-100); }
.tn-drawer__list svg { width: 19px; height: 19px; stroke: var(--blue-600); flex-shrink: 0; }
.tn-drawer__foot { padding: 16px 20px; border-top: 1px solid var(--border); }

/* =====================================================================
   HERO / CARRUSEL PRINCIPAL
   ===================================================================== */
.tn-hero { position: relative; background: var(--blue-900); overflow: hidden; }
.tn-hero__track { display: flex; transition: transform .5s ease; }
.tn-hero__slide {
  min-width: 100%;
  height: clamp(280px, 42vw, 520px);
  position: relative;
}
.tn-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.tn-hero__caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(7,18,39,.78) 0%, rgba(7,18,39,.35) 55%, rgba(7,18,39,.1) 100%);
}
.tn-hero__caption .tn-container { width: 100%; }
.tn-hero__caption h6 {
  color: var(--cyan-400); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 10px;
}
.tn-hero__caption h2 {
  color: #fff; font-size: clamp(24px, 4vw, 44px); font-weight: 600; max-width: 620px; line-height: 1.2;
}
.tn-hero__caption h2 b { font-weight: 800; }
.tn-hero__caption .tn-btn { margin-top: 22px; }

.tn-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.9); display: grid; place-items: center; z-index: 5;
}
.tn-hero__arrow svg { width: 18px; height: 18px; stroke: var(--blue-900); }
.tn-hero__arrow--prev { left: 18px; }
.tn-hero__arrow--next { right: 18px; }

.tn-hero__dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 5; }
.tn-hero__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; }
.tn-hero__dots button.is-active { background: #fff; width: 22px; border-radius: 4px; }

/* =====================================================================
   FRANJA DE CONFIANZA (texto infinito)
   ===================================================================== */
.tn-ticker {
  background: var(--blue-600);
  background-image: linear-gradient(90deg, var(--blue-700), var(--blue-600), var(--cyan-500));
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0;
}
.tn-ticker__track { display: inline-flex; animation: tn-marquee 26s linear infinite; }
.tn-ticker__track span {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 13.5px; padding: 0 28px;
}
.tn-ticker__track span::before { content: "★"; color: var(--cyan-400); }
@keyframes tn-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   SECCIONES — encabezado genérico
   ===================================================================== */
.tn-section { padding: 56px 0; }
.tn-section--tight { padding: 40px 0; }
.tn-section__head { margin-bottom: 28px; }
.tn-section__eyebrow { color: var(--blue-600); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tn-section__head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-top: 6px; }
.tn-section__head p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; max-width: 560px; }

/* =====================================================================
   CATEGORÍAS DESTACADAS (3 tarjetas)
   ===================================================================== */
.tn-featcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tn-featcat {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; position: relative;
}
.tn-featcat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tn-featcat__img { aspect-ratio: 4/3; overflow: hidden; }
.tn-featcat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tn-featcat:hover .tn-featcat__img img { transform: scale(1.05); }
.tn-featcat h3 { font-size: 16px; padding: 16px 18px; }

/* =====================================================================
   ACERCA DE NOSOTROS (imagen + tabs)
   ===================================================================== */
.tn-about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tn-about__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.tn-tabs__nav { display: flex; gap: 22px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tn-tabs__nav button {
  border: 0; background: none; padding: 10px 2px 14px; margin-bottom: -2px;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.tn-tabs__nav button.is-active { color: var(--blue-700); border-color: var(--blue-600); }
.tn-tabs__panel { display: none; }
.tn-tabs__panel.is-active { display: block; }
.tn-tabs__panel p { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.tn-tabs__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* =====================================================================
   BOTONES
   ===================================================================== */
.tn-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-600); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 12px 24px; border-radius: 999px; border: 0;
}
.tn-btn:hover { background: var(--blue-700); }
.tn-btn--outline { background: transparent; color: var(--blue-700); border: 1.5px solid var(--border); }
.tn-btn--outline:hover { border-color: var(--blue-600); background: var(--blue-100); }

/* =====================================================================
   NUESTROS SERVICIOS (grid de features)
   ===================================================================== */
.tn-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tn-feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.tn-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tn-feature__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100);
  display: grid; place-items: center; margin-bottom: 16px;
}
.tn-feature__icon svg { width: 23px; height: 23px; stroke: var(--blue-600); }
.tn-feature h4 { font-size: 15.5px; margin-bottom: 7px; }
.tn-feature p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* =====================================================================
   TOP VENTAS (tarjetas horizontales de producto)
   ===================================================================== */
.tn-productrow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tn-product {
  display: flex; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.tn-product__img { width: 44%; flex-shrink: 0; }
.tn-product__img img { width: 100%; height: 100%; object-fit: cover; }
.tn-product__body { padding: 24px; display: flex; flex-direction: column; }
.tn-product h3 { font-size: 17px; margin-bottom: 8px; }
.tn-product__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.tn-product__rating svg { width: 14px; height: 14px; fill: #f5a623; }
.tn-product__rating span { font-size: 12.5px; color: var(--text-muted); margin-left: 4px; }
.tn-product p.tn-product__text { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.tn-product__price { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.tn-product__price strong { font-size: 20px; font-weight: 800; color: var(--blue-700); display: block; }
.tn-product .tn-btn { align-self: flex-start; margin-top: auto; }

/* =====================================================================
   BANNER PARALLAX / CTA
   ===================================================================== */
.tn-cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center;
}
.tn-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tn-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,18,39,.55), rgba(7,18,39,.85)); z-index: 1; }
.tn-cta__content { position: relative; z-index: 2; max-width: 680px; padding: 40px 24px; }
.tn-cta h2 { color: #fff; font-size: clamp(24px, 3.6vw, 36px); font-weight: 600; }
.tn-cta h2 b { font-weight: 800; display: block; }
.tn-cta p { color: #d7e2f7; font-size: 14px; margin-top: 16px; line-height: 1.7; }
.tn-cta .tn-btn { margin-top: 24px; }

/* =====================================================================
   GALERÍA "QUIZÁS TE INTERESE"
   ===================================================================== */
.tn-gallery { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.tn-gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; }
.tn-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tn-gallery a:hover img { transform: scale(1.08); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.tn-footer { background: var(--blue-900); color: #b9c6e0; margin-top: 0; }
.tn-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding: 46px 0 30px;
}
.tn-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.tn-footer p { font-size: 13px; line-height: 1.6; color: #a9b7d3; }
.tn-footer ul li { margin-bottom: 9px; font-size: 13px; }
.tn-footer ul a:hover { color: #fff; }
.tn-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.tn-footer__social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.tn-footer__social svg { width: 16px; height: 16px; fill: #fff; }
.tn-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0; font-size: 12px; color: #8494b3; text-align: center;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .tn-navbar__nav { display: none; }
}

@media (max-width: 991px) {
  .tn-featcats { grid-template-columns: repeat(3, 1fr); }
  .tn-about { grid-template-columns: 1fr; gap: 28px; }
  .tn-features { grid-template-columns: repeat(2, 1fr); }
  .tn-productrow { grid-template-columns: 1fr; }
  .tn-footer__grid { grid-template-columns: 1fr 1fr; }
  .tn-gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .tn-navbar__inner { height: 60px; gap: 10px; }
  .tn-logo { font-size: 16px; }
  .tn-header__burger { display: flex; }
  .tn-navbar__phone-text { display: none; }
  .tn-btn-wsp span { display: none; }
  .tn-btn-wsp { padding: 10px; }

  .tn-section { padding: 38px 0; }
  .tn-hero__slide { height: clamp(240px, 60vw, 360px); }
  .tn-hero__caption p { display: none; }

  .tn-featcats { grid-template-columns: repeat(2, 1fr); }
  .tn-featcats > :first-child { grid-column: 1 / -1; }
  .tn-features { grid-template-columns: 1fr; }
  .tn-product { flex-direction: column; }
  .tn-product__img { width: 100%; height: 190px; }
  .tn-gallery { grid-template-columns: repeat(3, 1fr); }
  .tn-footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 20px; }
}
