/* ============================================================
   OMANXUS — Apple-style Design System
   ============================================================ */
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
 
:root {
  --black:    #000000;
  --grey-1:   #1d1d1f;
  --grey-2:   #424245;
  --grey-3:   #6e6e73;
  --grey-4:   #a1a1a6;
  --grey-5:   #d2d2d7;
  --grey-6:   #f5f5f7;
  --white:    #ffffff;
  --gold:     #c9a84c;
  --gold-dim: rgba(201,168,76,0.15);
  --blue:     #0071e3;
 
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
 
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow:    0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
 
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}
 
html { scroll-behavior: smooth; font-size: 20px; }
 
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--white);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
 
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
 
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
 
/* ============================================================
   NAV
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background var(--duration) var(--ease);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
 
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--black);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
 
#main-nav {
  display: flex;
  gap: 4px;
}
 
#main-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-2);
  padding: 6px 12px;
  border-radius: 20px;
  transition: color var(--duration), background var(--duration);
}
 
#main-nav a:hover {
  color: var(--black);
  background: rgba(0,0,0,0.06);
}
 
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
 
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey-1);
  border-radius: 2px;
  transition: transform var(--duration), opacity var(--duration);
}

.nav-teaxul {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--gold);
  line-height: 1;
}
 
/* ============================================================
   HERO
   ============================================================ */

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,15,0.7) 0%, rgba(10,10,30,0.5) 100%);
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white); border-top: 1px solid var(--grey-5);
  padding: 80px 32px 60px;
}
 
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,113,227,0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center/cover no-repeat;
  opacity: 0.10;
  z-index: 0;
}
 
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
 
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}
 
#hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 24px;
}
 
#hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), #e8c96a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
 
#hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}
 
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
 
.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
}
 
.hero-stat span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
 
.hero-stat small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}
 
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
 
.hero-scroll span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
  border-radius: 2px;
}
 
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}
 
/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background var(--duration), transform var(--duration), box-shadow var(--duration);
  letter-spacing: 0.3px;
}
 
.btn-primary:hover {
  background: #e0b95a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
 
.btn-primary.full { width: 100%; justify-content: center; }
 
.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 980px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--duration), color var(--duration);
}
 
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}
 
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 980px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: background var(--duration), border-color var(--duration);
}
 
.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
 
/* ============================================================
   SECTION COMMONS
   ============================================================ */
section { padding: 110px 0; }
.section-dark { background: var(--grey-1); }
.section-dark * { --base-text: rgba(255,255,255,0.7); }
 
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
 
.section-eyebrow.light { color: var(--gold); }
 
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--grey-1);
  margin-bottom: 56px;
}
 
.section-title.light { color: var(--white); }
 
.section-dark .section-title { color: var(--white); }
/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
 
.qs-wide { grid-column: 1 / -1; }

/* ── Qué Hacemos — Full Width Showcase ── */
.qh-showcase {
  margin-top: 48px;
  padding: 56px 0;
  background: linear-gradient(135deg, rgba(13,13,16,0.88) 0%, rgba(26,26,34,0.90) 50%, rgba(13,13,16,0.88) 100%),
              url('uploads/qh-bg-chip.png') center/cover no-repeat;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  position: relative;
  overflow: hidden;
}
.qh-showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.qh-showcase h3 {
  text-align: center;
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.qh-strip {
  display: flex;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  justify-content: center;
}
.qh-item {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.qh-item:hover {
  transform: scale(1.18);
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(201,168,76,0.25), 0 0 0 2px rgba(201,168,76,0.4);
  z-index: 10;
}
.qh-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(201,168,76,0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}
.qh-item:hover .qh-icon {
  background: rgba(201,168,76,0.25);
  transform: scale(1.2);
}
.qh-icon svg {
  width: 26px; height: 26px;
  color: var(--gold);
}
.qh-item span {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.3px;
}
@media (max-width: 900px) {
  .qh-strip { flex-wrap: wrap; }
  .qh-item { flex: 1 1 calc(50% - 8px); min-width: 160px; }
}
@media (max-width: 520px) {
  .qh-strip { flex-direction: column; }
  .qh-item { flex: 1 1 100%; }
  .qh-showcase h3 { font-size: 1.3rem; }
}
 
.qs-card {
  background: var(--grey-6);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
 
.qs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--duration);
}
 
.qs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.qs-card:hover::before { opacity: 1; }
 
.qs-card-icon { font-size: 2rem; margin-bottom: 16px; }
 
.qs-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--grey-1);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
 
