/* =========================================================
   DigitalFrom.tech — STYLE FINAL (SAFE)
   ---------------------------------------------------------
   - Fondo global con gradiente + canvas de partículas
   - Cards con glassmorphism + glow
   - Inputs de contacto modernos
   - Navbar responsive
   - Footer transparente con glow
   - Servicios / Diferencial / Blog / Planes / Métricas
   ========================================================= */

/* =============== TOKENS BASE ================== */
:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --bg-elev: #1b1b1f;         /* usado por .card.plan */
  --ink: #e8eaf0;
  --muted: #a7adbb;
  --border: rgba(255, 255, 255, 0.08);

  --accent-1: #00e0ff;
  --accent-2: #7c3aed;
  --accent-3: #06d6a0;

  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
  --star: #ffd166; /* estrellas testimonios */
}

/* =============== RESET ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  min-height: 100%;
  background: linear-gradient(to bottom, #0a0a0a, #121212, #0a0a0a);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ====== HERO CANVAS GLOBAL ====== */
#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

section {
  position: relative;
  background: transparent;
  z-index: 1;
}

/* =============== LINKS ================== */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =============== NAVBAR ================== */
.site-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
}

@media (max-width: 992px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    width: 220px;
  }
  .site-nav.active { display: flex; }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 25px; height: 3px;
    margin: 5px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
  }
}

/* =============== HERO (BASE) ================== */
.hero {
  text-align: center;
  padding: 8rem 1rem 6rem;
  position: relative;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}
.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
}
.hero .hero-buttons { margin-top: 1.5rem; }

/* =============== BOTONES ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--accent-2);
  color: #fff;
  background: transparent;
}
.btn-secondary:hover { background: var(--accent-2); color: #fff; }

/* =============== GRIDS GLOBALES ================== */
.services-grid,
.values-grid,
.cases-grid,
.testimonials-grid,
.blog-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* =============== CARDS ================== */
.card,
.testimonial,
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
  box-shadow: var(--shadow);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-height: 340px;
}

.card img,
.testimonial img,
.testimonial-card .avatar {
  width: 85%;
  max-width: 220px;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.card:hover,
.testimonial:hover,
.testimonial-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow:
    0 0 30px rgba(0, 224, 255, 0.35),
    0 0 40px rgba(124, 58, 237, 0.35);
}

.card h3,
.testimonial h4,
.testimonial-card .author {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.card p,
.testimonial p,
.testimonial-card .quote {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 280px;
}

/* =============== TESTIMONIOS ================== */
.testimonial-card {
  min-height: 280px;
  padding: 1.25rem 1.25rem 1.5rem;
}
.testimonial-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0,255,255,0.28), 0 10px 20px rgba(0,0,0,.25);
}
.testimonial-card .rating {
  display: inline-flex; gap: 2px; margin-bottom: .65rem;
}
.testimonial-card .star {
  font-size: 1rem; color: var(--star);
  text-shadow: 0 0 10px rgba(255, 209, 102, .55);
}
.testimonial-card .role { color: var(--muted); font-size: .85rem; }

/* =============== FORMULARIO DE CONTACTO ================== */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  color: var(--ink);
  margin-bottom: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.4);
  outline: none;
}
.contact-form button {
  width: 100%; padding: 1rem; border-radius: var(--radius);
  border: none;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #fff; font-weight: bold; cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.4);
  transition: all 0.3s ease;
}
.contact-form button:hover {
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.6);
  transform: translateY(-2px);
}

/* ======================
   FOOTER (TRANSPARENTE)
   ====================== */
.site-footer {
  background: transparent;                /* transparente para ver partículas */
  backdrop-filter: blur(6px);             /* legibilidad suave */
  border-top: 1px solid rgba(0, 224, 255, 0.25);
  box-shadow: 0 -4px 20px rgba(0, 224, 255, 0.1);
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem 1rem;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.95rem;
  overflow: hidden;
}

/* Glow superior */
.site-footer::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 100%; height: 18px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  filter: blur(18px);
  opacity: 0.7;               /* un poco más visible */
  pointer-events: none;
}

/* ======================
   Carrusel de medallas
   ====================== */
.medallas-carousel {
  overflow: hidden;
  width: 100%;
  background: transparent;    /* también transparente */
  padding: 1.2rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.medallas-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollMedallas 25s linear infinite;
}

