/* ══════════════════════════════════════════════════════
   Union-TI · style.css
   Paleta: #0B111E fondo · #1E2640 cards · #00D2FF acento
   ══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:       #0B111E;
  --bg2:      #0F1828;
  --card:     #1E2640;
  --card2:    #162035;
  --cyan:     #00D2FF;
  --blue:     #007AFF;
  --text:     #F8FAFC;
  --muted:    #94A3B8;
  --border:   rgba(255,255,255,0.08);
  --font:     'Space Grotesk', sans-serif;
  --mono:     'IBM Plex Mono', monospace;
  --radius:   8px;
  --radius-lg:12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--muted); }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; font-family: var(--font);
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary { background: var(--cyan); color: #0B111E; }
.btn-primary:hover { background: #00b8e0; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--cyan); }
.btn-outline:hover { background: rgba(0,210,255,0.08); }
.btn-full { width: 100%; justify-content: center; }
.btn-nav {
  padding: 0.45rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--cyan); color: var(--cyan);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
}
.btn-nav:hover { background: var(--cyan); color: #0B111E; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,17,30,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(11,17,30,0.98); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-svg { flex-shrink: 0; }
.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text); }
.logo-text .accent { color: var(--cyan); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a { font-size: 0.9rem; color: #E2E8F0; transition: color var(--transition); }
.nav-links a:hover { color: var(--cyan); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; }

/* ── Logo SVG animation ── */
.logo-svg .node, .logo-svg .edge { opacity: 0; }
.logo-svg .e1 { animation: drawEdge .4s ease forwards .1s; }
.logo-svg .e2 { animation: drawEdge .4s ease forwards .4s; }
.logo-svg .e3 { animation: drawEdge .4s ease forwards .7s; }
.logo-svg .n1 { animation: popIn .3s ease forwards .05s; }
.logo-svg .n2 { animation: popIn .3s ease forwards .35s; }
.logo-svg .n3 { animation: popIn .3s ease forwards .65s; }
.logo-svg .n4 { animation: popIn .3s ease forwards .95s; }
.logo-svg .node { animation-fill-mode: forwards; }
.logo-svg .n1, .logo-svg .n4 { animation: popIn .3s ease forwards, pulseDot 2s ease-in-out 1.5s infinite; }

@keyframes drawEdge { from { opacity:0; stroke-dashoffset:40; stroke-dasharray:40; } to { opacity:1; stroke-dashoffset:0; } }
@keyframes popIn    { from { opacity:0; r:1; } to { opacity:1; r:4; } }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px; overflow: hidden;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,210,255,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 80% 50%, black, transparent);
}
.hero-glow {
  position: absolute; top: 20%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,210,255,0.06) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag {
  font-family: var(--mono); font-size: 0.78rem; color: var(--cyan);
  letter-spacing: 0.08em; margin-bottom: 1.2rem; text-transform: uppercase;
}
.hero-title { color: var(--text); margin-bottom: 1rem; }
.hero-title span { color: var(--text); }
.hero-sub {
  font-size: 1rem; color: var(--muted); margin-bottom: 2rem;
  font-family: var(--mono); letter-spacing: 0.03em;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat-n { font-size: 1.8rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.hstat-l { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.hstat-div { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--muted); }
.see-all { color: var(--cyan); font-size: 0.9rem; }

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card); border-radius: var(--radius-lg);
  border-top: 2px solid var(--cyan);
  padding: 1.75rem; transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sc-icon {
  width: 44px; height: 44px; margin-bottom: 1rem;
  color: var(--cyan);
}
.sc-icon svg { width: 100%; height: 100%; }
.service-card h3 { color: var(--text); margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.sc-link { color: var(--cyan); font-size: 0.88rem; font-weight: 500; transition: gap var(--transition); }
.sc-link:hover { opacity: 0.8; }

/* ── Nosotros ── */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.nosotros-text h2 { margin-bottom: 1rem; }
.nosotros-text p { margin-bottom: 1.5rem; }
.nos-list { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.nos-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.9rem; }
.chk { color: var(--cyan); font-size: 1rem; flex-shrink: 0; }
.nv-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nv-metric {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center;
  border: 1px solid var(--border);
}
.nv-n { display: block; font-size: 2rem; font-weight: 700; color: var(--cyan); }
.nv-l { font-size: 0.8rem; color: var(--muted); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { margin: 0; }
.blog-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition); }
.blog-card:hover { transform: translateY(-3px); }
.bc-img { width: 100%; height: 180px; object-fit: cover; }
.bc-body { padding: 1.25rem; }
.bc-date { font-size: 0.78rem; color: var(--cyan); font-family: var(--mono); }
.bc-body h3 { margin: 0.4rem 0 0.6rem; font-size: 1rem; }
.bc-body h3 a:hover { color: var(--cyan); }
.bc-body p { font-size: 0.88rem; margin-bottom: 1rem; }

/* ── Contacto ── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contacto-info h2 { margin-bottom: 0.75rem; }
.contacto-info > p { margin-bottom: 1.75rem; }
.cinfo-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.cinfo-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.cinfo-item a { color: var(--muted); transition: color var(--transition); }
.cinfo-item a:hover { color: var(--cyan); }
.btn-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background: #25D366; color: white;
  border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}
.btn-wa:hover { background: #1fba58; }

/* Form */
.contacto-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.form-group input, .form-group textarea {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,210,255,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(148,163,184,0.5); }
.form-msg { font-size: 0.88rem; text-align: center; padding: 0.5rem; border-radius: var(--radius); }
.form-msg.success { background: rgba(0,210,255,0.1); color: var(--cyan); }
.form-msg.error   { background: rgba(255,80,80,0.1); color: #ff6b6b; }

/* ── Footer ── */
.footer { background: #070d18; border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.88rem; margin: 0.75rem 0 1.25rem; max-width: 280px; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { color: var(--muted); transition: color var(--transition); }
.social-links a:hover { color: var(--cyan); }
.footer-links h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1.5rem 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  max-width: 1200px; margin: 0 auto;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.55); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #0B111E; padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--border); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .hstat-div { display: none; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Admin partials ── */
.admin-body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Utility ── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }
