/* ==========================================================================
   VÉRTICE CONSULTING — Caso de estudio | PeakSites
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
/* ===== VARIABLES ===== */
:root {
  --primary: #0a0f2c;
  --accent: #00d4ff;
  --accent2: #0099ff;
  --bg-light: #f8fafd;
  --bg-alt-light: #eef3fb;
  --bg-dark: #0a0f2c;
  --bg-alt-dark: #0d153a;
  --text-light: #1e2937;
  --text-dark: #f1f5f9;
  --text-soft-light: #64748b;
  --text-soft-dark: #94a3b8;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.06);
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);
}
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}
body.dark { background: var(--bg-dark); color: var(--text-dark); }
img { max-width: 100%; display: block; }
a { color: var(--accent2); }
.container { width: 90%; max-width: 1180px; margin: auto; }
.narrow { max-width: 900px; }
section { padding: 80px 0; }
/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(255,255,255,0.95);
  padding: 15px 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
body.dark .header {
  background: rgba(10,15,44,0.95);
  border-bottom: 1px solid var(--border-dark);
}
.nav { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; }
nav { display: flex; align-items: center; gap: 15px; flex: 1; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--primary); font-weight: 500; }
body.dark nav a { color: #fff; }
.logo { height: 28px; width: auto; flex-shrink: 0; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.05); }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1; color: inherit; }
body.dark .brand-name {
  background: linear-gradient(90deg, #ffffff, #a0b8ff);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.desktop-nav { flex: 1; display: flex; gap: 10px; justify-content: flex-end; }
.nav-right { display: flex; align-items: center; gap: 15px; }
/* MEGA MENU */
.nav-item { position: relative; display: inline-block; }
.nav-link {
  text-decoration: none; color: inherit; font-weight: 500;
  padding: 12px 14px !important; border-radius: 8px;
  transition: background .25s ease;
  display: inline-flex; align-items: center; gap: 4px;
  height: 46px; line-height: 1;
}
.nav-link:hover { background: rgba(0,212,255,0.08); }
.chevron { font-size: .68em; transition: transform .3s ease; position: relative; top: -1px; }
.desktop-nav a { display: inline-flex !important; align-items: center !important; height: 46px !important; padding: 12px 14px !important; }
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 15px; opacity: 0; visibility: hidden;
  transition: all .3s ease; z-index: 10000; pointer-events: none; width: 100vw;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.mega-menu-content {
  background: #fff; border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.22);
  border: 1px solid #e2e8f0;
  margin: 0 auto; max-width: 1180px; width: 95%; padding: 50px 48px;
}
body.dark .mega-menu-content { background: #0f1629; border-color: rgba(255,255,255,.09); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px; }
.mega-column { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mega-column h4 {
  font-size: 14.8px; font-weight: 700; color: #00d4ff;
  margin-bottom: 20px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.25;
}
.mega-column a {
  display: block; padding: 2px 6px; color: var(--text-light);
  text-decoration: none; font-size: 15.4px; line-height: 1.4;
  transition: color .2s ease, padding .2s ease;
}
body.dark .mega-column a { color: var(--text-dark); }
.mega-column a:hover { color: #00d4ff; padding-left: 12px; }
/* THEME BUTTON */
.theme-toggle {
  height: 32px; width: 32px; border: 1px solid var(--border-light);
  border-radius: 6px; background: none; cursor: pointer;
  transition: .3s; color: var(--primary);
}
body.dark .theme-toggle { border: 1px solid rgba(255,255,255,.2); color: #fff; }
.theme-toggle:hover { background: rgba(0,212,255,.08); }
/* LANG SWITCH */
.lang-switch { position: relative; display: inline-block; margin-left: 12px; z-index: 100; }
.lang-current {
  display: flex !important; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px;
  background: #0f1629; color: #fff; font-weight: 600; font-size: 15px;
  cursor: pointer; white-space: nowrap;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.3) !important;
  transition: all .2s ease !important; outline: none !important;
}
.lang-current:hover {
  background: #1a2338 !important;
  border: 2px solid #00d4ff !important;
  box-shadow: 0 0 0 4px rgba(0,212,255,.25), 0 6px 20px rgba(0,212,255,.45) !important;
}
.lang-menu {
  position: absolute; top: 100%; right: 0; margin-top: 0;
  background: #1f252f; border: 1px solid #444; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  display: none; min-width: 180px; padding: 8px 0; z-index: 9999;
}
.lang-switch:hover .lang-menu { display: block; }
.flag-wrapper { display: inline-flex; padding: 2px; background: transparent; border: none; }
.lang-current img, .lang-option img { width: 26px; height: 17px; object-fit: cover; border-radius: 3px; }
.arrow { font-size: 19px; line-height: 1; color: #fff; }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #eee; text-decoration: none; font-size: 15px; }
.lang-option:hover { background: #2a323f; }
/* Lang light overrides */
body:not(.dark) .header .lang-current {
  background: #fff !important; color: #0a0f2c !important;
  border: 2px solid transparent !important;
  box-shadow: 0 8px 25px rgba(10,15,44,.08) !important;
}
body:not(.dark) .header .lang-current .arrow { color: #0a0f2c !important; }
body:not(.dark) .lang-current:hover,
body:not(.dark) .lang-switch:hover .lang-current {
  background: #fff !important; border: 2px solid #00d4ff !important;
  box-shadow: 0 0 0 4px rgba(0,212,255,.2), 0 10px 30px rgba(0,212,255,.35) !important;
}
body:not(.dark) .lang-menu {
  background: #fff !important; border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important; box-shadow: 0 15px 40px rgba(10,15,44,.1) !important;
}
body:not(.dark) .lang-menu .lang-option { color: #1e2937 !important; font-weight: 500 !important; }
body:not(.dark) .lang-menu .lang-option:hover { background: #f1f5f9 !important; color: #0099ff !important; }
/* MOBILE MENU */
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 34px;
  color: var(--primary); cursor: pointer; padding: 5px 10px;
}
body.dark .mobile-menu-btn { color: #fff; }
.mobile-menu {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  z-index: 9999999; display: none; justify-content: flex-end;
}
.mobile-menu.active { display: flex; }
.mobile-menu-links {
  position: fixed !important; top: 0 !important; right: 0 !important;
  width: 82vw !important; max-width: 300px !important; height: 100vh !important;
  padding: 80px 25px 40px 30px !important;
  background: #0a0f2c !important; z-index: 9999999999 !important;
  overflow-y: auto;
}
.close-menu-btn {
  position: fixed; top: 18px; right: 18px;
  font-size: 32px; color: #fff; background: rgba(0,0,0,.4);
  border: none; border-radius: 8px; padding: 6px 10px;
  cursor: pointer; z-index: 9999999999 !important;
}
.mobile-link {
  display: block; color: #fff; font-size: 1.1rem;
  padding: 16px 0; text-align: left; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.mobile-link:last-child { border-bottom: none; }
@media (max-width: 991px) {
  .desktop-nav, .nav-right, .header .lang-switch { display: none !important; }
  .mobile-menu-btn { display: block; }
  .mega-menu { display: none !important; }
  body.menu-open { overflow: hidden; }
  .mobile-theme-btn {
    display: block !important; height: 38px; width: 38px; font-size: 1.2rem; margin-left: 8px;
  }
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-btn, .mobile-theme-btn { display: none !important; }
}
/* Mobile lang */
.mobile-lang-container { margin-top: 35px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: center; }
.mobile-lang-switch { position: relative; width: 100%; max-width: 220px; }
.mobile-lang-switch .lang-current { justify-content: center; }
.mobile-lang-switch.active .arrow { transform: rotate(180deg); }
.mobile-lang-switch .lang-menu { position: static; display: none; margin-top: 8px; }
.mobile-lang-switch.active .lang-menu { display: block; }
/* =========================================================
   CASE HERO
   ========================================================= */
.case-hero {
  padding: 90px 0 60px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}
body.dark .case-hero { background: var(--bg-dark); border-bottom-color: var(--border-dark); }
.crumbs { font-size: .88rem; color: var(--text-soft-light); margin-bottom: 30px; text-align: center; }
.crumbs a { color: var(--text-soft-light); text-decoration: none; margin: 0 4px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 4px; }
body.dark .crumbs, body.dark .crumbs a { color: var(--text-soft-dark); }
.case-hero h1 {
  font-size: 3rem; line-height: 1.15; text-align: center;
  max-width: 900px; margin: 0 auto 26px; color: var(--primary); font-weight: 700;
  letter-spacing: -0.02em;
}
body.dark .case-hero h1 { color: #fff; }
.case-lead {
  max-width: 780px; margin: 0 auto 40px; text-align: center;
  font-size: 1.12rem; color: var(--text-soft-light);
}
body.dark .case-lead { color: var(--text-soft-dark); }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  padding: 22px 24px; margin: 0 auto; max-width: 780px;
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 40px -20px rgba(10,15,44,.15);
}
body.dark .chips { background: rgba(255,255,255,.04); border-color: var(--border-dark); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--primary);
  padding: 6px 10px;
}
body.dark .chip { color: #fff; }
/* =========================================================
   SECTIONS
   ========================================================= */
.section-block h2 {
  font-size: 2rem; line-height: 1.2; color: var(--primary);
  margin: 0 0 24px; font-weight: 700; letter-spacing: -0.01em;
}
body.dark .section-block h2 { color: #fff; }
.section-block p {
  color: var(--text-soft-light); font-size: 1.02rem; margin: 0 0 18px;
}
body.dark .section-block p { color: var(--text-soft-dark); }
.section-block em { color: var(--accent2); font-style: normal; font-weight: 600; }
.alt-bg { background: var(--bg-alt-light); }
body.dark .alt-bg { background: var(--bg-alt-dark); }
.figure {
  margin: 40px 0 0; border-radius: 18px; overflow: hidden;
  background: #0a0f2c;
  box-shadow: 0 25px 70px -30px rgba(10,15,44,.4);
}
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption {
  padding: 14px 20px; font-size: .88rem; color: #94a3b8;
  background: #0a0f2c; text-align: center;
}
/* =========================================================
   ACCORDION
   ========================================================= */
.accordion { margin: 30px 0 40px; display: grid; gap: 14px; }
.acc-item {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 14px; overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}
body.dark .acc-item { background: rgba(255,255,255,.04); border-color: var(--border-dark); }
.acc-item:hover { box-shadow: 0 10px 30px -18px rgba(10,15,44,.2); border-color: rgba(0,212,255,.5); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--primary);
  font-size: 1.02rem; text-align: left;
}
body.dark .acc-head { color: #fff; }
.acc-icon { transition: transform .3s ease; color: var(--accent); font-size: 1.2rem; }
.acc-head[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.acc-body {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.acc-head[aria-expanded="true"] + .acc-body { max-height: 400px; padding: 0 24px 22px; }
.acc-body p { margin: 0; color: var(--text-soft-light); }
body.dark .acc-body p { color: var(--text-soft-dark); }
/* =========================================================
   FEATURE GRID (3 cards)
   ========================================================= */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; margin-top: 40px;
}
.feat-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 18px; padding: 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
body.dark .feat-card { background: rgba(255,255,255,.04); border-color: var(--border-dark); }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px -25px rgba(0,153,255,.35); }
.feat-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feat-card h3 { margin: 0 0 10px; color: var(--primary); font-size: 1.15rem; }
body.dark .feat-card h3 { color: #fff; }
.feat-card p { margin: 0; color: var(--text-soft-light); font-size: .96rem; }
body.dark .feat-card p { color: var(--text-soft-dark); }
/* =========================================================
   SEO GRID (4 cards checks)
   ========================================================= */
.seo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; margin-top: 35px;
}
.seo-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 18px; padding: 28px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
body.dark .seo-card { background: rgba(255,255,255,.04); border-color: var(--border-dark); }
.seo-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,212,255,.35); }
.seo-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,212,255,.12); color: var(--accent);
  font-weight: 700; margin-bottom: 16px;
}
.seo-card h3 { margin: 0 0 10px; color: var(--primary); font-size: 1.1rem; }
body.dark .seo-card h3 { color: #fff; }
.seo-card p { margin: 0; color: var(--text-soft-light); font-size: .95rem; }
body.dark .seo-card p { color: var(--text-soft-dark); }
/* Ver caso link */
.ver-caso {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; text-decoration: none;
  transition: all .35s ease; padding: 5px 0;
  border-bottom: 2px solid transparent;
  margin: 8px 0 10px;
}
.ver-caso:hover { color: var(--accent2); border-bottom: 2px solid var(--accent); padding-left: 5px; }
/* =========================================================
   FORM SOLICITAR PRESUPUESTO
   ========================================================= */
.quote-card {
  margin: 60px auto 0; max-width: 540px;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 22px; padding: 34px 32px;
  box-shadow: 0 30px 70px -30px rgba(10,15,44,.2);
}
body.dark .quote-card { background: rgba(255,255,255,.04); border-color: var(--border-dark); }
.quote-label {
  font-size: .8rem; letter-spacing: .18em; font-weight: 700;
  color: var(--primary); margin: 0 0 22px; text-transform: uppercase;
}
body.dark .quote-label { color: #fff; }
.quote-form { display: grid; gap: 16px; }
.field {
  display: block; padding: 12px 16px;
  border: 1px solid var(--border-light); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}
body.dark .field { background: rgba(255,255,255,.04); border-color: var(--border-dark); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.18); }
.field-label { display: block; font-size: .78rem; color: var(--text-soft-light); font-weight: 500; margin-bottom: 4px; }
body.dark .field-label { color: var(--text-soft-dark); }
.field input, .field textarea {
  width: 100%; border: none; outline: none; background: transparent;
  font: inherit; color: inherit; padding: 0; resize: vertical;
  resize: none;
}
.btn-cta {
  border: none; cursor: pointer; font: inherit; font-weight: 600;
  background: linear-gradient(90deg, #00d4ff, #0099ff); color: #0a0f2c;
  padding: 14px 24px; border-radius: 14px; margin-top: 6px;
  transition: transform .25s ease, box-shadow .25s ease; font-size: 1rem;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,212,255,.35); }
.form-note { margin: 8px 0 0; color: #16a34a; font-size: .9rem; }
/* =========================================================
   RESULT CARD
   ========================================================= */
.result-card-block {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 22px; padding: 50px 46px;
  box-shadow: 0 30px 70px -30px rgba(10,15,44,.18);
}
body.dark .result-card-block { background: rgba(255,255,255,.04); border-color: var(--border-dark); }
.result-card-block h2 { margin-top: 0; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px; margin-top: 30px; padding-top: 30px;
  border-top: 1px solid var(--border-light);
}
body.dark .stats { border-top-color: var(--border-dark); }
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 2rem; font-weight: 700;
  background: linear-gradient(90deg, #00d4ff, #0099ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -0.02em;
}
.stat-label { display: block; font-size: .85rem; color: var(--text-soft-light); margin-top: 4px; }
body.dark .stat-label { color: var(--text-soft-dark); }
/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta { background: #fff; padding: 100px 20px; text-align: center; }
body.dark .final-cta { background: var(--bg-alt-dark); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.final-cta-content { max-width: 780px; margin: 0 auto; }
.final-cta h2 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 22px; color: #0a0f2c; }
body.dark .final-cta h2 { color: #fff; }
.final-cta p { font-size: 1.14rem; line-height: 1.55; color: #475569; max-width: 680px; margin: 0 auto 34px; }
body.dark .final-cta p { color: #94a3b8; }
.btn-big {
  display: inline-block; padding: 18px 42px; font-size: 1.1rem; font-weight: 600;
  border-radius: 50px; background: linear-gradient(135deg, #00d4ff, #0099ff);
  color: #0a0f2c; text-decoration: none; transition: all .3s ease;
  box-shadow: 0 10px 30px rgba(0,212,255,.3);
}
.btn-big:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,212,255,.45); }
/* =========================================================
   FOOTER
   ========================================================= */
.footer-pro { background: #080b14; color: #aaa; padding: 80px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px; margin-bottom: 50px;
}
.footer-pro h4 { color: #fff; margin-bottom: 15px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-pro a { display: block; text-decoration: none; color: #888; font-size: 14px; margin-bottom: 10px; transition: .3s; }
.footer-pro a:hover { color: #00d4ff; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
body:not(.dark) .footer-pro { background: #f8fafd !important; color: #475569 !important; }
body:not(.dark) .footer-pro h4 { color: #1e2937 !important; }
body:not(.dark) .footer-pro a { color: #64748b !important; }
body:not(.dark) .footer-pro a:hover { color: #0099ff !important; }
body:not(.dark) .footer-bottom { border-top-color: #e2e8f0 !important; color: #64748b !important; }
/* =========================================================
   FADE-IN ANIMATIONS
   ========================================================= */
.fade-up { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.25,.1,.25,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay { transition-delay: .1s; }
.fade-up.delay2 { transition-delay: .2s; }
.fade-up.delay3 { transition-delay: .3s; }
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .container { width: 94%; padding: 0 10px; }
  section { padding: 55px 0; }
  .case-hero { padding: 50px 0 40px; }
  .case-hero h1 { font-size: 2rem; }
  .case-lead { font-size: 1rem; }
  .chips { padding: 18px; gap: 10px; }
  .chip { font-size: .88rem; }
  .section-block h2 { font-size: 1.55rem; }
  .result-card-block { padding: 32px 22px; }
  .final-cta { padding: 70px 20px; }
  .final-cta h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .quote-card { padding: 26px 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
}