.qs-card p {
  font-size: 0.93rem;
  color: var(--grey-3);
  line-height: 1.65;
}
 
.qs-card p strong { color: var(--grey-1); }
 
.qs-list {
  list-style: none;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.qs-list li {
  font-size: 0.9rem;
  color: var(--grey-3);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
 
.arrow { color: var(--gold); font-weight: 700; }
 
.qs-badge {
  display: inline-block;
  background: #f0f0f0;
  color: var(--grey-2);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}
 
.qs-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
 
.qs-service-item {
  background: var(--white);
  border: 1px solid var(--grey-5);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--grey-2);
  font-weight: 500;
  transition: border-color var(--duration), box-shadow var(--duration);
}
 
.qs-service-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,168,76,0.1);
}
 
/* ============================================================
   CONÓCENOS
   ============================================================ */
.cn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
 
.cn-full { grid-column: 1 / -1; }
 
.cn-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color var(--duration), transform var(--duration);
}
 
.cn-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-3px);
}
 
.cn-card-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -2px;
  pointer-events: none;
}
 
.cn-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
 
.cn-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 10px; }
.cn-card p strong { color: rgba(255,255,255,0.85); }
.cn-intro { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
 
.cn-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
 
.cn-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
 
.cn-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
 
.cn-step strong { display: block; font-size: 0.85rem; color: var(--white); margin-bottom: 3px; }
.cn-step p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin: 0; }
 
.cn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
 
.cn-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.62);
  padding-left: 4px;
}
 
.cn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
 
.cn-tags span {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}
 
.cn-warn { color: rgba(255,200,80,0.85) !important; font-weight: 600; }
.cn-ok   { color: rgba(80,200,120,0.85) !important; font-weight: 600; margin-top: 12px !important; }
.cn-divider {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
 
/* ============================================================
   CAPACIDADES GRID
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.cap-card {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 28px 16px 22px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--duration), border-color var(--duration), background var(--duration), box-shadow var(--duration);
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.cap-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid rgba(0,0,0,0.06);
}
.cap-card span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-1);
  line-height: 1.35;
  letter-spacing: 0.3px;
}
.cap-card span strong {
  color: var(--grey-1);
  font-weight: 800;
}

/* Cap Modal */
.cap-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cap-modal.active { opacity: 1; pointer-events: auto; }
.cap-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.cap-modal-content {
  position: relative;
  background: var(--grey-1);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  max-width: 820px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}
.cap-modal.active .cap-modal-content { transform: translateY(0); }
.cap-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--grey-3);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.cap-modal-close:hover { color: var(--white); }
.cap-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-right: 40px;
}
.cap-modal-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.cap-modal-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.cap-modal-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 24px 0 12px;
}
.cap-modal-body strong { color: var(--white); }
.cap-modal-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin: 20px 0 8px;
}
.cap-modal-body ul, .cap-modal-body ol { padding-left: 20px; margin: 12px 0; }
.cap-modal-body li { margin-bottom: 6px; }
.cap-modal-body p { margin-bottom: 12px; }
.cap-modal-body table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.85rem; }
.cap-modal-body table th, .cap-modal-body table td { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.15); }
.cap-modal-body table th { background: rgba(255,255,255,0.06); color: var(--white); font-weight: 600; }
.cap-modal-body table td { color: rgba(255,255,255,0.7); }
.cap-modal-body img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.cap-modal-body blockquote { border-left: 3px solid var(--gold); padding: 10px 16px; margin: 16px 0; font-style: italic; background: rgba(255,255,255,0.04); border-radius: 0 6px 6px 0; }
.cap-modal-body a { color: var(--gold); text-decoration: underline; }
.cap-modal-body a:hover { color: var(--white); }
.cap-modal-body hr { margin: 20px 0; border: none; border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 768px) {
  .cap-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .cap-card { padding: 16px 10px 14px; }
  .cap-card img { width: 60px; height: 60px; }
  .cap-modal-content { padding: 28px 20px; }
}
 
/* ============================================================
   INVESTIGADOR
   ============================================================ */
.section-investigador {
  position: relative;
  background: #0a0a0f;
}

.section-investigador::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.section-investigador::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,15,0.85) 0%, rgba(10,10,30,0.75) 100%);
  z-index: 0;
}

.section-investigador > .container {
  position: relative;
  z-index: 1;
}

.inv-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
 
.inv-photo-col { text-align: center; }
 
.inv-photo-wrap {
  width: 240px;
  height: 300px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  overflow: hidden;
  margin: 0 auto 16px;
}