.medallas-track img {
  height: 52px;
  filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.medallas-track img:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 12px rgba(0, 224, 255, 0.8));
}

/* Animación infinita */
@keyframes scrollMedallas {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Ajuste en mobile */
@media (max-width: 600px) {
  .medallas-track img { height: 40px; }
  .medallas-track { gap: 1.5rem; }
}

/* ======================
   Grid links/contacto
   ====================== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.footer-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
  position: relative;
}
.footer-grid h4::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 40%; height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}
.footer-grid a {
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
  transition: 0.3s;
  font-size: 0.9rem;
}
.footer-grid a:hover {
  color: var(--accent-1);
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.6);
}

/* ======================
   Sub-footer
   ====================== */
.sub-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =============== ANIMACIONES (reveal base) ================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease; /* unificado */
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   BOTONES DE ENLACE EXTRA
   ====================== */
.link-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(90deg, #3b82f6, #7c3aed);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  background: linear-gradient(90deg, #22d3ee, #a855f7);
}
.link-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* ==== Planes ==== */
.cards-grid.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}
.card.plan:hover { transform: translateY(-5px); box-shadow: 0 0 10px var(--accent-1); }
.card.plan h3 { margin-bottom: 0.5rem; }
.card.plan .price { font-size: 2rem; color: var(--accent-1); margin-bottom: 1rem; }
.card.plan ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.card.plan ul li { margin: 0.3rem 0; }
/* Destacado visual */
.card.plan.destacado {
  border: 2px solid var(--accent-1);
  background: linear-gradient(145deg, #1f1f25, #1b1b1f);
}

/* Iconos en servicios */
.icono-servicio { width: 64px; height: 64px; margin-bottom: 1rem; filter: drop-shadow(0 0 6px #0ff5); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card-img { width: 100px; margin: 0 auto 1rem; display: block; }
.card-title { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--ink); }
.card-price { color: #22D3EE; font-size: 1.2rem; margin-bottom: 1rem; }
.card-features { list-style: none; padding: 0; margin: 1rem 0; color: var(--muted); }
.card-features li { margin-bottom: 0.5rem; }
.card-desc { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.5rem; }

.btn-glow {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  color: white;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-glow:hover { background: linear-gradient(90deg, #a855f7, #3b82f6); }

/* ==== CTA Final ==== */
.section-final {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.section-final h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.section-final p {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-size: 1rem;
  color: var(--muted);
}
.section-final a.btn-glow { margin-top: 1.5rem; }

/* ======================
   CONTACTO — Ajustes finos
   ====================== */
.section.motivacion,
.section.contacto-page { margin-bottom: 4rem; padding-top: 3rem; }

.section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 3px;
}

.form-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 1.5rem;
}
.form-actions .btn-gradient,
.form-actions .btn-glow {
  flex: 1 1 220px;
  text-align: center;
  max-width: 280px;
  min-height: 52px;
}

.checkbox {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1rem; font-size: 0.95rem; color: var(--muted);
}
.checkbox input[type="checkbox"] { transform: scale(1.3); accent-color: var(--accent-1); cursor: pointer; }
.checkbox a { color: var(--accent-1); text-decoration: underline; }
.checkbox a:hover { color: var(--accent-2); }

.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  margin-bottom: 1rem;
  cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.contact-form select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.4);
  outline: none;
}

/* Hover más visible en links del footer */
.site-footer a:hover {
  color: var(--accent-1);
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.75);
}

/* ======================
   DIFERENCIAL
   ====================== */
.diferencial-section {
  padding: 6rem 1rem;
  text-align: center;
}
.diferencial-section h2 {
  font-size: 2.5rem; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.diferencial-section .subtitle {
  color: var(--muted); max-width: 700px; margin: 0 auto 3rem; font-size: 1.1rem;
}
.diferencial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.diferencial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.diferencial-card:hover { transform: translateY(-6px); box-shadow: 0 0 25px rgba(0, 224, 255, 0.3); }

/* Hero de Diferencial */
.hero-diferencial h1 {
  font-size: 3rem; font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 224, 255, 0.6);
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-diferencial p {
  font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 auto;
}

/* Servicios — cards reforzadas */
.services-grid .card {
  border: 1px solid rgba(0, 224, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  padding: 2rem;
  transition: all 0.3s ease;
}
.services-grid .card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-2);
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.25), 0 0 35px rgba(124, 58, 237, 0.25);
}
.services-grid .card h3 {
  font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--ink);
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.services-grid .card p { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }

/* Cómo trabajamos */
.work-section { margin-top: 4rem; padding: 4rem 0; text-align: center; }
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.work-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 0 25px rgba(0, 224, 255, 0.25); }
.work-card h3 {
  font-size: 1.3rem; margin-bottom: 0.8rem; font-weight: 700; color: var(--ink);
}
.work-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }

