/* =========================================================
   TRIVIALTECH — MAIN STYLESHEET
   Fuente: Inter (Google Fonts)
   Paleta: azul #005baa / acento #00c6a7 / amarillo #ffc107
   ========================================================= */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f4f8fc;
  color: #1a2b3c;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- Layout ----- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ----- Header ----- */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,60,120,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo img { height: 44px; width: auto; }

/* ----- Nav pills ----- */
nav#nav-menu ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2b3c;
  transition: background 0.18s, color 0.18s;
  border: 1.5px solid transparent;
  background: transparent;
  text-decoration: none;
  line-height: 1.2;
}
.nav-pill:hover,
.nav-pill.nav-active {
  background: #eef5ff;
  color: #005baa;
  border-color: #c0d8f4;
}
.nav-pill-cta {
  background: #005baa;
  color: #fff !important;
  border-color: #005baa;
}
.nav-pill-cta:hover {
  background: #003e7a;
  border-color: #003e7a;
  color: #fff;
}

/* ----- Dropdown nav ----- */
.nav-dropdown { position: relative; }
button.nav-pill.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}
.nav-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
}
.nav-dropdown.is-open > button .nav-caret { transform: rotate(180deg); }
nav#nav-menu .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: none;
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,60,120,0.13);
  padding: 8px;
  min-width: 250px;
  list-style: none;
  z-index: 300;
  /* override del flex del nav principal */
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
}
.nav-dropdown.is-open > .nav-dropdown-menu { display: flex !important; }
a.nav-dropdown-item {
  display: block;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a2b3c;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
a.nav-dropdown-item:hover,
a.nav-dropdown-item.nav-active {
  background: #eef5ff;
  color: #005baa;
}

/* ----- Hamburguesa ----- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid #c0d8f4;
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  transition: border-color 0.2s;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #005baa;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger-open span:nth-child(2) { opacity: 0; }
.nav-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero slider ----- */
.hero {
  position: relative;
  min-height: 320px;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5,25,55,0.72) 0%, rgba(0,91,170,0.45) 100%);
  z-index: 1;
}
.hero-slide { display: none; }
.hero-slide.active { display: flex; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 32px 0 32px 24px;
}
.hero-content h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.hero-content h1 span {
  background: linear-gradient(90deg, #fff 0%, #a8d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 12px;
  font-weight: 400;
}
.hero-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 1.8rem; line-height: 1; padding: 6px 14px; cursor: pointer;
  border-radius: 50%; z-index: 10;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.hero-slider-btn:hover { background: rgba(255,255,255,0.3); }
.hero-slider-prev { left: 18px; }
.hero-slider-next { right: 18px; }
.hero-slider-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7); background: transparent;
  cursor: pointer; padding: 0; transition: background 0.2s, border-color 0.2s;
}
.hero-dot.active { background: #fff; border-color: #fff; }
.hero-cta {
  display: inline-block; margin-top: 8px; padding: 12px 30px;
  border-radius: 999px; background: #00c6a7; color: #fff;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(0,198,167,0.35);
}
.hero-cta:hover { background: #009e86; transform: translateY(-1px); }
.hero-center-img { margin: 10px 0 4px; }
.hero-center-img img { max-height: 320px; max-width: 100%; width: 100%; object-fit: contain; border-radius: 8px; }

/* ----- Secciones genéricas ----- */
section { padding: 56px 0; }
section h2 {
  margin-bottom: 32px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0a2a4d;
  text-align: center;
  letter-spacing: -0.01em;
}
section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #005baa, #00c6a7);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ----- Productos / servicios ----- */
.productos-servicios {
  background:
    radial-gradient(circle at top left, rgba(0,198,167,0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  padding: 58px 0 62px;
}
.prodserv-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}
.prodserv-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0,91,170,0.08);
  color: #005baa;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prodserv-head h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}
.prodserv-head h2::after {
  margin-top: 12px;
}
.prodserv-intro {
  color: #5b6d81;
  font-size: 1rem;
  line-height: 1.7;
}
.prodserv-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.prodserv {
  background: #fff;
  border-radius: 22px;
  border: 1px solid #dce8f5;
  padding: 16px 16px 18px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(10,42,77,0.07);
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  overflow: hidden;
}
.prodserv img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  height: 210px;
  margin-bottom: 16px;
}
.prodserv h3 {
  color: #005baa;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prodserv:hover {
  box-shadow: 0 20px 42px rgba(0,91,170,0.14);
  transform: translateY(-5px);
  border-color: #b8d3ef;
}

/* ----- Noticias ----- */
.noticias-preview { background: #f4f8fc; }
.noticias-loading { text-align: center; color: #7a8fa6; padding: 32px 0; }
.noticias-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.noticia {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dce8f5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.noticia:hover { box-shadow: 0 12px 36px rgba(0,91,170,0.13); transform: translateY(-4px); }
.noticia-img { flex-shrink: 0; }
.noticia-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.noticia-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.noticia-fecha {
  font-size: 0.78rem; color: #00c6a7; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.noticia h4 { font-size: 1.05rem; font-weight: 700; color: #0a2a4d; margin-bottom: 10px; line-height: 1.35; }
.noticia p { font-size: 0.93rem; color: #4b5c70; line-height: 1.65; flex: 1; margin-bottom: 0; }
.noticia-link {
  display: inline-block; margin-top: 18px; padding: 8px 22px;
  border-radius: 999px; background: #005baa; color: #fff;
  font-size: 0.85rem; font-weight: 700;
  transition: background 0.2s;
  align-self: flex-start;
}
.noticia-link:hover { background: #003e7a; }
.noticias-ver-mas { text-align: center; margin-top: 36px; }

/* ----- Detalle de noticia ----- */
.news-detail-section { padding: 40px 0 64px; background: #f4f8fc; }
.news-detail-back-row { margin-bottom: 20px; }
.news-detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #005baa; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; transition: color 0.18s;
}
.news-detail-back:hover { color: #003e7a; }
.news-detail-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dce8f5;
  padding: 40px 48px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,60,120,0.07);
}
.news-detail-header { margin-bottom: 28px; }
.news-detail-date {
  font-size: 0.8rem; color: #00c6a7; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 12px;
}
.news-detail-title {
  font-size: 1.9rem; font-weight: 800; color: #0a2a4d;
  line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.01em;
}
.news-detail-summary {
  font-size: 1.08rem; color: #4b5c70; line-height: 1.65;
  border-left: 4px solid #00c6a7; padding-left: 16px;
  font-style: italic;
}
.news-detail-hero-img {
  margin-bottom: 32px; border-radius: 14px; overflow: hidden;
  max-height: 420px;
}
.news-detail-hero-img img {
  width: 100%; max-height: 420px; object-fit: cover; display: block;
}
.news-detail-content {
  color: #2d3e50; font-size: 1rem; line-height: 1.8;
}
.news-detail-content p { margin-bottom: 16px; }
.news-detail-content h2,
.news-detail-content h3 { color: #0a2a4d; font-weight: 700; margin: 24px 0 10px; }
.news-detail-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.news-detail-content a { color: #005baa; text-decoration: underline; }
.news-detail-gallery { margin-top: 36px; padding-top: 28px; border-top: 1px solid #dce8f5; }
.news-detail-gallery-title {
  font-size: 1rem; font-weight: 800; color: #0a2a4d;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.news-detail-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.news-detail-gallery-item { border-radius: 10px; overflow: hidden; display: block; }
.news-detail-gallery-item img {
  width: 100%; height: 140px; object-fit: cover; display: block;
  transition: transform 0.2s;
}
.news-detail-gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 768px) {
  .news-detail-card { padding: 24px 18px; }
  .news-detail-title { font-size: 1.4rem; }
}

/* ----- Beneficios ----- */
.beneficios { background: #f4f8fc; }
.beneficios-list { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.beneficio {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dce8f5;
  padding: 40px 32px 32px;
  flex: 1 1 260px; min-width: 240px; max-width: 340px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.beneficio:hover { box-shadow: 0 12px 36px rgba(0,91,170,0.13); transform: translateY(-4px); }
.beneficio img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 24px; }
.beneficio h3 { color: #0a2a4d; margin-bottom: 14px; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.04em; }
.beneficio p { font-size: 0.96rem; color: #4b5c70; line-height: 1.65; flex: 1; margin-bottom: 28px; }
.beneficio-link {
  display: inline-block; padding: 9px 28px;
  border-radius: 999px;
  border: 2px solid #005baa;
  color: #005baa; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.beneficio-link:hover { background: #005baa; color: #fff; }

/* ----- Aplicaciones ----- */
.aplicaciones {
  position: relative;
  padding: 62px 0;
  background:
    linear-gradient(180deg, rgba(7,17,46,0.68) 0%, rgba(7,17,46,0.68) 100%),
    url('../assets/images/bg_home_frase3.jpg') center/cover no-repeat;
}
.aplicaciones-copy {
  max-width: 860px;
  text-align: center;
}
.aplicaciones h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 14px;
}
.aplicaciones h2::after { display: none; }
.aplicaciones p {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.7;
}

/* ----- Sobre ----- */
.sobre { background: #f4f8fc; }
.sobre p { max-width: 680px; margin: 0 auto; color: #4b5c70; text-align: center; font-size: 1rem; }
.sobre-list {
  max-width: 580px; margin: 24px auto 0;
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.sobre-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; color: #1a2b3c; font-weight: 500;
}
.sobre-list li::before {
  content: '';
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #005baa, #00c6a7);
}

/* ----- Contacto ----- */
.contacto { background: #fff; }
.contacto-flex { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.contacto-form-wrap { flex: 1 1 300px; min-width: 260px; }
.contacto-form-wrap h2 { text-align: left; }
.contacto-form-wrap h2::after { margin-left: 0; }
.contacto-mapa { flex: 1 1 320px; min-width: 260px; max-width: 480px; }
.contacto-info { margin-top: 14px; }
.contacto-info p { margin-bottom: 8px; font-size: 0.97rem; color: #4b5c70; }

/* ----- Pagina de contacto ----- */
.contact-page-section {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, #f4f8fc 0%, #edf4fb 100%);
}
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
}
.contact-page-card {
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(10,42,77,0.08);
}
.contact-page-card h2 {
  text-align: left;
  margin-bottom: 12px;
}
.contact-page-card h2::after {
  margin-left: 0;
}
.contact-page-intro {
  color: #5b6d81;
  line-height: 1.75;
  margin-bottom: 20px;
}
.contact-page-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-page-form label {
  display: block;
}
.contact-page-form label span {
  display: block;
  margin-bottom: 7px;
  color: #17324d;
  font-size: 0.92rem;
  font-weight: 700;
}
.contact-page-form input,
.contact-page-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d2dde9;
  border-radius: 14px;
  background: #f9fbfd;
  color: #17324d;
  font: inherit;
}
.contact-page-form textarea {
  resize: vertical;
  min-height: 160px;
}
.contact-page-form input:focus,
.contact-page-form textarea:focus {
  outline: none;
  border-color: #005baa;
  box-shadow: 0 0 0 3px rgba(0,91,170,0.12);
}
.contact-page-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}
.contact-page-alert-success {
  background: #e9f7ef;
  border: 1px solid #bfe4cb;
  color: #1e6a43;
}
.contact-page-alert-error {
  background: #fff1f0;
  border: 1px solid #f2c3bd;
  color: #8a2d1f;
}
.contact-page-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-page-recaptcha-wrap {
  margin-top: 18px;
}
.contact-page-form-full {
  grid-column: 1 / -1;
}
.contact-page-form .btn {
  margin-top: 18px;
}
.contact-page-info-list {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-page-info-list h3 {
  color: #0a2a4d;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.contact-page-info-list p,
.contact-page-info-list a {
  color: #4b5c70;
  line-height: 1.7;
}
.contact-page-info-list a:hover {
  color: #005baa;
}
.contact-page-map {
  border-radius: 16px;
  overflow: hidden;
}
.contact-page-note {
  padding: 0 0 54px;
  background: #edf4fb;
}
.contact-page-note-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0a2a4d 0%, #005baa 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,91,170,0.16);
}
.contact-page-note-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 800;
}
.contact-page-note-card p {
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
}

/* ----- Paginas institucionales ----- */
.company-page-hero {
  position: relative;
  padding: 48px 0 40px;
  background: linear-gradient(135deg, rgba(240,246,252,0.95) 0%, rgba(226,237,248,0.92) 100%);
  overflow: hidden;
}
.company-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 38%),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.55) 0, rgba(255,255,255,0.55) 2px, transparent 2px, transparent 18px);
  opacity: 0.5;
  pointer-events: none;
}
.company-page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.company-page-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0,91,170,0.08);
  color: #005baa;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.company-page-hero h1 {
  color: #0a2a4d;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.company-page-section {
  padding: 48px 0 68px;
  background: #f4f8fc;
}
.company-page-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 42px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dce8f5;
  box-shadow: 0 12px 34px rgba(0,60,120,0.07);
}
.company-page-copy {
  color: #33475b;
  font-size: 1.08rem;
  line-height: 1.85;
}
.company-page-copy p {
  margin-bottom: 18px;
}
.company-page-copy strong {
  color: #122a44;
  font-weight: 800;
}
.company-page-split {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.company-page-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,60,120,0.10);
}
.company-page-copy-tight p:last-child {
  margin-bottom: 0;
}
.company-page-block + .company-page-block {
  margin-top: 22px;
}
.company-page-mini-title {
  margin-bottom: 8px;
  color: #0a2a4d;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.company-page-mini-title::after {
  display: none;
}
.company-page-list {
  margin: 12px 0 0;
  padding-left: 22px;
}
.company-page-list li {
  margin-bottom: 10px;
}
.company-page-timeline {
  margin-top: 30px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid #dce8f5;
  padding: 10px;
}
.company-page-timeline img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ----- Tecnología ----- */
.technology-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(circle at top left, rgba(0,198,167,0.16), transparent 28%),
    linear-gradient(135deg, #0a2a4d 0%, #005baa 62%, #53b7e7 100%);
  color: #fff;
}
.technology-hero-inner {
  max-width: 760px;
}
.technology-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.technology-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.technology-hero h1::after {
  display: none;
}
.technology-intro {
  max-width: 640px;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  line-height: 1.75;
}
.technology-page-section {
  padding: 38px 0 68px;
  background: linear-gradient(180deg, #eef5fb 0%, #f6f9fc 100%);
}
.technology-stack {
  display: grid;
  gap: 26px;
}
.technology-card {
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(0,60,120,0.07);
}
.technology-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
}
.technology-grid.technology-grid-media-right {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 420px);
}
.technology-copy {
  color: #33475b;
  line-height: 1.8;
}
.technology-copy-wide {
  max-width: 880px;
  margin-bottom: 22px;
}
.technology-copy h2 {
  margin-bottom: 14px;
  color: #0a2a4d;
  font-size: 1.8rem;
  text-align: left;
}
.technology-copy h2::after {
  margin-left: 0;
}
.technology-copy p {
  margin-bottom: 14px;
}
.technology-overline {
  display: inline-block;
  margin-bottom: 10px;
  color: #00a8b8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.technology-media-single img,
.technology-media-double img,
.technology-gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(10,42,77,0.10);
  background: #fff;
}
.technology-media-double {
  display: grid;
  gap: 16px;
}
.technology-media-double-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.technology-media-double-vertical {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.technology-media-highlight,
.technology-media-note {
  display: flex;
  align-items: stretch;
}
.technology-stat-card,
.technology-note-card {
  width: 100%;
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #0a2a4d 0%, #005baa 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(0,91,170,0.18);
}
.technology-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 8px;
}
.technology-stat-card span,
.technology-note-card h3 {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.technology-stat-card small,
.technology-note-card p {
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}
.technology-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* ----- Servicios ----- */
.services-page-stack {
  display: grid;
  gap: 18px;
}
.services-page-card {
  max-width: 1000px;
}
.services-page-title {
  margin-bottom: 16px;
  color: #0a2a4d;
  font-size: 1.95rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: -0.02em;
}
.services-page-title::after {
  display: none;
}
.services-page-card p {
  color: #5b6d81;
  font-size: 1.02rem;
  line-height: 1.75;
}
.services-page-card p + p {
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .technology-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .company-page-hero {
    padding: 34px 0 28px;
  }
  .company-page-hero h1 {
    font-size: 1.7rem;
  }
  .company-page-card {
    padding: 24px 18px;
  }
  .company-page-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .company-page-media img {
    min-height: 220px;
    max-height: 300px;
  }
  .company-page-copy {
    font-size: 1rem;
    line-height: 1.75;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  .contact-page-card {
    padding: 22px 18px;
  }
  .contact-page-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-page-recaptcha-wrap {
    overflow-x: auto;
  }

  .technology-hero {
    padding: 42px 0 36px;
  }
  .technology-hero h1 {
    font-size: 1.9rem;
  }
  .technology-grid,
  .technology-grid.technology-grid-media-right {
    grid-template-columns: 1fr;
  }
  .technology-card {
    padding: 22px 18px;
  }
  .technology-copy h2 {
    font-size: 1.45rem;
  }
  .technology-media-double-large,
  .technology-media-double-vertical,
  .technology-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Footer ----- */
footer {
  background: linear-gradient(180deg, #0d1f36 0%, #071428 100%);
  color: #b7c5d6;
  margin-top: 0;
}
.footer-main {
  display: flex; justify-content: space-between; gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 56px 20px 32px;
}
.footer-col { flex: 1 1 200px; min-width: 180px; }
.footer-col h3 { color: #fff; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; color: #8ba0b8; font-size: 0.95rem; }
.footer-col p { color: #8ba0b8; font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-1px);
}
.footer-imgs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.footer-imgs img { background: #fff; border-radius: 6px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.footer-copy {
  background: rgba(0,0,0,0.25);
  color: #7a8fa6;
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1ebe5d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* ----- Botones genéricos ----- */
.btn {
  display: inline-block; padding: 11px 28px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer; border: none;
}
.btn-primary { background: #005baa; color: #fff; }
.btn-primary:hover { background: #003e7a; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ----- Responsive mobile ----- */
@media (max-width: 768px) {
  .container { padding: 0 14px; }
  section { padding: 40px 0; }
  section h2 { font-size: 1.4rem; }

  /* Nav hamburguesa */
  .nav-hamburger { display: flex; }
  nav#nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,18,40,0.96);
    backdrop-filter: blur(8px);
    z-index: 150;
    align-items: center;
    justify-content: center;
  }
  nav#nav-menu.nav-open { display: flex; }
  nav#nav-menu ul {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .nav-pill {
    font-size: 1.2rem;
    padding: 12px 36px;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
  }
  .nav-pill:hover, .nav-pill.nav-active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
  }
  .nav-pill-cta { background: #00c6a7; border-color: #00c6a7; }

  /* Dropdown en móvil: se expande inline */
  .nav-dropdown { width: 100%; text-align: center; }
  button.nav-pill.nav-dropdown-toggle { font-size: 1.2rem; padding: 12px 36px; color: #fff; border-color: rgba(255,255,255,0.2); width: auto; }
  nav#nav-menu .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    box-shadow: none;
    margin-top: 6px;
    padding: 6px;
    min-width: 0;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
  a.nav-dropdown-item { color: rgba(255,255,255,0.9); font-size: 1rem; padding: 10px 14px; }
  a.nav-dropdown-item:hover, a.nav-dropdown-item.nav-active { background: rgba(255,255,255,0.15); color: #fff; }

  /* Hero */
  .hero { min-height: 240px; }
  .hero-bg { min-height: 240px; }
  .hero-content { padding: 28px 0 28px 14px; }
  .hero-content h1 { font-size: 1.35rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-center-img img { max-height: 110px; max-width: 240px; }

  /* Grids */
  .prodserv-list { grid-template-columns: 1fr; }
  .prodserv img { height: 190px; }
  .prodserv h3 { font-size: 1.2rem; }
  .beneficios-list { flex-direction: column; align-items: center; }
  .noticias-list { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; gap: 28px; padding: 40px 14px 24px; }
  .contacto-flex { flex-direction: column; gap: 20px; }
  .contacto-mapa { max-width: 100%; }
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }
  .whatsapp-float span {
    display: none;
  }
}

@media (max-width: 900px) {
  .prodserv { max-width: 100%; }
}


.catalog-hero-section {
  margin: 0;
  padding: 26px 0 48px;
  background: linear-gradient(135deg, #0a2a4d 0%, #005baa 58%, #5fb6e5 100%);
  color: #fff;
}

.catalog-hero-copy {
  max-width: 900px;
}

.catalog-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.catalog-hero-section h2 {
  margin-bottom: 0;
  color: #fff;
  text-align: left;
  font-size: 1.85rem;
}
.catalog-page-container {
  max-width: 1200px;
  width: 100%;
}

.catalog-controls-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 12px;
  position: relative;
  z-index: 3;
}

.catalog-page-section {
  margin: 0;
  padding: 0 0 48px;
  background: linear-gradient(180deg, #eef5fb 0%, #f7f7f7 100%);
}

.catalog-page-section .catalog-page-container {
  margin-top: 10px;
}

.catalog-toolbar {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.catalog-toolbar-copy {
  flex: 1 1 460px;
}

.catalog-toolbar-copy h3 {
  margin-bottom: 10px;
  color: #0a2a4d;
  font-size: 1.45rem;
}

.catalog-toolbar-copy p {
  max-width: 720px;
  color: #4b5c70;
  line-height: 1.7;
}

.catalog-search-form {
  flex: 1 1 auto;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(10,42,77,0.08);
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-search-label {
  display: block;
  margin-bottom: 6px;
  color: #0a2a4d;
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog-search-controls {
  display: flex;
  gap: 10px;
}

.catalog-search-controls input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid #d2dde9;
  border-radius: 12px;
  font-size: 0.96rem;
  color: #17324d;
  background: #f9fbfd;
}

.catalog-search-controls .btn {
  padding: 10px 20px;
}

.catalog-search-controls input:focus {
  outline: none;
  border-color: #005baa;
  box-shadow: 0 0 0 3px rgba(0,91,170,0.12);
}

.catalog-filter-panel {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(10,42,77,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.catalog-filter-body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin-top: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dce8f5;
  box-shadow: 0 18px 42px rgba(10,42,77,0.14);
  z-index: 8;
}

.catalog-filter-body-static {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.catalog-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.catalog-filter-header h3 {
  color: #0a2a4d;
  font-size: 1.05rem;
}

.catalog-clear-btn {
  padding: 0;
  border: none;
  background: none;
  color: #005baa;
  font-weight: 700;
  cursor: pointer;
}

.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: #f9fbfd;
  color: #17324d;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.catalog-chip:hover,
.catalog-chip.is-active {
  border-color: #005baa;
  background: #0a2a4d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,91,170,0.18);
  transform: translateY(-1px);
}

.catalog-results-bar {
  display: none;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 26px;
}

.catalog-pagination[hidden] {
  display: none;
}

.catalog-page-btn {
  border: 1px solid #c9d7e8;
  background: #fff;
  color: #0a2a4d;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-page-btn:hover {
  border-color: #8cb4da;
  color: #005baa;
}

.catalog-page-btn.is-active {
  background: #005baa;
  border-color: #005baa;
  color: #fff;
}

.catalog-page-btn.is-disabled,
.catalog-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.catalog-page-prev,
.catalog-page-next {
  min-width: 96px;
}

.catalog-page-gap {
  color: #7a8fa6;
  font-weight: 700;
  padding: 0 2px;
}

.catalog-status {
  color: #4b5c70;
  font-weight: 600;
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
  align-items: stretch;
}

.catalog-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0,91,170,0.08);
  box-shadow: 0 18px 42px rgba(10,42,77,0.09);
  padding: 14px;
  width: 100%;
  max-width: 320px;
  justify-self: center;
  background: #fff;
}

.catalog-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(10,42,77,0.14);
}

.catalog-product-hit {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}

.catalog-product-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.catalog-product-media-shell {
  position: relative;
}

.catalog-product-hit:focus-visible {
  outline: 3px solid rgba(0,91,170,0.30);
  outline-offset: -3px;
}

.catalog-product-media {
  position: relative;
  height: 244px;
  padding: 0px;
}

.catalog-product-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.catalog-product-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #fff;
  border-radius: 12px;
}

.catalog-product-slide.is-active {
  display: block;
}

.catalog-product-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.catalog-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  background: rgba(255,255,255,0.68);
  color: #111827;
  font-size: 1.45rem;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 6px 14px rgba(10,42,77,0.18);
}

.catalog-media-nav:hover {
  background: rgba(255,255,255,0.86);
}

.catalog-media-nav-prev {
  left: 0px;
}

.catalog-media-nav-next {
  right: 0px;
}

.catalog-product-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-product-media-placeholder span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0,91,170,0.12);
  color: #005baa;
  font-size: 2rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 8px 8px;
  text-align: center;
  align-items: center;
}

.catalog-product-header {
  margin-bottom: 12px;
  width: 100%;
}

.catalog-product-overline {
  margin-bottom: 8px;
  color: #5d7895;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catalog-product-card h3 {
  color: #0a2a4d;
  font-size: 1.2rem;
  line-height: 1.35;
}

.catalog-product-summary {
  color: #45576a;
  line-height: 1.7;
}

.catalog-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5fb;
  color: #0a2a4d;
  font-size: 0.86rem;
  font-weight: 600;
}

.catalog-product-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
}

.catalog-product-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  background: #005baa;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
}

.catalog-product-cta::after {
  content: ' →';
}

.catalog-product-cta:hover {
  background: #003e7a;
}

.catalog-empty,
.catalog-noscript {
  margin-top: 22px;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(10,42,77,0.08);
}

.catalog-empty h3 {
  margin-bottom: 10px;
  color: #0a2a4d;
}

.catalog-empty p,
.catalog-noscript {
  color: #4b5c70;
  line-height: 1.7;
}

.catalog-detail-hero {
  padding-bottom: 34px;
}

.catalog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
}

.catalog-breadcrumbs a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}

.catalog-breadcrumbs a:hover {
  color: #fff;
}

.catalog-breadcrumbs strong {
  color: #fff;
}

.catalog-detail-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 700;
}

.catalog-detail-back:hover {
  color: #fff;
}

.catalog-detail-back::before {
  content: '←';
  margin-right: 8px;
}

.catalog-detail-section {
  padding-top: 0;
}

.catalog-detail-card {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(10,42,77,0.10);
}

.catalog-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-detail-media-wrap {
  position: sticky;
  top: 24px;
}

.catalog-detail-media {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef5fb 0%, #f9fcff 100%);
  border: 1px solid rgba(0,91,170,0.08);
}

.catalog-detail-main-media-btn,
.catalog-detail-media-placeholder {
  width: 100%;
  border-radius: 16px;
}

.catalog-detail-main-media-btn {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.catalog-detail-main-media-btn > img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
}

.catalog-detail-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background: #fff;
}

.catalog-detail-media-placeholder span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(0,91,170,0.12);
  color: #005baa;
  font-size: 2.4rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.catalog-detail-gallery button {
  display: block;
  cursor: pointer;
  border: 1px solid rgba(0,91,170,0.08);
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}

.catalog-detail-gallery button.is-active {
  border-color: rgba(0,91,170,0.45);
  box-shadow: 0 0 0 2px rgba(0,91,170,0.12) inset;
}

.catalog-detail-gallery img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.catalog-detail-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.catalog-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid #e3ebf2;
}

.catalog-detail-meta-item strong {
  color: #0a2a4d;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-detail-meta-item span {
  color: #45576a;
  font-weight: 600;
}

.catalog-detail-description {
  color: #45576a;
  line-height: 1.8;
  font-size: 1rem;
}

.catalog-detail-actions {
  padding-top: 6px;
}

.catalog-detail-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.catalog-detail-panel {
  padding: 22px;
  border-radius: 20px;
  background: #f9fbfd;
  border: 1px solid #e3ebf2;
}

.catalog-detail-panel h3 {
  margin-bottom: 14px;
  color: #0a2a4d;
  font-size: 1.08rem;
}

.catalog-detail-attributes {
  display: grid;
  gap: 12px;
}

.catalog-detail-attribute {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dde7ef;
}

.catalog-detail-attribute:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.catalog-detail-attribute strong {
  color: #0a2a4d;
}

.catalog-detail-attribute span {
  color: #4b5c70;
  text-align: right;
}

.catalog-detail-documents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-detail-document {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #005baa;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,91,170,0.14);
}

.catalog-detail-document:hover {
  background: #eef5fb;
}

.catalog-detail-document::after {
  content: '↗';
  margin-left: 8px;
}

.catalog-detail-document-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  padding: 0;
  justify-content: center;
  font-size: 1.6rem;
}

.catalog-detail-document-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.45rem;
  line-height: 1;
}

.catalog-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-detail-document-icon::after {
  content: '';
  margin: 0;
}

.catalog-detail-document-icon.is-pdf {
  color: #b91c1c;
}

.catalog-detail-document-icon.is-excel {
  color: #166534;
}

.catalog-detail-document-icon.is-word {
  color: #1d4ed8;
}

.catalog-detail-document-icon.is-zip {
  color: #7c3aed;
}

.catalog-detail-document-icon.is-image {
  color: #0ea5e9;
}

.catalog-detail-document-icon.is-video {
  color: #0f766e;
}

.catalog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 18, 31, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.catalog-lightbox[hidden] {
  display: none;
}

.catalog-lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.catalog-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.24);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

html.catalog-lightbox-open,
body.catalog-lightbox-open {
  overflow: hidden;
}

.catalog-related-section {
  margin-top: 30px;
}

.catalog-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-section-head h3 {
  color: #0a2a4d;
  font-size: 1.2rem;
}

.catalog-section-head a {
  color: #005baa;
  font-weight: 700;
  text-decoration: none;
}

.catalog-section-head a:hover {
  color: #003e7a;
}

.home-featured-grid {
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
}

.home-featured-card {
  height: 100%;
}

@media (max-width: 900px) {
  .catalog-page-container {
    max-width: 100%;
  }

  .catalog-toolbar {
    align-items: stretch;
  }

  .catalog-search-controls {
    flex-direction: column;
  }

  .catalog-pagination {
    justify-content: flex-start;
  }

  .catalog-page-prev,
  .catalog-page-next {
    min-width: 88px;
  }

  .catalog-product-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-product-actions {
    padding-top: 0;
  }

  .catalog-detail-grid,
  .catalog-detail-extra {
    grid-template-columns: 1fr;
  }

  .catalog-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-detail-media-wrap {
    position: static;
  }
}

@media (max-width: 768px) {
  .catalog-hero-section {
    padding: 22px 0 36px;
  }

  .catalog-hero-section h2 {
    font-size: 1.45rem;
  }

  .catalog-page-section {
    padding-top: 0;
    padding-bottom: 42px;
  }

  .catalog-page-section .catalog-page-container {
    margin-top: -20px;
  }

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

  .catalog-filter-body {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 10px;
  }

  .catalog-filter-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-product-media {
    height: 200px;
  }

  .catalog-detail-card {
    padding: 18px;
  }

  .catalog-detail-media {
    padding: 12px;
  }

  .catalog-detail-media-placeholder {
    min-height: 240px;
  }

  .catalog-detail-attribute {
    flex-direction: column;
  }

  .catalog-detail-attribute span {
    text-align: left;
  }
}
