:root {
  --j-navy: #0a2a52;
  --j-navy-dark: #071d3a;
  --j-blue: #0e6ba8;
  --j-steel: #7a8894;
  --j-bg-alt: #f4f6f8;
  --j-white: #ffffff;
  --j-text: #263238;
  --j-text-light: #5b6a70;
  --j-radius: 10px;
  --j-shadow: 0 4px 16px rgba(10, 42, 82, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--j-text);
  line-height: 1.6;
  background: var(--j-white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.j-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.j-header {
  background: var(--j-navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.j-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.j-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--j-white);
}

.j-nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
}

.j-nav-list a {
  color: var(--j-white);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.j-nav-list a:hover {
  opacity: 1;
}

/* Hero */
.j-hero {
  width: 100%;
  background: var(--j-navy-dark);
  display: flex;
  justify-content: center;
}

.j-hero-img {
  width: 100%;
  max-width: 1400px;
  height: auto;
}

/* Intro */
.j-intro {
  padding: 70px 0;
  text-align: center;
}

.j-intro h1 {
  font-size: 2rem;
  color: var(--j-navy);
  margin-bottom: 18px;
}

.j-intro > .j-container > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--j-text-light);
  font-size: 1.05rem;
}

.j-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.j-badge {
  background: var(--j-bg-alt);
  border-radius: var(--j-radius);
  padding: 26px;
  border-top: 4px solid var(--j-blue);
}

.j-badge h3 {
  color: var(--j-navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.j-badge p {
  color: var(--j-text-light);
  font-size: 0.92rem;
}

/* Productos */
.j-productos {
  padding: 70px 0;
  background: var(--j-bg-alt);
}

.j-section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--j-navy);
  margin-bottom: 8px;
}

.j-section-title-left {
  font-size: 1.8rem;
  color: var(--j-navy);
  margin-bottom: 18px;
}

.j-section-subtitle {
  text-align: center;
  color: var(--j-text-light);
  margin-bottom: 40px;
}

.j-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.j-product-card {
  background: var(--j-white);
  border: 1px solid #e6e9ec;
  border-radius: var(--j-radius);
  overflow: hidden;
  box-shadow: var(--j-shadow);
  cursor: pointer;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.j-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(10, 42, 82, 0.16);
}

.j-product-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--j-blue);
  margin-bottom: 6px;
}

.j-product-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--j-navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-height: 40px;
  margin-bottom: 16px;
}

.j-product-photo {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.j-product-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.j-product-desc {
  font-size: 0.8rem;
  color: var(--j-text-light);
  margin-top: 14px;
  line-height: 1.45;
}

.j-benefits {
  background: var(--j-navy-dark);
  margin-top: 60px;
  padding: 34px 0;
}

.j-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.j-benefit h4 {
  color: var(--j-white);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.j-benefit p {
  color: #b7c3cf;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .j-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .j-shop-grid {
    grid-template-columns: 1fr;
  }
}

/* Contacto */
.j-contacto {
  padding: 70px 0;
}

.j-contacto p {
  margin-bottom: 10px;
  color: var(--j-text-light);
}

.j-contacto a {
  color: var(--j-blue);
  font-weight: 600;
}

/* Footer */
.j-footer {
  background: var(--j-navy-dark);
  color: var(--j-white);
  text-align: center;
  padding: 22px 0;
  font-size: 0.88rem;
}

/* Lightbox */
.j-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 29, 58, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

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

.j-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
}

.j-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--j-white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 720px) {
  .j-nav-list {
    gap: 16px;
    font-size: 0.9rem;
  }

  .j-intro h1 {
    font-size: 1.6rem;
  }
}

/* Detail modal */
.j-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 29, 58, 0.7);
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 16px;
  overflow-y: auto;
}

.j-detail-modal.open {
  display: flex;
}

.j-detail-panel {
  background: var(--j-white);
  border-radius: 16px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.j-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 60px 20px 28px;
  position: relative;
  border-bottom: 1px solid #e6e9ec;
}

.j-detail-num {
  flex-shrink: 0;
  background: var(--j-navy);
  color: var(--j-white);
  font-size: 1.6rem;
  font-weight: 800;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.j-detail-title h2 {
  color: var(--j-navy);
  font-size: 1.4rem;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.j-detail-title p {
  color: var(--j-text-light);
  font-size: 0.95rem;
}

.j-detail-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--j-steel);
  cursor: pointer;
}

.j-detail-close:hover {
  color: var(--j-navy);
}

.j-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 28px;
}

.j-detail-main-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.j-detail-main-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.j-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.j-detail-thumb {
  border: 1px solid #e6e9ec;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  background: var(--j-white);
}

.j-detail-thumb .j-detail-thumb-photo {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.j-detail-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.j-detail-thumb span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--j-navy);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.j-detail-block {
  margin-bottom: 24px;
}

.j-detail-block:last-child {
  margin-bottom: 0;
}

.j-detail-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--j-navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.j-detail-block-title .j-icon {
  width: 22px;
  height: 22px;
  color: var(--j-blue);
  flex-shrink: 0;
}

.j-detail-description p {
  color: var(--j-text-light);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.j-detail-features {
  list-style: none;
}

.j-detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--j-text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.j-detail-features .j-icon {
  width: 18px;
  height: 18px;
  color: var(--j-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.j-detail-specs-section {
  padding: 0 28px 24px;
}

.j-detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.j-detail-spec {
  background: var(--j-bg-alt);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.j-detail-spec .j-icon {
  width: 26px;
  height: 26px;
  color: var(--j-blue);
  margin: 0 auto 8px;
}

.j-detail-spec strong {
  display: block;
  color: var(--j-navy);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.j-detail-spec span {
  display: block;
  color: var(--j-text-light);
  font-size: 0.72rem;
  line-height: 1.4;
}

.j-detail-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6e9ec;
  border-radius: 10px;
}

.j-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

.j-detail-table th {
  background: var(--j-navy);
  color: var(--j-white);
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
}

.j-detail-table td {
  padding: 10px 14px;
  color: var(--j-text);
  border-top: 1px solid #e6e9ec;
}

.j-detail-table tbody tr:nth-child(even) {
  background: var(--j-bg-alt);
}

.j-row-clickable {
  cursor: pointer;
  transition: background 0.15s;
}

.j-row-clickable:hover {
  background: #e4edf5 !important;
}

.j-detail-table-specs td,
.j-detail-table-specs th {
  border-top: 1px solid #e6e9ec;
}

.j-detail-table-specs th {
  background: var(--j-bg-alt);
  color: var(--j-navy);
  font-weight: 700;
  width: 45%;
}

.j-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--j-blue);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0 14px;
}

.j-detail-back .j-icon {
  width: 16px;
  height: 16px;
}

.j-detail-back:hover {
  text-decoration: underline;
}

.j-detail-footer {
  display: flex;
  gap: 14px;
  padding: 0 28px 28px;
  flex-wrap: wrap;
}

.j-detail-btn {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.j-detail-btn .j-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.j-detail-btn strong {
  display: block;
  font-size: 0.9rem;
}

.j-detail-btn span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.j-detail-btn-primary {
  background: var(--j-navy);
  color: var(--j-white);
}

.j-detail-btn-secondary {
  background: var(--j-white);
  color: var(--j-navy);
  border: 1.5px solid var(--j-navy);
}

@media (max-width: 760px) {
  .j-detail-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .j-detail-header {
    padding: 22px 50px 16px 18px;
  }

  .j-detail-specs-section {
    padding: 0 18px 20px;
  }

  .j-detail-footer {
    padding: 0 18px 22px;
  }
}