.inv-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
 
.inv-photo-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
 
.inv-photo-info span {
  font-size: 0.78rem;
  color: var(--grey-4);
}
 
.inv-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
 
.inv-company {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}
 
.inv-bio p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  margin-bottom: 14px;
}
 
.inv-bio p strong { color: rgba(255,255,255,0.9); }
 
.inv-section { margin: 24px 0; }
 
.inv-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
 
.inv-section p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 12px;
}
 
.inv-section p strong { color: rgba(255,255,255,0.88); }
 
.inv-patents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
 
.inv-patent {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
 
.inv-note {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255,255,255,0.45) !important;
  margin-top: 8px;
}
 
.inv-quote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(201,168,76,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
 
.inv-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}
 
.inv-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
 
/* ============================================================
   CONTACTO
   ============================================================ */
#contacto {
  position: relative;
  background: var(--white);
}
#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('formulas-contact-bg.png') center/cover no-repeat;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
#contacto > .container {
  position: relative;
  z-index: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
 
.contact-intro {
  font-size: 1rem;
  color: var(--grey-3);
  line-height: 1.7;
  margin-bottom: 36px;
}
 
.contact-items { display: flex; flex-direction: column; gap: 20px; }
 
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--grey-6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-5);
}
 
.contact-item > span { font-size: 1.3rem; margin-top: 2px; color: var(--gold); }
 
.contact-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 3px;
}
 
.contact-item p { font-size: 0.9rem; color: var(--grey-1); font-weight: 500; }
 
.contact-form { display: flex; flex-direction: column; gap: 16px; }
 
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
 
.form-group { display: flex; flex-direction: column; gap: 6px; }
 
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--grey-2);
  text-transform: uppercase;
}
 
.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--grey-5);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.93rem;
  color: var(--grey-1);
  background: var(--white);
  outline: none;
  transition: border-color var(--duration), box-shadow var(--duration);
}
 
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-4);
}
 
.form-group textarea { resize: vertical; }
 
.form-success {
  background: #ecfdf5;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #a7f3d0;
}

.form-error {
  background: #fef2f2;
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #fecaca;
}

/* Checkbox de privacidad */
.form-checkbox {
  margin: 8px 0 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 2px solid var(--grey-4);
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--gold);
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-custom::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  display: block;
}

.checkbox-text {
  font-size: 0.85rem;
  color: var(--grey-3);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-text a:hover {
  color: #e0b95a;
}

/* Texto legal del formulario */
.form-legal-text {
  font-size: 11px;
  color: var(--grey-4);
  line-height: 1.6;
  margin-top: 16px;
  text-align: justify;
}

/* WhatsApp Floating Button - REMOVED, using widget instead */
 
/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
 
.blog-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
 
.blog-card:hover {
  transform: scale(1.06);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.2);
  z-index: 10;
}
 
.blog-img { height: 180px; background: linear-gradient(135deg, #1a2a4a, #0d1b2a); overflow: hidden; transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.blog-img.sm { height: 120px; }
.blog-card:hover .blog-img { height: 260px; }
 
.blog-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
 
.blog-tag {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
 
.blog-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0;
  letter-spacing: -0.3px;
  transition: margin-bottom 0.3s var(--ease);
}

.blog-card:hover h3 {
  margin-bottom: 10px;
}
 
.blog-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-bottom 0.3s var(--ease);
}

.blog-card:hover p {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 16px;
}
 
.blog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  border-top: none;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding-top 0.3s var(--ease);
}

.blog-card:hover .blog-foot {
  max-height: 60px;
  opacity: 1;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
 
.read-more {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  transition: opacity var(--duration);
}
 
.read-more:hover { opacity: 0.7; }

/* Blog card scroll reveal */
.blog-card {
  opacity: 0;
  transform: translateY(30px);
  animation: blogReveal 0.6s var(--ease) forwards;
}
.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.15s; }
.blog-card:nth-child(3) { animation-delay: 0.25s; }
.blog-card:nth-child(4) { animation-delay: 0.35s; }
.blog-card:nth-child(5) { animation-delay: 0.45s; }
.blog-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes blogReveal {
  to { opacity: 1; transform: translateY(0); }
}
 
.blog-cta { text-align: center; }
 
/* ============================================================
   FOOTER
   ============================================================ */

/* Mapa de contacto */
.contact-map {
  margin-top: 48px;
  margin-bottom: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
}

#contacto {
  padding-bottom: 0;
}

