/* ═══════════════════════════════════════════════════════════
   UNA NUBE SOLUCIONES — styles.css
   Brand palette: Pantone 2151 CP / 7691 CP / Cool Gray 10 CP
   ═══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── BRAND TOKENS (Pantone exact) ── */
:root {
  /* Pantone 2151 CP — azul vivo del icono */
  --brand-blue:       #1E7FC1;
  /* Pantone 7691 CP — azul profundo */
  --brand-blue-dark:  #1560A0;
  /* Pantone Cool Gray 10 CP — gris texto */
  --brand-gray:       #54585A;
  /* White */
  --brand-white:      #FFFFFF;
  /* Derived */
  --brand-blue-light: #3BA3E0;
  --brand-accent:     #00B4D8;

  /* Typography */
  --font-head: 'Nunito', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Transitions */
  --t: 0.3s ease;
}

/* ══════════════════════════════════════
   DARK THEME (default)
   ══════════════════════════════════════ */
[data-theme="dark"] {
  --bg:           #060D1C;
  --bg2:          #0C1830;
  --bg3:          #111F38;
  --surface:      rgba(255,255,255,0.04);
  --surface-hover:rgba(30,127,193,0.10);
  --border:       rgba(255,255,255,0.09);
  --border-brand: rgba(30,127,193,0.35);
  --text:         #FFFFFF;
  --text-sub:     #8A9BB8;
  --text-muted:   #556078;
  --nav-bg:       rgba(6,13,28,0.88);
  --card-shadow:  0 8px 32px rgba(0,0,0,0.4);
  --logo-filter:  invert(0); /* color logo on dark */
}

/* ══════════════════════════════════════
   LIGHT THEME
   ══════════════════════════════════════ */
[data-theme="light"] {
  --bg:           #F4F7FB;
  --bg2:          #E8EFF8;
  --bg3:          #FFFFFF;
  --surface:      rgba(30,127,193,0.06);
  --surface-hover:rgba(30,127,193,0.12);
  --border:       rgba(21,96,160,0.15);
  --border-brand: rgba(21,96,160,0.4);
  --text:         #1A2035;
  --text-sub:     #54585A;
  --text-muted:   #8A9BB8;
  --nav-bg:       rgba(244,247,251,0.92);
  --card-shadow:  0 4px 24px rgba(21,96,160,0.10);
  --logo-filter:  invert(0);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── NOISE TEXTURE (dark only) ── */
[data-theme="dark"] body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .5; z-index: 0;
}

/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
}
.nav-links a {
  color: var(--text-sub); font-size: 0.88rem; font-weight: 500;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--brand-blue); }

.nav-controls {
  display: flex; align-items: center; gap: 0.7rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 0.28rem 0.75rem;
  border-radius: 100px; border: none;
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  background: transparent; color: var(--text-sub);
  transition: background var(--t), color var(--t);
  letter-spacing: .04em;
}
.lang-btn.active {
  background: var(--brand-blue);
  color: #fff;
}

/* Theme Toggle */
.theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 1rem;
  display: grid; place-items: center;
  transition: background var(--t), border-color var(--t);
}
.theme-btn:hover { background: var(--surface-hover); border-color: var(--brand-blue); }

/* CTA Nav */
.nav-cta {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff; border: none; border-radius: 8px;
  padding: 0.55rem 1.3rem; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-head);
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--t);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--nav-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%; z-index: 199;
  flex-direction: column; gap: 1.2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-sub); font-size: 1rem; font-weight: 500; }
