/* ==========================================

   NIVEX TECH - DISEÑO CORPORATIVO PREMIUM

   CSS COMPLETO + GALERÍAS DE PROYECTOS

   ========================================== */

:root {
  --navy: #081523;

  --navy-2: #0d2032;

  --navy-3: #122b40;

  --cyan: #48dce9;

  --cyan-light: #9bf5f5;

  --ink: #172638;

  --muted: #667487;

  --paper: #ffffff;

  --soft: #f3f7fa;

  --line: #e2e9ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  scroll-padding-top: 90px;
}

body {
  margin: 0;

  font:
    16px/1.7 system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;

  color: var(--ink);

  background: var(--paper);

  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;

  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));

  margin-inline: auto;
}

.skip {
  position: absolute;

  left: -9999px;

  top: 10px;

  z-index: 100;

  padding: 10px;

  background: white;
}

.skip:focus {
  left: 10px;
}

:focus-visible {
  outline: 3px solid var(--cyan);

  outline-offset: 4px;
}

::selection {
  background: var(--cyan);

  color: var(--navy);
}

/* ==========================================

   ENCABEZADO Y LOGO

   ========================================== */

.site-header {
  position: sticky;

  top: 0;

  z-index: 50;

  background: rgba(8, 21, 35, 0.96);

  border-bottom: 1px solid rgba(72, 220, 233, 0.12);

  backdrop-filter: blur(18px);

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.nav-wrap {
  min-height: 82px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 30px;
}

.brand {
  display: flex;

  align-items: center;

  gap: 12px;

  color: white;

  flex-shrink: 0;
}

.brand-symbol {
  width: 48px;

  height: 48px;

  display: grid;

  place-items: center;

  border: 1px solid rgba(72, 220, 233, 0.45);

  border-radius: 12px;

  background: linear-gradient(145deg, #173b50, #0b1c2b);

  font-size: 25px;

  font-weight: 900;

  color: var(--cyan);

  box-shadow: 0 0 25px rgba(72, 220, 233, 0.12);
}

.brand-name {
  font-size: 19px;

  font-weight: 850;

  letter-spacing: -0.7px;

  line-height: 1.2;
}

.brand-name strong {
  color: var(--cyan);
}

.brand-name small {
  display: block;

  font-size: 9px;

  font-weight: 550;

  letter-spacing: 2px;

  color: #91a8ba;

  margin-top: 5px;
}

.nav {
  display: flex;

  align-items: center;

  gap: 31px;
}

.nav a {
  color: #c8d6e3;

  font-size: 13px;

  font-weight: 650;

  transition: color 0.25s;

  white-space: nowrap;
}

.nav a:hover {
  color: var(--cyan);
}

.nav .nav-contact {
  padding: 12px 20px;

  border-radius: 6px;

  background: var(--cyan);

  color: var(--navy);
}

.nav .nav-contact:hover {
  background: var(--cyan-light);

  color: var(--navy);
}

.nav-contact span {
  margin-left: 8px;
}

.menu-toggle {
  display: none;

  width: 44px;

  height: 44px;

  border: 1px solid #365166;

  border-radius: 7px;

  background: transparent;

  cursor: pointer;

  padding: 10px;
}

.menu-toggle span {
  display: block;

  height: 2px;

  margin: 5px 0;

  background: white;
}

/* ==========================================

   PORTADA PREMIUM - NOTEBOOK

   ========================================== */

.hero {
  position: relative;

  isolation: isolate;

  overflow: hidden;

  min-height: 690px;

  display: flex;

  align-items: center;

  background: linear-gradient(115deg, #071624, #0a2336);

  color: white;
}

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      90deg,
      rgba(5, 17, 30, 0.94) 0%,

      rgba(5, 17, 30, 0.8) 27%,

      rgba(5, 17, 30, 0.22) 55%,

      rgba(5, 17, 30, 0.03) 100%
    ),
    url("../assets/notebook-premium.png");

  background-repeat: no-repeat;

  background-size: cover;

  background-position: center center;
}

.hero-grid-overlay {
  position: absolute;

  inset: 0;

  z-index: 0;

  opacity: 0.12;

  background-image:
    linear-gradient(rgba(111, 183, 204, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 183, 204, 0.1) 1px, transparent 1px);

  background-size: 64px 64px;

  pointer-events: none;
}

.hero-glow {
  position: absolute;

  z-index: 0;

  width: 560px;

  height: 560px;

  border-radius: 50%;

  background: rgba(16, 177, 204, 0.1);

  filter: blur(95px);

  right: -130px;

  top: 10%;

  pointer-events: none;
}

.hero-layout {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns: 1.04fr 1fr;

  align-items: center;

  gap: 36px;

  padding: 90px 0 100px;
}

.hero-copy {
  position: relative;

  z-index: 3;
}

.hero-kicker,
.eyebrow {
  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2.3px;
}

.hero-kicker {
  color: #a5eaf0;

  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 28px;
}

.status-dot {
  display: inline-block;

  width: 7px;

  height: 7px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--cyan);

  box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
  font-size: clamp(43px, 4.4vw, 68px);

  line-height: 1.13;

  letter-spacing: -2.8px;

  font-weight: 850;

  margin: 0 0 25px;

  text-shadow: 0 4px 22px rgba(2, 12, 22, 0.35);
}