#blog {
  padding-top: 64px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* Lista de patentes con puntos */
.inv-patents-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
}

.inv-patents-list li {
  font-size: 0.9rem;
  color: var(--grey-4);
  line-height: 1.5;
}

.inv-patents-list li span {
  color: rgba(255,255,255,0.85);
}

#footer {
  background: var(--white); border-top: 1px solid var(--grey-5);
  padding: 72px 32px 40px;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('circuit-bg.png') center/cover no-repeat;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}
#footer > .footer-inner {
  position: relative;
  z-index: 1;
}
 
.footer-inner { max-width: 1120px; margin: 0 auto; }
 
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--grey-5);
  gap: 40px;
  flex-wrap: wrap;
}
 
.footer-brand .logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--grey-1);
  display: block;
  margin-bottom: 8px;
}
 
.footer-brand p {
  font-size: 0.82rem;
  color: var(--grey-3);
  line-height: 1.6;
}
 
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: flex-end;
}
 
.footer-nav a {
  font-size: 0.82rem;
  color: var(--grey-3);
  padding: 6px 14px;
  border-radius: 20px;
  transition: color var(--duration), background var(--duration);
  font-weight: 500;
}
 
.footer-nav a:hover {
  color: var(--grey-1);
  background: var(--grey-6);
}
 
.footer-legal a:hover {
  color: var(--gold);
}

.footer-bottom { 
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--grey-5);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--grey-4);
}

.footer-legal {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--grey-4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--gold);
}

.footer-sep {
  margin: 0 12px;
  color: var(--grey-4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .qs-grid,
  .cn-grid,
  .contact-layout,
  .inv-layout { grid-template-columns: 1fr; }
 
  .qs-wide, .cn-full { grid-column: auto; }
  .blog-grid { grid-template-columns: 1fr; }
  .cn-steps { grid-template-columns: 1fr; }
  .inv-patents { grid-template-columns: 1fr; }
}
 
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
 
  #main-nav {
    display: none;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 16px;
    flex-direction: column;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
 
  #main-nav.open { display: flex; }
 
  #main-nav a {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
  }
 
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
}
 
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .inv-actions { flex-direction: column; }
  .qs-services { grid-template-columns: 1fr; }
}


/* ── Parallax Background ── */
.section-parallax {
  position: relative;
}
.section-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('formulas-bg.png') center/cover no-repeat;
  background-attachment: fixed;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.section-parallax > .container {
  position: relative;
  z-index: 1;
}

/* ── Blog Post Modal ── */
.blog-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.blog-modal.active {
  display: flex;
}
.blog-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.blog-modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 720px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.blog-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #6e6e73;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.blog-modal-close:hover {
  color: #1d1d1f;
}
.blog-modal-img {
  width: calc(100% + 80px);
  margin: -48px -40px 0;
  margin-bottom: 28px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.blog-modal-img img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-modal-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}
.blog-modal-tag {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: #c9a84c;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.blog-modal-header h2 {
  font-size: 1.6rem;
  color: #1d1d1f;
  line-height: 1.3;
  margin-bottom: 8px;
}
.blog-modal-date {
  font-size: 0.8rem;
  color: #6e6e73;
}
.blog-modal-body {
  color: #1d1d1f;
  font-size: 1rem;
  line-height: 1.8;
}
.blog-modal-body p {
  margin-bottom: 16px;
}
.blog-modal-body h1, .blog-modal-body h2, .blog-modal-body h3 {
  margin: 24px 0 12px;
  color: #1d1d1f;
}
.blog-modal-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}
.blog-modal-body ul, .blog-modal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.blog-modal-body blockquote {
  border-left: 3px solid #c9a84c;
  padding-left: 16px;
  margin: 16px 0;
  color: #6e6e73;
  font-style: italic;
}
@media (max-width: 600px) {
  .blog-modal-content { padding: 32px 20px; }
  .blog-modal-header h2 { font-size: 1.25rem; }
  .section-parallax::before { background-attachment: scroll; }
}


/* ============================================================
   LIGHTBOX — Capacidades images
   ============================================================ */
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.img-lightbox.active {
  display: flex;
}
.img-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}
.img-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  animation: lbFadeIn 0.25s ease;
}
.img-lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.img-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  color: var(--grey-1);
}
.img-lightbox-close:hover {
  transform: scale(1.1);
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Capacidades modal images clickable */
.cap-modal-body img {
  cursor: pointer;
  transition: opacity 0.2s;
}
.cap-modal-body img:hover {
  opacity: 0.85;
}