.mobile-nav a:hover { color: var(--brand-blue); }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 5% 5rem;
  position: relative; overflow: hidden;
}
/* bg orbs */
.hero-orb1 {
  position: absolute; width: 800px; height: 800px;
  top: -200px; right: -250px;
  background: radial-gradient(ellipse, rgba(30,127,193,0.20) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: orbPulse 9s ease-in-out infinite alternate;
}
.hero-orb2 {
  position: absolute; width: 500px; height: 500px;
  bottom: -100px; left: 5%;
  background: radial-gradient(ellipse, rgba(0,180,216,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: orbPulse 12s ease-in-out infinite alternate-reverse;
}
[data-theme="light"] .hero-orb1 {
  background: radial-gradient(ellipse, rgba(30,127,193,0.12) 0%, transparent 65%);
}
[data-theme="light"] .hero-orb2 {
  background: radial-gradient(ellipse, rgba(21,96,160,0.08) 0%, transparent 70%);
}
@keyframes orbPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.1) rotate(5deg); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(30,127,193,0.12); border: 1px solid rgba(30,127,193,0.35);
  color: var(--brand-blue); border-radius: 100px;
  padding: 0.35rem 1rem; font-size: 0.78rem; font-weight: 700;
  margin-bottom: 1.8rem; letter-spacing: .06em; text-transform: uppercase;
  width: fit-content; position: relative; z-index: 1;
  animation: fadeUp 0.7s ease both;
}
.hero-badge::before { content: '●'; font-size: 0.45rem; }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.07;
  position: relative; z-index: 1;
  animation: fadeUp 0.8s 0.08s ease both;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  max-width: 560px; margin-top: 1.4rem;
  color: var(--text-sub); font-size: 1.05rem; line-height: 1.75;
  position: relative; z-index: 1;
  animation: fadeUp 0.9s 0.16s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.4rem; position: relative; z-index: 1;
  animation: fadeUp 1s 0.28s ease both;
}
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 4rem; position: relative; z-index: 1;
  animation: fadeUp 1s 0.4s ease both;
}
.stat-num {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 900;
  color: var(--brand-blue);
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 0.15rem; }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff; border: none; border-radius: 10px;
  padding: 0.85rem 2rem; font-size: 0.97rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-head);
  box-shadow: 0 6px 24px rgba(30,127,193,0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30,127,193,0.45); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.85rem 2rem; font-size: 0.97rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-head);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--brand-blue); background: var(--surface-hover); color: var(--brand-blue); }

/* ══════════════════════════════════════
   PARTNER BANNER
   ══════════════════════════════════════ */
.partner-banner {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(30,127,193,0.12), rgba(21,96,160,0.08));
  border: 1px solid var(--border-brand);
  border-radius: 20px; padding: 2.2rem 4%;
  margin: 0 5% 5.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.partner-left { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.partner-pill {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff; border-radius: 8px; padding: 0.45rem 0.9rem;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.partner-text h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; margin-bottom: 0.3rem; }
.partner-text p { color: var(--text-sub); font-size: 0.87rem; line-height: 1.55; }
.partner-logo { height: 40px; width: auto; }

/* ══════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════ */
section { position: relative; z-index: 1; padding: 5.5rem 5%; }
.sec-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-blue); margin-bottom: 0.7rem;
}
.sec-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 900;
  letter-spacing: -0.025em; margin-bottom: 0.9rem; line-height: 1.12;
}
.sec-sub {
  color: var(--text-sub); font-size: 1.02rem; line-height: 1.75;
  max-width: 580px; margin-bottom: 3rem;
}

/* ══════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.3rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.8rem 1.6rem 2rem;
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
  position: relative; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
  border-radius: 18px 18px 0 0; opacity: 0; transition: opacity var(--t);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-brand);
  background: var(--surface-hover);
  box-shadow: 0 16px 40px rgba(30,127,193,0.15);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.1rem;
  background: rgba(30,127,193,0.15);
}
.service-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; margin-bottom: 0.55rem; }
.service-card p { color: var(--text-sub); font-size: 0.87rem; line-height: 1.65; }
.card-pill {
  display: inline-block; margin-top: 1rem;
  background: rgba(30,127,193,0.1); border: 1px solid rgba(30,127,193,0.22);
  color: var(--brand-blue); border-radius: 100px;
  padding: 0.22rem 0.7rem; font-size: 0.72rem; font-weight: 700;
}

/* ══════════════════════════════════════
   BIOFILE SECTION
   ══════════════════════════════════════ */
.biofile-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.check-list { display: flex; flex-direction: column; gap: 0.85rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: var(--text-sub); font-size: 0.92rem; line-height: 1.6;
}
.check-list li::before {
  content: '✓'; color: var(--brand-blue); font-weight: 800;
  flex-shrink: 0; margin-top: 0.1rem;
}

.biofile-panel {
  background: linear-gradient(135deg, rgba(30,127,193,0.15), rgba(21,96,160,0.08));
  border: 1px solid var(--border-brand);
  border-radius: 22px; padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
}
.biofile-panel::after {
  content: ''; position: absolute; bottom: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(30,127,193,0.2), transparent 70%);
  border-radius: 50%;
}
.module-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 0.7rem 0.9rem;
  font-size: 0.87rem; font-weight: 500; margin-bottom: 0.7rem;
  transition: background var(--t), border-color var(--t);
  position: relative; z-index: 1;
}
.module-row:hover { background: var(--surface-hover); border-color: var(--border-brand); }
.module-check { margin-left: auto; color: var(--brand-blue); font-weight: 800; font-size: 0.95rem; }
.module-avail {
  margin-top: 1.4rem; padding: 0.85rem 1rem; z-index: 1; position: relative;
  background: rgba(30,127,193,0.1); border: 1px solid rgba(30,127,193,0.25);
  border-radius: 11px; text-align: center;
  font-size: 0.8rem; color: var(--brand-blue); font-weight: 700;
}

