:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f5faff;
  --primary: #0d3d67;
  --primary-dark: #082a49;
  --blue: #167dff;
  --blue-soft: #49b8ff;
  --ink: #0f1720;
  --muted: #5f6f80;
  --line: rgba(13, 61, 103, 0.12);
  --shadow: 0 18px 45px rgba(8, 42, 73, 0.12);
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(73, 184, 255, 0.16), transparent 22%),
    linear-gradient(180deg, #f8fbfe 0%, #eef6fb 100%);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.18rem rgba(22, 125, 255, 0.16);
  border-color: rgba(22, 125, 255, 0.38);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  color: var(--primary-dark);
  background: linear-gradient(90deg, rgba(73, 184, 255, 0.12), rgba(13, 61, 103, 0.08));
}

.top-bar-left,
.top-bar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.top-bar .highlight {
  font-weight: 800;
}

.site-header {
  padding: 1rem 1.4rem;
}

.header-wrap {
  width: min(1480px, calc(100vw - 2.8rem));
  margin: 0 auto;
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 96px;
  padding: 0.9rem 1.4rem;
  border-radius: 24px;
  background: linear-gradient(90deg, #ffffff, rgba(73, 184, 255, 0.16));
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.brand-lockup-large {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.brand-logo {
  width: clamp(285px, 29vw, 430px);
  min-width: 0;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: flex-end;
}

.nav-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.main-nav .dropdown-toggle::after {
  margin-left: 0.45rem;
}

.main-dropdown {
  border: 1px solid rgba(18, 48, 82, 0.12);
  border-radius: 18px;
  padding: 0.55rem;
  min-width: 240px;
  box-shadow: 0 20px 40px rgba(7, 27, 51, 0.14);
}

.main-dropdown .dropdown-item {
  border-radius: 12px;
  font-weight: 600;
  color: var(--primary);
  padding: 0.7rem 0.9rem;
}

.main-dropdown .dropdown-item:hover,
.main-dropdown .dropdown-item:focus {
  background: rgba(22, 125, 255, 0.1);
  color: var(--primary-dark);
}

.btn-primary,
.btn-carousel {
  background: linear-gradient(90deg, var(--primary-dark), var(--blue));
  border: none;
  color: #fff;
}

.btn-primary:hover,
.btn-carousel:hover {
  background: linear-gradient(90deg, var(--blue), var(--primary-dark));
  color: #fff;
}

.nav-cta {
  border-radius: 999px;
  padding-inline: 1.2rem;
}

.main-shell {
  padding-bottom: 3rem;
}

.home-carousel,
.section-featured,
.section-mini-services,
.contact-layout,
.page-detail,
.admin-shell,
.content-shell {
  margin-bottom: 2rem;
}

.home-carousel {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.carousel-img {
  height: 560px;
  object-fit: cover;
}

.home-carousel .carousel-caption {
  right: auto;
  left: 2.2rem;
  bottom: 2rem;
  width: min(520px, calc(100% - 4rem));
  text-align: left;
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(7, 27, 51, 0.7);
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 3;
}

.home-carousel .carousel-caption h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
  font-weight: 800;
}

.home-carousel .carousel-caption p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.btn-carousel {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  pointer-events: auto;
  position: relative;
  z-index: 4;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
  width: 72px;
  z-index: 2;
}

.section-featured,
.contact-layout,
.page-detail,
.admin-shell,
.content-shell {
  padding: 2rem;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-title {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.section-title h2,
.contact-copy h1,
.page-detail h1,
.admin-shell h1,
.content-shell h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary-dark);
}

.section-title p,
.contact-copy p,
.page-detail p,
.text-muted {
  color: var(--muted) !important;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-grid,
.dashboard-grid,
.section-mini-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.service-box,
.mini-box,
.dashboard-card,
.contact-info-card,
.form-card,
.contact-form-shell {
  border-radius: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(8, 42, 73, 0.05);
}

.service-box-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.page-detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(7, 27, 51, 0.12);
}

.page-parent-link {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.page-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.page-gallery-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(7, 27, 51, 0.1);
}

.page-gallery-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.page-gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.page-child-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(7, 27, 51, 0.06);
}

.page-child-title {
  font-weight: 800;
  color: var(--primary-dark);
}

.page-child-summary {
  color: var(--muted);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5rem;
  background: rgba(6, 15, 24, 0.9);
}

.lightbox-image {
  max-width: min(1200px, 100%);
  max-height: 88vh;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.lightbox-counter {
  position: absolute;
  top: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 1.65rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

.page-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.page-video-card {
  border-radius: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 1rem;
}

.page-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 18px;
  background: #091826;
}

.page-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-list-editor {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: var(--surface-soft);
}

.gallery-list-editor {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: var(--surface-soft);
}

.video-list-items {
  display: grid;
  gap: 0.8rem;
}

.gallery-list-items {
  display: grid;
  gap: 0.8rem;
}

.video-list-row {
  display: block;
}

.gallery-list-row {
  display: grid;
  gap: 0.8rem;
}

.video-list-inputs {
  display: grid;
  gap: 0.8rem;
}

.video-list-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.gallery-list-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.75rem;
  align-items: center;
}

.video-preview-slot {
  min-height: 0;
}

.gallery-preview-slot {
  min-height: 0;
}

.admin-video-preview-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 18px;
  background: #091826;
  box-shadow: 0 10px 24px rgba(7, 27, 51, 0.12);
}

.admin-video-preview-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-video-preview-card {
  display: grid;
  gap: 0.55rem;
}

.admin-video-preview-title,
.page-video-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.admin-gallery-preview-image {
  width: 100%;
  max-width: 280px;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(7, 27, 51, 0.12);
}

.product-preview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 1.2rem;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 253, 0.98));
}