/* Micro texto motivacional bajo botones hero */
.hero .micro-text { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* Variaciones */
.diferencial-card.confianza {
  border: 1px solid rgba(0, 224, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}
.diferencial-card.mejoracontinua {
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.25);
}

/* Métricas */
.metrics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; margin: 3rem auto; text-align: center; max-width: 900px;
}
.metrics-grid .metric { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.metrics-grid .metric span {
  display: block; font-size: 2rem; margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Anim extra */
.fade-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-scale.reveal-visible { opacity: 1; transform: scale(1); }

/* ======================
   CTA FINAL DESTACADO
   ====================== */
.section-final .btn-glow {
  padding: 1rem 2.5rem;
  font-size: 1.2rem; font-weight: 700; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 20px rgba(0,224,255,0.5);
  position: relative; overflow: hidden;
}
.section-final .btn-glow::after {
  content: "";
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,224,255,0.3) 0%, transparent 60%);
  animation: pulse 3s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.3; }
  100% { transform: scale(0.8); opacity: 0.6; }
}
.section-final .btn-glow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 35px rgba(0,224,255,0.7), 0 0 45px rgba(124,58,237,0.5);
}

/* ======================
   MÉTRICAS DESTACADAS
   ====================== */
.metrics-grid .metric span {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: pop 1s ease forwards;
}
@keyframes pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ======================
   MÉTRICAS DIFERENCIAL (compat)
   ====================== */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:1.5rem;
  margin-top:1.25rem;
}
.stats-grid > div{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(0,255,255,0.15);
  border-radius:16px;
  padding:1.25rem 1rem;
  text-align:center;
  color:var(--muted);
  font-weight:600;
  backdrop-filter:blur(10px);
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.stats-grid > div:hover{
  transform:translateY(-6px);
  border-color:rgba(124,58,237,.6);
  box-shadow: 0 0 25px rgba(0,224,255,.25), 0 0 35px rgba(124,58,237,.25);
}
.stats-grid > div strong{
  display:block;
  font-size:clamp(1.6rem,3.2vw,2.1rem);
  font-weight:800;
  line-height:1;
  margin-bottom:.35rem;
  background:linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
@media (max-width:600px){
  .stats-grid{ gap:1rem; }
  .stats-grid > div{ padding:1rem .9rem; }
}

/* ================================
   BLOG STYLES — (mantiene compat)
   ================================ */
/* NOTA: mantenemos .hero aquí también para no romper el blog.
   Los valores están alineados con el hero base para apariencia consistente. */
.hero {
  padding: 6rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--accent-2);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-back:hover { background: var(--accent-2); color: #fff; }

/* ====== BLOG SECTIONS ====== */
.blog-section {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.blog-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: left;
  color: var(--ink);
  position: relative;
}
.blog-section h2::after {
  content: "";
  display: block;
  width: 80px; height: 3px; margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}
.blog-section p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; color: var(--muted); }
.blog-section ul { list-style: none; padding: 0; margin: 1rem 0; }
.blog-section ul li {
  margin-bottom: 0.6rem; padding-left: 1.5rem; position: relative;
  font-size: 1rem; color: var(--ink);
}
.blog-section ul li::before {
  content: "•"; position: absolute; left: 0;
  color: var(--accent-1); font-size: 1.2rem;
}

/* ====== CTA FINAL BLOG ====== */
.blog-cta {
  text-align: center;
  padding: 5rem 1rem;
  background: linear-gradient(to right, rgba(124, 58, 237, 0.1), rgba(6, 214, 160, 0.05));
}
.blog-cta h2 {
  font-size: 2rem; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.blog-cta p { max-width: 700px; margin: 0 auto 2rem; color: var(--muted); font-size: 1.1rem; }

/* ======================
   Responsive fino
   ====================== */
@media (max-width: 600px) {
  .hero { padding: 5rem 1rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .section-title::after { width: 60%; }
}
/* ======================
   FAQ (Acordeón)
   ====================== */
.faq-accordion {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink, #e5e7eb);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: var(--accent-1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 1rem;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding: 1rem;
}

.faq-question .icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}
/* =========================================================
   DigitalFrom.tech — HEADER (migrado desde header.css)
   ---------------------------------------------------------
   - Header fijo con blur y efecto shrink
   - Logo alineado
   - Navbar con hover y submenu
   - Botón CTA gradiente
   - Menú móvil con animación slideDown
   - Hamburguesa animada → X
   ========================================================= */

/* =============== HEADER ================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 999;
  transition: all 0.3s ease;
}

/* efecto shrink al hacer scroll */
.site-header.shrink {
  padding: 0.3rem 0;
  background: rgba(18, 18, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============== LOGO ================== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo img {
  height: 34px;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}
.logo:hover img {
  transform: scale(1.05);
}

/* =============== NAV ================== */
.site-nav {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-1);
}

/* =============== SUBMENU ================== */
.has-submenu {
  position: relative;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  display: none;
}
.submenu li {
  padding: 0;
}
.submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--muted);
  transition: background 0.3s ease, color 0.3s ease;
}
.submenu a:hover {
  background: var(--bg-soft);
  color: var(--accent-2);
}
.has-submenu:hover .submenu {
  display: block;
}

/* =============== CTA ================== */
.header-cta .btn-gradient {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.header-cta .btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
}

/* =============== TOGGLE MÓVIL ================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación hamburguesa → X */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =============== RESPONSIVE ================== */
@media (max-width: 992px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
    width: 240px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    animation: slideDown 0.35s ease forwards;
  }

  .site-nav.active {
    display: flex !important;
  }

  /* animación */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-toggle {
    display: flex;
  }
}
/* =========================================================
   HERO AVANZADO (migrado desde hero.css)
   ---------------------------------------------------------
   - Ajuste de altura con header
   - Overlay radial y partículas
   - Badge destacado
   - Botones refinados
   - Accesibilidad y micro-text
   ========================================================= */

/* Ajuste dinámico con header */
:root {
  --header-h: 72px; /* altura estimada del header */
}
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem) 1rem;
}