/* ══════════════════════════════════════
   EMAIL MARKETING
   ══════════════════════════════════════ */
.email-wrap {
  background: linear-gradient(135deg, rgba(30,127,193,0.12), rgba(21,96,160,0.06));
  border: 1px solid var(--border-brand);
  border-radius: 26px; padding: 3.5rem 4%; overflow: hidden; position: relative;
}
.email-wrap::before {
  content: '✉'; position: absolute; right: -10px; top: -15px;
  font-size: 13rem; opacity: 0.04; line-height: 1; pointer-events: none;
}
.email-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.plan-list { display: flex; flex-direction: column; gap: 0.9rem; }
.plan-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; padding: 1rem 1.2rem;
  transition: border-color var(--t), background var(--t);
}
.plan-item:hover, .plan-item.featured {
  border-color: var(--border-brand);
  background: rgba(30,127,193,0.08);
}
.plan-name { font-family: var(--font-head); font-weight: 800; font-size: 0.92rem; }
.plan-detail { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.2rem; }
.plan-price { font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; color: var(--brand-blue); text-align: right; }
.plan-cur { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); }
.popular-badge {
  font-size: 0.65rem; background: var(--brand-blue); color: #fff;
  border-radius: 100px; padding: 0.12rem 0.55rem; font-weight: 800; margin-left: 0.5rem;
}
.plan-note {
  margin-top: 1rem; padding: 0.8rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; font-size: 0.8rem; color: var(--text-sub);
}

/* ══════════════════════════════════════
   ADDITIONAL SERVICES
   ══════════════════════════════════════ */
.add-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem;
}
.add-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 15px; padding: 1.5rem 1.3rem;
  transition: background var(--t), border-color var(--t), transform var(--t);
  box-shadow: var(--card-shadow);
}
.add-card:hover { background: var(--surface-hover); border-color: var(--border-brand); transform: translateY(-3px); }
.add-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.add-card h4 { font-family: var(--font-head); font-size: 0.92rem; font-weight: 800; margin-bottom: 0.4rem; }
.add-card p { color: var(--text-sub); font-size: 0.82rem; line-height: 1.6; }

/* ══════════════════════════════════════
   CONTACT / CTA
   ══════════════════════════════════════ */
.contact-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,127,193,0.14), transparent 65%);
  border-top: 1px solid var(--border);
}
.contact-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(30,127,193,0.1); border: 1px solid var(--border-brand);
  color: var(--brand-blue); border-radius: 100px;
  padding: 0.3rem 0.9rem; font-size: 0.76rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.contact-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 900;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.contact-section p { color: var(--text-sub); font-size: 1rem; max-width: 520px; margin: 0 auto 2.2rem; line-height: 1.75; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-info {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem;
}
.ci-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text-sub); }
.ci-item a { color: var(--brand-blue); font-weight: 600; }
.ci-item a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 5% 1.8rem;
  transition: background var(--t);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.8rem;
}
.footer-brand img { height: 42px; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--text-sub); font-size: 0.84rem; line-height: 1.7; max-width: 250px; }
.footer-partner-pill {
  display: inline-block; margin-top: 1rem;
  background: rgba(30,127,193,0.12); border: 1px solid rgba(30,127,193,0.3);
  color: var(--brand-blue); border-radius: 7px;
  padding: 0.28rem 0.65rem; font-size: 0.7rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
footer h5 { font-family: var(--font-head); font-size: 0.83rem; font-weight: 800; margin-bottom: 0.9rem; letter-spacing: .04em; text-transform: uppercase; }
footer ul { display: flex; flex-direction: column; gap: 0.55rem; }
footer ul a { color: var(--text-sub); font-size: 0.83rem; transition: color var(--t); }
footer ul a:hover { color: var(--brand-blue); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.78rem; }
.footer-bottom span { color: var(--brand-blue); font-weight: 600; }

/* ══════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════ */
.divider {
  height: 1px; margin: 0 5%;
  background: linear-gradient(90deg, transparent, var(--border-brand), transparent);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .biofile-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .email-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 7.5rem; }
  .partner-banner { margin: 0 4% 4rem; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 560px) {
  section { padding: 4rem 5%; }
  .footer-grid { grid-template-columns: 1fr; }
  .partner-banner { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
}