.product-preview-copy {
  display: grid;
  align-content: start;
}

.product-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview-image {
  width: 100%;
  max-width: 420px;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(7, 27, 51, 0.14);
  background: linear-gradient(180deg, #edf4fb, #dfeaf6);
}

.service-box,
.mini-box,
.dashboard-card,
.contact-info-card,
.form-card {
  padding: 1.35rem;
}

.service-box h3,
.mini-box h3 {
  color: var(--primary-dark);
  font-weight: 800;
}

.template-pill,
.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(22, 125, 255, 0.1);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.cta-ayuda {
  position: relative;
  padding: 4.5rem 2rem;
  border-radius: 30px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 51, 0.22);
}

.cta-box {
  position: relative;
  max-width: 620px;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
}

.cta-box h2 {
  color: var(--primary-dark);
  font-weight: 800;
}

.strategic-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 252, 0.98));
  box-shadow: var(--shadow);
}

.strategic-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-dark);
}

.strategic-copy p {
  margin-bottom: 1.3rem;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.03rem;
}

.strategic-media {
  position: relative;
}

.strategic-image {
  width: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(7, 27, 51, 0.16);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-bullets,
.footer-links-group {
  display: grid;
  gap: 0.55rem;
}

.contact-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-bullets li::before {
  content: "+ ";
  color: var(--blue);
  font-weight: 800;
}

.contact-form-shell {
  padding: 1.5rem;
}

.admin-login-shell {
  max-width: 560px;
  margin: 2rem auto;
}

.admin-login-form {
  margin-top: 1rem;
}

.table-shell {
  overflow-x: auto;
}

.table thead th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.footer-dark {
  padding: 2.5rem 0 1.3rem;
  color: #dce7f2;
  background: #102331;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-logo {
  width: 260px;
  max-width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
}

.footer-logo-shell {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.footer-links-group h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-links-group a,
.footer-brand p {
  color: #c6d5e3;
}

.footer-copy {
  margin-top: 1.8rem;
  text-align: center;
  color: #90a7bc;
  font-size: 0.9rem;
}

.tech-catalog-hero,
.catalog-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
  border-radius: 30px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.tech-catalog-copy {
  max-width: 920px;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog-disclosure {
  margin: -0.4rem 0 1.5rem;
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.catalog-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.6rem;
}

.catalog-trust-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 243, 252, 0.92));
  border: 1px solid rgba(18, 48, 82, 0.08);
  box-shadow: 0 10px 24px rgba(7, 27, 51, 0.05);
}

.catalog-trust-card strong {
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.catalog-trust-card span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.catalog-sections {
  display: grid;
  gap: 2rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(18, 48, 82, 0.08);
  box-shadow: 0 16px 30px rgba(7, 27, 51, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(7, 27, 51, 0.11);
}

.catalog-image-shell {
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf4fb, #dfeaf6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-badge {
  align-self: flex-start;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(22, 125, 255, 0.12);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.catalog-brand {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--primary-dark);
}

.catalog-specs {
  margin: 0;
  color: var(--muted);
  min-height: 4.8rem;
  line-height: 1.55;
}

.catalog-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: auto;
  padding: 0.9rem 0 0.15rem;
  border-top: 1px solid rgba(18, 48, 82, 0.08);
}

.catalog-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.18rem;
}

@media (max-width: 991px) {
  .top-bar,
  .contact-layout,
  .footer-container {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .strategic-section {
    grid-template-columns: 1fr;
  }

  .product-preview-shell {
    grid-template-columns: 1fr;
  }

  .main-header {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-logo {
    width: min(360px, 100%);
  }

  .catalog-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-img {
    height: 380px;
  }

  .home-carousel .carousel-caption {
      left: 1rem;
      bottom: 1rem;
      width: calc(100% - 2rem);
      padding: 1rem;
    }

  .home-carousel .carousel-control-prev,
  .home-carousel .carousel-control-next {
      width: 56px;
    }
  }

@media (max-width: 576px) {
  .section-featured,
  .contact-layout,
  .page-detail,
  .admin-shell,
  .content-shell,
  .tech-catalog-hero,
  .catalog-section {
    padding: 1.3rem;
    border-radius: 24px;
  }

  .cta-ayuda {
    padding: 2rem 1rem;
    border-radius: 24px;
  }

  .cta-box {
    padding: 1.25rem;
  }

  .lightbox-overlay {
    padding: 1rem 3.4rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}
