﻿:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --card: #ffffff;
  --primary: #b11a1a;
  --primary-dark: #7d0f0f;
  --accent: #d22d2d;
  --text: #1c1c1c;
  --muted: #5d5d5d;
  --border: #e0e0e0;
  --shadow: rgba(17, 17, 17, 0.12);
}

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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero--center .hero-content {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.hero--center .hero-content > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero--center .hero-actions {
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 1rem 0;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-banner {
  margin-top: 50px;
  width: min(1100px, 100%);
  text-align: center;
}

.hero-banner-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.hero-banner-media img,
.hero-banner-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 3px solid var(--primary);
  animation: pulseFade 6s ease-in-out infinite;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.hero-banner-media .is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  display: block;
}

.hero-banner-media img {
  z-index: 1;
}

.hero-banner img {
  width: 100%;
}

.hero-banner-dots {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero-banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-banner-dots button.is-active {
  background: var(--primary);
}

.hero-banner p {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
}

@keyframes pulseFade {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

button,
.btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

.primary {
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: background 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.primary:hover {
  background: var(--primary-dark);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border 0.2s ease, color 0.2s ease;
}

.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-card {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 16px 40px var(--shadow);
}

.hero-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.categories,
.products {
  padding: 3rem 0;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title p {
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  transition: border 0.2s ease, transform 0.2s ease;
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.category-card--life {
  background: linear-gradient(120deg, rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.15)),
    url("Imagenes%20Para%20Sitio/Imagen%20Life%20Sciences.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

.category-card--life .tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.category-card--life h3,
.category-card--life p {
  color: #fff;
}

.category-card--process {
  background: linear-gradient(120deg, rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.15)),
    url("Imagenes%20Para%20Sitio/Imagen%20Para%20Process%20Solution.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

.category-card--process .tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.category-card--process h3,
.category-card--process p {
  color: #fff;
}

.category-card--digital {
  background: linear-gradient(120deg, rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.15)),
    url("Imagenes%20Para%20Sitio/Dise%C3%B1o%20Software%20a%20Medida.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

.category-card--digital .tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.category-card--digital h3,
.category-card--digital p {
  color: #fff;
}

.tag {
  display: inline-block;
  background: rgba(177, 26, 26, 0.12);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.products-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
  align-items: center;
  text-align: center;
}

.product-card h3 {
  font-size: 1.1rem;
}

.product-card p {
  color: var(--muted);
}

.product-image {
  width: 100%;
  height: 140px;
  max-width: 260px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto;
}


.product-card a,
.product-card button {
  margin-top: auto;
  align-self: center;
}

.detail {
  padding: 3rem 0 4rem;
  background: #f2f2f2;
}

.detail-card {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 12px 30px var(--shadow);
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.detail-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0.75rem 0 1rem;
}

.detail-image-secondary {
  margin-top: -0.25rem;
}

.detail-video {
  margin-top: 1.5rem;
  text-align: left;
}

.detail-video h3 {
  margin-bottom: 0.75rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border);
}

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

.detail-variants {
  margin-top: 1.5rem;
}

.detail-variants h3 {
  margin-bottom: 0.75rem;
}

.variant-list {
  display: grid;
  gap: 0.75rem;
}

.variant-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.variant-summary {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.variant-summary::after {
  content: "+";
  font-weight: 700;
}

.variant-item[open] .variant-summary::after {
  content: "–";
}

.variant-content {
  padding: 1rem;
  color: var(--text);
  background: #fafafa;
}

.variant-actions {
  margin-top: 0.75rem;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-actions h3 {
  margin-bottom: 0.5rem;
}

.detail-actions .ghost,
.detail-actions .primary {
  width: 100%;
}

.detail-actions .doc-list {
  display: grid;
  gap: 0.75rem;
}

.price-panel {
  border: 1px solid #c9dff2;
  background: linear-gradient(180deg, #f3f8fd 0%, #e6f1fb 100%);
  border-radius: 18px;
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 12px 26px rgba(24, 47, 77, 0.08);
  overflow: hidden;
}

.price-select {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  position: relative;
}

.price-select select {
  border: 1px solid #bcd4ea;
  border-radius: 10px;
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  background: #fff;
  font: inherit;
  width: 100%;
  max-width: 100%;
  appearance: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.price-select::after {
  content: "▾";
  position: absolute;
  right: 0.85rem;
  top: 2.1rem;
  color: var(--muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.price-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  border: 1px solid #d6e4f4;
  display: grid;
  gap: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.price-card .sku {
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.price-card div {
  overflow-wrap: anywhere;
}

.price-card .price-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.price-card .price-note {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.price-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
}

.price-actions input {
  width: 90px;
  border: 1px solid #bcd4ea;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.price-panel,
.price-card,
.price-select {
  box-sizing: border-box;
}

.price-panel .primary {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.price-actions .primary {
  opacity: 0.7;
  cursor: not-allowed;
}

.price-families {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-families .ghost {
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.price-families .ghost.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.whatsapp-floating {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  z-index: 20;
}

.subpage {
  padding: 2rem 0 3rem;
}

.subpage-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.subpage-header h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.brand-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.brand-category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(18, 39, 63, 0.06);
}

.brand-category-card h4 {
  margin: 0 0 0.8rem;
  font-size: 1.02rem;
}

.brand-link-list {
  display: grid;
  gap: 0.55rem;
}

.brand-link-list a {
  border: 1px solid #d9e5f0;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  color: var(--text);
  background: #f8fbff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.brand-link-list a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #fff3f3;
}

.brand-link-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-link-item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5edf5;
  padding: 0.2rem;
  flex-shrink: 0;
}

.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.resource-card a {
  font-weight: 600;
  color: var(--primary);
}

.resource-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.line-band {
  margin-top: 2rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.inline-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb .separator {
  color: var(--border);
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
}
