/* ═══════════════════════════════════════════════════
   EFFISINE — Hoja de estilos global
   Diseño: sobrio, técnico, premium
   ═══════════════════════════════════════════════════ */

:root {
  --navy:       #0d1f3c;
  --navy-mid:   #1a3560;
  --blue:       #1f5fa6;
  --blue-light: #2a7fc0;
  --green:      #3a8a3a;
  --teal:       #0f8a8a;
  --silver:     #8a9ab0;
  --off-white:  #f7f8fa;
  --gray-light: #edf0f5;
  --gray-mid:   #d0d8e4;
  --gray-dark:  #5a6a80;
  --text:       #1a2235;
  --white:      #ffffff;

  --shadow-sm:  0 1px 4px rgba(13,31,60,0.08);
  --shadow-md:  0 4px 20px rgba(13,31,60,0.10);
  --shadow-lg:  0 10px 40px rgba(13,31,60,0.14);

  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 15px;
  --line-height: 1.7;
  --max-width: 1140px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size-base); scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: var(--line-height); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 0 48px;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo img { height: 56px; width: auto; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown > a::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
}
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  min-width: 300px;
  z-index: 300;
  padding: 6px 0;
  padding-top: 14px; /* visual gap above first item, hover area is continuous */
  margin-top: 0;
}
.nav-dropdown-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 0.86rem;
  color: var(--text);
  border-radius: 0;
  border-left: 3px solid transparent;
}
.nav-dropdown-menu a:hover {
  background: var(--off-white);
  border-left-color: var(--blue);
  color: var(--navy);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 16px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--gray-dark);
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.2px;
}
.site-nav a:hover,
.site-nav a.active { color: var(--navy); background: var(--off-white); }
.site-nav .nav-cta {
  margin-left: 12px;
  background: var(--navy); color: var(--white);
  padding: 9px 22px; border-radius: 4px;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.site-nav .nav-cta:hover { background: var(--navy-mid); color: var(--white); }

/* ── LANG SWITCHER ── */
.lang-switcher {
  display: flex; align-items: center; gap: 0;
  margin-left: 16px; padding-left: 16px;
  border-left: 1px solid var(--gray-mid);
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--gray-dark);
  padding: 5px 7px; border-radius: 3px;
  font-family: var(--font);
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--navy); background: var(--off-white); }
.lang-btn.active { color: var(--navy); background: var(--gray-light); }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  background: var(--navy);
  padding: 64px 48px 56px;
  color: var(--white);
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.breadcrumb {
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  margin-bottom: 16px; letter-spacing: 0.5px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 {
  font-size: 2.2rem; font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero .hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.72);
  max-width: 580px; line-height: 1.65;
}

/* ── MAIN CONTENT ── */
.page-content { max-width: var(--max-width); margin: 0 auto; padding: 64px 48px; }
.section { margin-bottom: 64px; }
.section:last-child { margin-bottom: 0; }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px;
}
.section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--navy);
  letter-spacing: -0.3px; line-height: 1.25;
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1rem; color: var(--gray-dark);
  max-width: 640px; line-height: 1.75;
  margin-bottom: 36px;
}
p { margin-bottom: 1em; color: var(--gray-dark); font-size: 0.95rem; line-height: 1.75; }
p:last-child { margin-bottom: 0; }
h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }

/* ── DIVIDERS ── */
.rule { border: none; border-top: 1px solid var(--gray-mid); margin: 48px 0; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  padding: 28px 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-dark); }
.card-icon { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { font-size: 1rem; }
.card p { font-size: 0.88rem; }

/* ── PRODUCT CARD (homepage) ── */
.prod-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-mid);
  border-radius: 6px; overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.prod-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.prod-card-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--gray-light);
  display: flex; align-items: flex-start; gap: 14px;
}
.prod-acronym-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal);
  background: rgba(15,138,138,0.08);
  padding: 3px 10px; border-radius: 3px;
  display: inline-block; margin-bottom: 6px;
}
.prod-card h3 { font-size: 0.95rem; line-height: 1.3; }
.prod-card-body { padding: 18px 24px; flex: 1; }
.prod-card-body p { font-size: 0.84rem; line-height: 1.65; }
.prod-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-light);
  background: var(--off-white);
  display: flex; justify-content: space-between; align-items: center;
}
.tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 3px;
}
.tag-harm  { background: rgba(31,95,166,0.1); color: var(--blue); }
.tag-volt  { background: rgba(58,138,58,0.1); color: var(--green); }
.tag-react { background: rgba(15,138,138,0.1); color: var(--teal); }
.link-arrow {
  font-size: 0.82rem; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 4px;
}
.link-arrow:hover { color: var(--navy); }