.hero h1 span {
  display: block;

  color: var(--cyan);
}

.hero-description {
  max-width: 540px;

  font-size: 16px;

  line-height: 1.9;

  color: #d0dce7;

  margin-bottom: 32px;

  text-shadow: 0 2px 10px rgba(2, 12, 22, 0.35);
}

.hero-actions {
  display: flex;

  gap: 13px;

  flex-wrap: wrap;
}

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 15px;

  min-height: 49px;

  padding: 12px 20px;

  font-size: 13px;

  font-weight: 750;

  border-radius: 5px;

  transition:
    transform 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--cyan);

  color: #071b27;
}

.button-primary:hover {
  background: var(--cyan-light);
}

.button-outline {
  border: 1px solid #456175;

  color: white;

  background: rgba(8, 21, 35, 0.28);
}

.button-outline:hover {
  border-color: var(--cyan);
}

.hero-bottom {
  margin-top: 58px;

  display: flex;

  align-items: center;

  gap: 15px;

  color: #a6c2d3;

  font-size: 10px;

  letter-spacing: 1.8px;

  font-weight: 700;
}

.hero-bottom-line {
  width: 32px;

  height: 1px;

  background: var(--cyan);
}

.hero-edge {
  position: absolute;

  z-index: 3;

  bottom: 0;

  left: 0;

  width: 100%;

  height: 3px;

  background: linear-gradient(90deg, transparent, var(--cyan), transparent);

  opacity: 0.55;
}

/* ==========================================

   ELEMENTOS FLOTANTES

   ========================================== */

.hero-visual {
  position: relative;

  min-width: 0;
}

.premium-visual {
  min-height: 465px;

  pointer-events: none;
}

.orbit {
  position: absolute;

  border: 1px solid rgba(72, 220, 233, 0.13);

  border-radius: 50%;

  pointer-events: none;
}

.orbit-one {
  width: 490px;

  height: 490px;

  left: 5%;

  top: 0;
}

.orbit-two {
  width: 340px;

  height: 340px;

  left: 19%;

  top: 14%;
}

.premium-visual .orbit {
  opacity: 0.22;
}

.premium-visual-glow {
  position: absolute;

  inset: 15% 5% 0;

  border-radius: 50%;

  background: rgba(72, 220, 233, 0.08);

  filter: blur(55px);
}

.floating-tag {
  position: absolute;

  z-index: 3;

  display: flex;

  align-items: center;

  gap: 9px;

  padding: 11px 14px;

  border: 1px solid rgba(72, 220, 233, 0.35);

  border-radius: 7px;

  background: rgba(11, 32, 48, 0.92);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);

  color: #d7f7f9;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1px;

  backdrop-filter: blur(12px);
}

