:root {
  --primary: #0d9488;
  --primary-dark: #115e59;
  --primary-light: #5eead4;
  --accent: #06b6d4;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #1e293b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

a:hover { color: var(--primary-dark); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  color: white;
  font-weight: 700;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px rgba(6, 182, 212, 0.28));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.06); }

.logo-text {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.logo-text-1 { color: inherit; font-weight: 500; }
.logo-text-2 {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 60%, #0e7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 24px;
    flex-direction: column;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .menu-toggle { display: block; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15), transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero .badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* ---------- SECTIONS ---------- */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header .eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ---------- FEATURES ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(6, 182, 212, 0.1));
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CATALOG ---------- */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: all var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 0.9rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}

.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-image {
  aspect-ratio: 4 / 3;
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.07) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(13, 148, 136, 0.18), transparent 65%);
  pointer-events: none;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 30%, transparent 80%, rgba(13, 148, 136, 0.05));
  pointer-events: none;
}

.product-image .vial {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 92%;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.18)) drop-shadow(0 0 24px rgba(13, 148, 136, 0.18));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .vial {
  transform: translateY(-6px) scale(1.03);
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-footer .price {
  font-weight: 600;
  color: var(--text);
}

.product-footer a {
  font-size: 0.9rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* ---------- PRODUCT DETAIL ---------- */
.detail {
  padding: 60px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

.detail-image {
  aspect-ratio: 1;
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.07) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.detail-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(13, 148, 136, 0.22), transparent 70%);
  pointer-events: none;
}

.detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 30%, transparent 80%, rgba(13, 148, 136, 0.06));
  pointer-events: none;
}

.detail-image .vial {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 92%;
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.22)) drop-shadow(0 0 36px rgba(13, 148, 136, 0.25));
}

.detail-info .product-cat { font-size: 0.85rem; }

.detail-info h1 {
  font-size: 2.4rem;
  margin: 12px 0 16px;
}

.detail-info .resumen {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.spec {
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-value { font-weight: 600; }

.detail-section {
  margin-bottom: 32px;
}

.detail-section h3 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

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

.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .benefits-list { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(13, 148, 136, 0.05);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.benefits-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* ---------- ABOUT / CONTACT ---------- */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.content-page h1 { margin-bottom: 24px; }
.content-page h2 { margin: 40px 0 16px; }
.content-page p { color: var(--text-muted); margin-bottom: 16px; }

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  max-width: 560px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: all var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 64px 24px 32px;
  margin-top: 80px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.disclaimer {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin: 32px auto;
  max-width: var(--max-width);
}