/* Canvas partículas */
#hero-canvas,
.hero #hero-canvas {
  position: fixed;   /* antes absolute */
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Overlay radial */
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(124, 58, 237, 0.12), transparent 65%),
    radial-gradient(50% 40% at 80% 80%, rgba(56, 189, 248, 0.10), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Contenido centrado */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-inline: auto;
}

/* Badge */
.hero .badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 9999px;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

/* Refinamiento título/subtítulo */
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
}
.hero p.subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #cbd5e1;
  margin: 0 auto 2rem;
  max-width: 70ch;
}

/* Botones refinados */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn {
  min-height: 48px;
  gap: 0.4rem;
  border-radius: 9999px;
  font-weight: 700;
  will-change: transform, box-shadow;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Micro texto motivacional */
.hero .micro-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .hero h1 { text-shadow: none; }
}
/* =========================================================
   SOBRE / ABOUT SECTION
   ---------------------------------------------------------
   - Fondo oscuro elevado
   - Grid de cards responsive
   - Hover sutil con glow
   - Iconos con efecto glow
   ========================================================= */

.section-dark {
  background-color: var(--bg-elev);
  color: var(--ink);
  padding: 5rem 1rem;
  text-align: center;
}

.section-dark h2 {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cards-grid.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-feature {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 0 transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-feature:hover {
  transform: translateY(-6px);
  border-color: var(--accent-1);
  box-shadow:
    0 0 20px rgba(0, 224, 255, 0.25),
    0 0 28px rgba(124, 58, 237, 0.25);
}

.card-feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.card-feature p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Icono con glow */
.icon-glow {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--accent-1);
  color: var(--accent-1);
}
/* ================= LANGUAGE SWITCH ================= */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--accent-1);
  color: var(--accent-1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.lang-switch button:hover {
  background: var(--accent-1);
  color: #0a0a0a;
}