.tag-icon {
  font-size: 18px;

  color: var(--cyan);
}

.premium-visual .tag-top {
  top: 9%;

  right: 0;

  animation: premiumTagFloat 5s ease-in-out infinite;
}

.premium-visual .tag-bottom {
  bottom: 7%;

  left: 3%;

  animation: premiumTagFloat 5.5s ease-in-out infinite reverse;
}

.visual-caption {
  margin: 0;

  position: absolute;

  bottom: 0;

  right: 10%;

  color: #9bb6c9;

  font-size: 9px;

  letter-spacing: 2px;
}

@keyframes premiumTagFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* ==========================================

   SECCIONES GENERALES

   ========================================== */

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 770px;

  margin-bottom: 50px;
}

.eyebrow {
  color: #168b9b;

  margin: 0 0 17px;
}

.section h2 {
  font-size: clamp(34px, 4.2vw, 55px);

  font-weight: 820;

  letter-spacing: -2px;

  line-height: 1.19;

  margin: 0 0 22px;
}

.section h2 em {
  font-style: normal;

  color: #159aaa;
}

.section-intro {
  max-width: 650px;

  font-size: 16px;

  line-height: 1.9;

  color: var(--muted);
}

/* ==========================================

   SERVICIOS

   ========================================== */

.services-section {
  background:
    radial-gradient(
      circle at 100% 0,

      rgba(72, 220, 233, 0.07),
      transparent 40%
    ),
    #ffffff;
}

.services-showcase {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 65px;

  align-items: start;
}

.service-detail {
  border-bottom: 1px solid var(--line);

  transition: border-color 0.3s;
}

.service-detail:first-child {
  border-top: 1px solid var(--line);
}

.service-detail[open] {
  border-color: #87dce3;
}

.service-detail summary {
  display: flex;

  align-items: center;

  gap: 20px;

  padding: 23px 0;

  cursor: pointer;

  list-style: none;

  font-size: 17px;

  font-weight: 750;
}

.service-detail summary::-webkit-details-marker {
  display: none;
}

.service-number {
  color: #159aaa;

  font-size: 12px;

  font-weight: 800;
}

.detail-plus {
  margin-left: auto;

  font-size: 23px;

  font-weight: 350;

  color: #1695a5;

  transition: transform 0.3s;
}

.service-detail[open] .detail-plus {
  transform: rotate(45deg);
}

.service-detail p {
  padding: 0 30px 23px 40px;

  margin: 0;

  font-size: 14px;

  line-height: 1.85;

  color: var(--muted);
}

.service-feature {
  position: sticky;

  top: 110px;

  min-height: 475px;

  padding: 35px;

  overflow: hidden;

  border-radius: 10px;

  background:
    radial-gradient(
      circle at 70% 25%,

      rgba(72, 220, 233, 0.13),
      transparent 45%
    ),
    linear-gradient(145deg, #0a1b2b, #102c40);

  color: white;
}

.feature-orbit {
  display: grid;

  place-items: center;

  width: 170px;

  height: 170px;

  margin: 0 auto 20px;

  border: 1px solid rgba(72, 220, 233, 0.23);

  border-radius: 50%;

  box-shadow:
    0 0 0 30px rgba(72, 220, 233, 0.025),
    0 0 0 60px rgba(72, 220, 233, 0.025);
}

.feature-orbit span {
  display: grid;

  place-items: center;

  width: 105px;

  height: 105px;

  border: 1px solid rgba(72, 220, 233, 0.45);

  border-radius: 50%;

  font-size: 32px;

  font-weight: 850;

  color: var(--cyan);
}

.service-feature .eyebrow {
  color: var(--cyan);
}

.service-feature h3 {
  font-size: 29px;

  line-height: 1.3;

  letter-spacing: -0.7px;
}

.service-feature h3 em {
  font-style: normal;

  color: var(--cyan);
}

.service-feature p:not(.eyebrow) {
  color: #afc4d3;

  font-size: 14px;
}

.text-link {
  display: inline-block;

  margin-top: 15px;

  color: var(--cyan);

  font-weight: 750;

  font-size: 13px;
}

/* ==========================================

   PROYECTOS

   ========================================== */

.projects-section {
  background:
    radial-gradient(
      circle at 15% 70%,

      rgba(30, 132, 161, 0.06),
      transparent 35%
    ),
    #f2f6f9;
}

.projects-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 30px;

  align-items: stretch;
}