/* ── SPEC TABLE ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--gray-light); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 11px 0; font-size: 0.88rem; vertical-align: top; }
.spec-table td:first-child { font-weight: 600; color: var(--navy); width: 45%; padding-right: 20px; }
.spec-table td:last-child { color: var(--gray-dark); }

/* ── COMPARISON TABLE ── */
.comp-table { width: 100%; border-collapse: collapse; border: 1px solid var(--gray-mid); border-radius: 6px; overflow: hidden; }
.comp-table th { background: var(--navy); color: var(--white); padding: 13px 18px; font-size: 0.84rem; font-weight: 600; text-align: center; }
.comp-table th:first-child { text-align: left; }
.comp-table td { padding: 11px 18px; font-size: 0.84rem; border-bottom: 1px solid var(--gray-light); text-align: center; }
.comp-table td:first-child { text-align: left; color: var(--navy); font-weight: 500; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:nth-child(even) td { background: var(--off-white); }
.comp-table tr:nth-child(even) td:first-child { background: #f2f4f8; }
.chk { color: var(--green); font-weight: 700; }
.x   { color: #c0392b; }
.par { color: #a06000; font-size: 0.8rem; }

/* ── SIDEBAR BOX ── */
.sidebar-box {
  background: var(--off-white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px; padding: 24px 22px;
  margin-bottom: 24px;
}
.sidebar-box h4 { font-size: 0.88rem; margin-bottom: 12px; }
.sidebar-box ul li {
  font-size: 0.84rem; color: var(--gray-dark);
  padding: 5px 0; border-bottom: 1px solid var(--gray-mid);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li::before { content: '→'; color: var(--teal); font-size: 0.8rem; }

/* ── CTA BOX ── */
.cta-box {
  background: var(--navy);
  border-radius: 6px; padding: 32px 28px;
  color: var(--white); text-align: center;
}
.cta-box h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.cta-box p  { color: rgba(255,255,255,0.72); font-size: 0.85rem; margin-bottom: 20px; }
.btn { display: inline-block; padding: 11px 24px; border-radius: 4px; font-weight: 600; font-size: 0.88rem; transition: opacity 0.15s, background 0.15s; letter-spacing: 0.2px; }
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { opacity: 0.88; }

/* ── CALLOUT ── */
.callout {
  border-left: 3px solid var(--teal);
  background: rgba(15,138,138,0.05);
  padding: 16px 20px; border-radius: 0 4px 4px 0;
  font-size: 0.88rem; color: var(--gray-dark);
  margin: 20px 0;
}
.callout strong { color: var(--navy); }

/* ── ALERT NOTE ── */
.note {
  border-left: 3px solid var(--blue);
  background: rgba(31,95,166,0.05);
  padding: 14px 18px; border-radius: 0 4px 4px 0;
  font-size: 0.84rem; color: var(--gray-dark);
  margin: 16px 0;
}

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 0; border: 1px solid var(--gray-mid); border-radius: 6px; overflow: hidden; }
.stat-item { flex: 1; padding: 24px 20px; text-align: center; border-right: 1px solid var(--gray-mid); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-number sup { font-size: 1rem; }
.stat-label { font-size: 0.78rem; color: var(--gray-dark); margin-top: 4px; font-weight: 500; letter-spacing: 0.3px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 56px 48px 28px;
  margin-top: 0;
}
.footer-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand img { height: 32px; filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 16px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.18s, border-color 0.18s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.55); display: block; transition: fill 0.18s; }
.footer-social a:hover svg { fill: var(--white); }
.footer-col h5 { color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); padding: 3px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }

/* ── SHARE BAR (product pages) ── */
.share-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--off-white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  margin-top: 40px;
}
.share-bar span { font-size: 0.82rem; color: var(--gray-dark); flex: 1; }
.btn-share-li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: #0a66c2; color: #fff;
  border-radius: 4px;
  font-size: 0.82rem; font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-share-li:hover { background: #084e96; color: #fff; }
.btn-share-li svg { width: 15px; height: 15px; fill: #fff; flex-shrink: 0; }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
}

/* ── DRAFT BAR ── */
.draft-bar {
  background: #f1c40f; color: #333;
  text-align: center; padding: 7px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
}

/* ══ WHATSAPP FLOAT ══ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 600; transition: transform 0.18s, box-shadow 0.18s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; display: block; }
.wa-float-tooltip {
  position: absolute; right: 68px;
  background: var(--navy); color: var(--white);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  padding: 6px 12px; border-radius: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s; font-family: var(--font);
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }

/* ══ NAV HAMBURGER ══ */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: 4px; transition: background 0.15s;
}
.nav-burger:hover { background: var(--off-white); }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.nav-burger.burger-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.burger-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.burger-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ RESPONSIVE — tablet ≤960px ══ */
@media (max-width: 960px) {
  .site-header { padding: 0 24px; }
  .page-hero { padding: 48px 24px 40px; }
  .page-content { padding: 48px 24px; }
  .site-footer { padding: 48px 24px 24px; }
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--gray-mid); }

  /* Hamburger activado */
  .nav-burger { display: flex; }
  .site-nav {
    display: none;
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 8px 0 20px;
    border-bottom: 2px solid var(--gray-mid);
    box-shadow: var(--shadow-lg);
    z-index: 400;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-nav.nav-open { display: flex; }
  .site-nav > a { padding: 13px 24px; font-size: 0.93rem; border-radius: 0; display: block; }
  .site-nav .nav-cta { margin: 8px 16px 0; border-radius: 4px; padding: 11px 24px; text-align: center; display: block; }
  .nav-dropdown { position: static; }
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown-menu {
    display: block !important;
    position: static; background: var(--off-white);
    border: none; border-radius: 0; box-shadow: none;
    padding: 4px 0; padding-top: 4px; min-width: unset;
  }
  .nav-dropdown-menu a { padding: 10px 36px; font-size: 0.84rem; border-left: none; }
  .lang-switcher {
    margin: 12px 16px 0; padding-left: 0; border-left: none;
    border-top: 1px solid var(--gray-mid); padding-top: 14px; gap: 4px;
  }
}

/* ══ RESPONSIVE — home hero ≤900px ══ */
@media (max-width: 900px) {
  .home-hero { padding: 64px 24px 56px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .home-hero h1 { font-size: 2.1rem; }
  .hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ══ RESPONSIVE — mobile ≤600px ══ */
@media (max-width: 600px) {
  .home-hero { padding: 48px 20px 40px; }
  .home-hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: flex-start; }
  .hero-tiles { grid-template-columns: 1fr; }

  .page-hero { padding: 32px 20px 28px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-content { padding: 32px 20px; }
  .section { margin-bottom: 44px; }
  .section-title { font-size: 1.25rem; }
  .rule { margin: 32px 0; }

  .prod-hero { padding: 32px 20px; }
  .prod-hero h1 { font-size: 1.5rem; }
  .prod-hero-inner { grid-template-columns: 1fr !important; }

  .stats-row { flex-direction: column; }
  .stat-item { min-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .wa-float { bottom: 18px; right: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float-tooltip { display: none; }
}