.project-card {
  display: flex;

  flex-direction: column;

  min-width: 0;

  overflow: hidden;

  background: white;

  border: 1px solid #dce7ed;

  border-radius: 14px;

  box-shadow: 0 20px 55px rgba(8, 21, 35, 0.07);

  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 25px 60px rgba(14, 34, 52, 0.11);
}

.project-content {
  flex: 1;

  padding: 30px;
}

.project-topline {
  display: flex;

  justify-content: space-between;

  gap: 10px;

  align-items: center;

  flex-wrap: wrap;

  font-size: 10px;

  letter-spacing: 1.1px;

  font-weight: 800;

  color: #138b9c;
}

.project-status {
  padding: 5px 9px;

  border: 1px solid #cce9e5;

  background: #edf9f6;

  color: #23836f;

  border-radius: 4px;

  font-size: 9px;
}

.project-content h3 {
  margin: 20px 0 10px;

  font-size: 26px;

  letter-spacing: -0.7px;
}

.project-content p {
  color: var(--muted);

  font-size: 14px;
}

.project-meta {
  display: flex;

  flex-direction: column;

  gap: 5px;

  padding-top: 18px;

  margin-top: 25px;

  border-top: 1px solid var(--line);

  color: #77889a;

  font-size: 11px;
}

.fineprint {
  color: #8290a0;

  font-size: 12px;

  margin-top: 23px;
}

/* ==========================================

   GALERÍAS PREMIUM DE PROYECTOS

   ========================================== */

.project-carousel {
  position: relative;

  padding: 28px 22px 20px;

  background:
    radial-gradient(
      circle at 50% 25%,

      rgba(72, 220, 233, 0.19),
      transparent 65%
    ),
    linear-gradient(145deg, #071523, #102d42);

  outline-offset: -4px;
}

.carousel-frame {
  position: relative;

  overflow: hidden;

  border: 7px solid #172b3d;

  border-radius: 13px;

  background: #081523;

  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(72, 220, 233, 0.17);
}

.carousel-frame-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  min-height: 38px;

  padding: 8px 12px;

  border-bottom: 1px solid rgba(72, 220, 233, 0.13);

  background: #0b1b2a;
}

.carousel-frame-dots {
  display: flex;

  align-items: center;

  gap: 5px;

  flex-shrink: 0;
}

.carousel-frame-dots span {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #52697a;
}

.carousel-frame-dots span:first-child {
  background: #e66b72;
}

.carousel-frame-dots span:nth-child(2) {
  background: #e9bc63;
}

.carousel-frame-dots span:nth-child(3) {
  background: #60c69c;
}

.carousel-frame-title {
  min-width: 0;

  overflow: hidden;

  color: #c6e1ec;

  font-size: 9px;

  font-weight: 750;

  letter-spacing: 0.9px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.carousel-frame-live {
  color: #65dfca;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 0.4px;

  white-space: nowrap;
}

.carousel-viewport {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: #eaf1f5;
}

.carousel-slide {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.carousel-slide.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  z-index: 2;
}

.carousel-slide img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: contain;

  object-position: center;

  cursor: zoom-in;

  background: #f3f7fa;
}

.carousel-toolbar {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 25px;

  min-height: 54px;

  padding: 8px 12px;

  background: #0b1b2a;

  border-top: 1px solid rgba(72, 220, 233, 0.12);
}

.carousel-prev,
.carousel-next {
  display: grid;

  place-items: center;

  width: 36px;

  height: 36px;

  padding: 0;

  border: 1px solid rgba(72, 220, 233, 0.3);

  border-radius: 50%;

  background: rgba(72, 220, 233, 0.08);

  color: #48dce9;

  font-size: 20px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #48dce9;

  color: #081523;

  transform: scale(1.08);
}

.carousel-counter {
  min-width: 55px;

  color: #dceaf2;

  font-size: 12px;

  font-weight: 750;

  text-align: center;

  letter-spacing: 1px;

  font-variant-numeric: tabular-nums;
}

.carousel-device-base {
  position: relative;

  width: 30%;

  height: 12px;

  margin: 0 auto;

  background: linear-gradient(90deg, #183447, #47677a, #183447);
}

.carousel-device-base::after {
  content: "";

  position: absolute;

  left: -25%;

  right: -25%;

  bottom: -5px;

  height: 6px;

  border-radius: 8px;

  background: linear-gradient(90deg, #173247, #658294, #173247);
}

.project-features {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 22px;
}

.project-features span {
  display: inline-flex;

  align-items: center;

  padding: 7px 11px;

  border: 1px solid #d9e9ed;

  border-radius: 5px;

  background: #f1f8fa;

  color: #247b8a;

  font-size: 11px;

  font-weight: 700;
}

/* ==========================================

   VISOR DE IMÁGENES AMPLIADAS

   ========================================== */

.image-lightbox {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 65px 25px 25px;

  background: rgba(3, 12, 22, 0.96);

  backdrop-filter: blur(12px);
}

.image-lightbox.open {
  display: flex;
}

.lightbox-image {
  display: block;

  max-width: 100%;

  max-height: 100%;

  width: auto;

  height: auto;

  object-fit: contain;

  border: 1px solid rgba(72, 220, 233, 0.25);

  border-radius: 8px;

  background: white;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;

  top: 16px;

  right: 22px;

  display: grid;

  place-items: center;

  width: 45px;

  height: 45px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: white;

  font-size: 30px;

  cursor: pointer;

  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(72, 220, 233, 0.25);
}

/* ==========================================

   NOSOTROS

   ========================================== */

.about-section {
  background: #ffffff;
}

.about-layout {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;
}

.about-copy p {
  margin: 0 0 23px;

  color: #5f7080;

  line-height: 1.95;
}

.about-copy strong {
  color: #152c3f;
}

.about-decoration {
  display: flex;

  align-items: center;

  gap: 17px;

  margin-top: 55px;

  color: #c7d7df;

  font-size: 38px;

  font-weight: 900;

  letter-spacing: -2px;
}

.decoration-line {
  width: 60px;

  height: 2px;

  background: var(--cyan);
}

.about-decoration span:last-child {
  font-size: 13px;

  letter-spacing: 4px;
}

.about-tech {
  padding-top: 22px;

  border-top: 1px solid var(--line);

  color: #6b8192;

  font-size: 12px;

  line-height: 2.4;
}

.about-tech span {
  color: #20a5b5;

  padding: 0 5px;
}

/* ==========================================

   CONTACTO

   ========================================== */

.contact-section {
  color: white;

  background:
    radial-gradient(
      circle at 75% 30%,

      rgba(35, 149, 168, 0.17),
      transparent 38%
    ),
    linear-gradient(135deg, #081523, #102b3e);
}

.contact-section .eyebrow {
  color: var(--cyan);
}

.contact-section h2 em {
  color: var(--cyan);
}

.contact-layout {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 90px;

  align-items: center;
}

.contact-layout > div > p:not(.eyebrow) {
  color: #b2c6d4;

  max-width: 530px;

  line-height: 1.9;
}

.contact-location {
  margin-top: 35px;

  color: var(--cyan);

  font-size: 11px;

  font-weight: 750;

  letter-spacing: 2px;
}

.contact-panel {
  position: relative;

  padding: 40px;

  border: 1px solid #38566b;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.035);

  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.14);
}

.panel-symbol {
  display: grid;

  place-items: center;

  width: 53px;

  height: 53px;

  border: 1px solid rgba(72, 220, 233, 0.4);

  border-radius: 9px;

  color: var(--cyan);

  font-size: 28px;
}

.contact-panel h3 {
  margin: 25px 0 12px;

  font-size: 27px;

  line-height: 1.3;
}

.contact-panel p {
  font-size: 14px;

  color: #a9bfce;

  line-height: 1.9;
}

.contact-notice {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 28px;

  padding-top: 20px;

  border-top: 1px solid #365266;

  color: #8eb2bf;

  font-size: 10px;

  letter-spacing: 1px;
}

/* ==========================================

   PIE DE PÁGINA

   ========================================== */

.footer {
  background: #06111d;

  color: #8ca2b4;

  padding: 30px 0;

  border-top: 1px solid #183044;
}

.footer-inner {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  font-size: 11px;
}

.footer-brand {
  color: white;

  font-size: 17px;

  font-weight: 900;

  letter-spacing: -0.5px;
}

.footer-brand span {
  color: var(--cyan);
}

.footer-inner > a:last-child {
  font-weight: 750;

  letter-spacing: 1px;

  color: #a3d8dd;
}

/* ==========================================

   ANIMACIONES AL HACER SCROLL

   ========================================== */

.motion-ready .reveal {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.motion-ready .reveal.is-visible {
  opacity: 1;

  transform: translateY(0);
}

/* ==========================================

   TABLETS

   ========================================== */

@media (max-width: 1050px) {
  .hero-layout {
    gap: 15px;
  }

  .hero h1 {
    font-size: clamp(39px, 4.5vw, 55px);
  }

  .hero::before {
    background-image:
      linear-gradient(
        90deg,
        rgba(5, 17, 30, 0.97) 0%,

        rgba(5, 17, 30, 0.83) 38%,

        rgba(5, 17, 30, 0.25) 100%
      ),
      url("../assets/notebook-premium.png");

    background-position: 55% center;
  }

  .services-showcase {
    gap: 30px;
  }

  .about-layout {
    gap: 50px;
  }

  .contact-layout {
    gap: 45px;
  }

  .nav {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;

    max-width: 700px;

    margin-inline: auto;
  }

  .project-carousel {
    padding: 30px 25px 20px;
  }
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;

    position: absolute;

    top: 82px;

    left: 0;

    right: 0;

    padding: 25px;

    background: #0b1b2a;

    border-bottom: 1px solid #2e4c5e;

    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);

    flex-direction: column;

    align-items: stretch;

    gap: 20px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 15px;
  }

  .nav-contact {
    text-align: center;
  }

  .hero-layout {
    grid-template-columns: 1fr;

    padding: 75px 0 0;
  }

  .hero-copy {
    max-width: 670px;
  }

  .hero h1 {
    font-size: clamp(43px, 7vw, 65px);
  }

  .hero::before {
    background-image:
      linear-gradient(
        180deg,
        #071624 0%,

        rgba(7, 22, 36, 0.97) 35%,

        rgba(7, 22, 36, 0.35) 67%,

        rgba(7, 22, 36, 0.05) 100%
      ),
      url("../assets/notebook-premium.png");

    background-size:
      100% 100%,
      100% auto;

    background-position:
      center,
      center bottom;
  }

  .premium-visual {
    width: 100%;

    min-height: 390px;
  }

  .premium-visual .tag-top {
    top: 5%;

    right: 2%;
  }

  .premium-visual .tag-bottom {
    bottom: 12%;

    left: 3%;
  }

  .services-showcase {
    grid-template-columns: 1fr;
  }

  .service-feature {
    position: static;

    min-height: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .contact-layout {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .section {
    padding: 85px 0;
  }
}

/* ==========================================

   CELULARES

   ========================================== */

@media (max-width: 600px) {
  .container {
    width: min(100% - 30px, 1160px);
  }

  .nav-wrap {
    min-height: 73px;
  }

  .nav {
    top: 73px;
  }

  .brand-symbol {
    width: 43px;

    height: 43px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-name small {
    font-size: 8px;

    letter-spacing: 1.5px;
  }

  .hero-layout {
    padding: 58px 0 0;
  }

  .hero::before {
    background-image:
      linear-gradient(
        180deg,
        #071624 0%,

        #071624 44%,

        rgba(7, 22, 36, 0.55) 72%,

        rgba(7, 22, 36, 0.1) 100%
      ),
      url("../assets/notebook-premium.png");

    background-size:
      100% 100%,
      125% auto;

    background-position:
      center,
      67% bottom;
  }

  .hero-kicker {
    font-size: 9px;

    letter-spacing: 1.2px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 53px);

    letter-spacing: -1.8px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-bottom {
    margin-top: 35px;

    font-size: 8px;
  }

  .premium-visual {
    min-height: 260px;
  }

  .premium-visual .orbit {
    display: none;
  }

  .premium-visual .tag-top {
    top: 0;

    right: 0;
  }

  .premium-visual .tag-bottom {
    bottom: 4%;

    left: 0;
  }

  .premium-visual .visual-caption {
    display: none;
  }

  .floating-tag {
    font-size: 7px;

    padding: 7px 9px;
  }

  .tag-icon {
    font-size: 13px;
  }

  .section {
    padding: 70px 0;
  }

  .section h2 {
    font-size: clamp(32px, 9vw, 44px);

    letter-spacing: -1.2px;
  }

  .section-intro {
    font-size: 15px;
  }

  .service-detail summary {
    font-size: 15px;

    gap: 12px;
  }

  .service-detail p {
    padding-left: 30px;
  }

  .service-feature {
    padding: 28px;
  }

  .service-feature h3 {
    font-size: 25px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 24px;
  }

  .project-carousel {
    padding: 16px 10px;
  }

  .carousel-frame {
    border-width: 5px;

    border-radius: 9px;
  }

  .carousel-frame-header {
    min-height: 34px;

    padding: 7px 8px;
  }

  .carousel-frame-title {
    font-size: 8px;

    letter-spacing: 0;
  }

  .carousel-frame-live {
    display: none;
  }

  .carousel-viewport {
    aspect-ratio: 4 / 3;
  }

  .carousel-toolbar {
    min-height: 48px;

    gap: 20px;
  }

  .carousel-prev,
  .carousel-next {
    width: 34px;

    height: 34px;
  }

  .project-features {
    gap: 7px;
  }

  .project-features span {
    font-size: 10px;

    padding: 6px 9px;
  }

  .image-lightbox {
    padding: 70px 10px 20px;
  }

  .lightbox-close {
    top: 12px;

    right: 12px;
  }

  .about-decoration {
    margin-top: 25px;
  }

  .contact-panel {
    padding: 27px;
  }

  .contact-panel h3 {
    font-size: 24px;
  }

  .footer-inner {
    flex-direction: column;

    text-align: center;

    gap: 13px;
  }
}

/* ==========================================

   ACCESIBILIDAD

   ========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal {
    opacity: 1;

    transform: none;
  }
}

/* ==========================================
   NIVEX TECH - DEMOSTRACION MOVIL PREMIUM
   ========================================== */
.mobile-showcase,
.phones-showcase,
.mobile-demo,
.phone-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 65px 24px;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(72, 220, 233, 0.17),
      transparent 55%
    ),
    linear-gradient(145deg, #071523, #102d42);
  border-radius: 16px;
  color: #fff;
}
.mobile-showcase::before,
.phones-showcase::before,
.mobile-demo::before,
.phone-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(72, 220, 233, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 220, 233, 0.14) 1px, transparent 1px);
  background-size: 45px 45px;
}
.mobile-phones,
.phones-container,
.phones-grid,
.mobile-devices,
.phone-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 75px);
  max-width: 100%;
  margin-inline: auto;
}
.phone,
.phone-mockup,
.mobile-phone,
.smartphone,
.phone-device {
  position: relative;
  width: min(100%, 275px);
  aspect-ratio: 9 / 19.5;
  flex: 0 1 275px;
  padding: 10px;
  overflow: hidden;
  border: 3px solid #465c6b;
  border-radius: 39px;
  background: #07111b;
  box-shadow:
    inset 0 0 0 2px #0b1c2b,
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(72, 220, 233, 0.13);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.phone:hover,
.phone-mockup:hover,
.mobile-phone:hover,
.smartphone:hover,
.phone-device:hover {
  transform: translateY(-8px);
  box-shadow:
    0 38px 70px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(72, 220, 233, 0.23);
}
.phone-screen,
.mobile-screen,
.smartphone-screen,
.phone-display {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 29px;
  background: #fff;
}
.phone-screen img,
.mobile-screen img,
.smartphone-screen img,
.phone-display img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.phone-notch,
.phone-island,
.dynamic-island {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 5;
  width: 30%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 30px;
  background: #050b10;
  pointer-events: none;
}
.phone-caption,
.mobile-caption,
.phone-label {
  margin: 16px 0 0;
  text-align: center;
  color: #c6e6ee;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
@media (max-width: 600px) {
  .mobile-showcase,
  .phones-showcase,
  .mobile-demo,
  .phone-showcase {
    padding: 38px 12px;
  }
  .mobile-phones,
  .phones-container,
  .phones-grid,
  .mobile-devices,
  .phone-pair {
    gap: 28px;
  }
  .phone,
  .phone-mockup,
  .mobile-phone,
  .smartphone,
  .phone-device {
    flex-basis: 235px;
    width: min(100%, 235px);
  }
}

/* NIVEX TECH · Contacto y redes sociales */
.nx-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}
.nx-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.nx-contact-actions a:hover {
  transform: translateY(-2px);
}
.nx-contact-whatsapp {
  background: #25d366;
  color: #062a16;
}
.nx-contact-whatsapp:hover {
  background: #5ee68d;
}
.nx-contact-instagram {
  border: 1px solid rgba(155, 245, 245, 0.4);
  color: #e6faff;
  background: rgba(255, 255, 255, 0.06);
}
.nx-contact-instagram:hover {
  border-color: #48dce9;
  background: rgba(72, 220, 233, 0.12);
}
.nx-contact-actions svg,
.nx-social-link svg,
.nx-whatsapp-float svg {
  flex-shrink: 0;
}
.nx-footer-links {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nx-footer-links > a:last-child {
  color: #a3d8dd;
  font-weight: 750;
  letter-spacing: 1px;
}
.nx-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9e9f0;
  font-weight: 700;
}
.nx-social-link:hover {
  color: #48dce9;
}
.nx-whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.26),
    0 0 0 6px rgba(37, 211, 102, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.nx-whatsapp-float svg {
  width: 35px;
  height: 35px;
}
.nx-whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.32),
    0 0 0 8px rgba(37, 211, 102, 0.16);
}
.nx-whatsapp-tooltip {
  position: absolute;
  right: 74px;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 7px;
  background: #0b2031;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateX(7px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.nx-whatsapp-float:hover .nx-whatsapp-tooltip,
.nx-whatsapp-float:focus-visible .nx-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 600px) {
  .nx-whatsapp-float {
    right: 17px;
    bottom: 17px;
    width: 56px;
    height: 56px;
  }
  .nx-whatsapp-float svg {
    width: 31px;
    height: 31px;
  }
  .nx-whatsapp-tooltip {
    display: none;
  }
  .nx-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  .nx-contact-actions a {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx-whatsapp-float,
  .nx-contact-actions a,
  .nx-whatsapp-tooltip {
    transition: none;
  }
}
