/* ════════════════════════════════════════════════════════════
   DanlWeb — styles.css
    1. Base / utilidades de sección
    2. Navbar
    3. Hero (globo + cards)
    4. Servicios
    5. Por qué DanlWeb (stats)
    6. Proceso (timeline)
    7. Planes
    8. Portafolio
    9. FAQ
   10. CTA / Contacto
   11. Footer
   12. Botón flotante WhatsApp
   13. Reveal on scroll / accesibilidad
   ════════════════════════════════════════════════════════════ */

/* ── 1. BASE ──────────────────────────────────────────────── */

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

#particles {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
.wrap--narrow { max-width: 800px; }

.section {
  position: relative;
  padding: 5.5rem 0;
}
@media (min-width: 1024px) { .section { padding: 7.5rem 0; } }

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.55) 12%, rgba(15,23,42,.55) 88%, transparent);
}

/* Encabezado de sección */
.sec-head { text-align: center; max-width: 680px; margin: 0 auto; }

.chip {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.4);
  background: rgba(29,78,216,.12);
  color: #60a5fa;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sec-title {
  margin-top: 1.1rem;
  font-size: clamp(1.5rem, 5.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.6px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.sec-sub {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  line-height: 1.75;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.glow--hero {
  top: 8%; right: -12%;
  width: min(56vw, 760px); height: min(56vw, 760px);
  background: radial-gradient(circle, rgba(29,78,216,.30) 0%, transparent 68%);
}

/* ── 2. NAVBAR ────────────────────────────────────────────── */

#navbar.scrolled {
  background: rgba(10,17,40,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(59,130,246,.15);
}

.nav-link { position: relative; transition: color .2s; }
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: #3b82f6;
  transition: width .28s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }

.ham-line {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
#hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open .ham-line:nth-child(2) { opacity: 0; }
#hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.4rem 1.4rem 1.8rem;
  background: rgba(7,13,32,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(59,130,246,.2);
  box-shadow: 0 24px 40px rgba(0,0,0,.45);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu a {
  color: #c3cde0;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.mobile-menu a:hover { color: #fff; }

/* ── 3. HERO ──────────────────────────────────────────────── */

/* Móvil: el globo fluye tras los botones — visible en la 1ª pantalla */
.globe-wrap {
  position: relative;
  width: 128vw;
  max-width: 128vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1.25rem;
  margin-bottom: -50vw;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.globe-wrap::before {
  content: '';
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.38) 0%, transparent 62%);
  filter: blur(50px);
}
.globe {
  position: relative;
  display: block;
  width: 100%; height: auto;
  filter: drop-shadow(0 0 44px rgba(37,99,235,.38));
  animation: globe-float 8s ease-in-out infinite;
}
@keyframes globe-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.008); }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .globe-wrap { width: 96vw; margin-top: 2rem; margin-bottom: -38vw; }
}

@media (min-width: 1024px) {
  .globe-wrap {
    position: absolute;
    top: 50%;
    right: max(-26vw, -480px);
    left: auto;
    width: min(56vw, 860px);
    margin: 0;
    transform: translateY(-54%);
    z-index: 0;
  }
  .globe-wrap::before {
    inset: -4%;
    background: radial-gradient(circle, rgba(29,78,216,.30) 0%, transparent 62%);
  }
}

/* Cards del hero */
.h-card {
  background: rgba(13,20,40,.72);
  border: 1px solid rgba(59,130,246,.22);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.h-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 14px 36px rgba(29,78,216,.22);
}
.h-card-ic {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(96,165,250,.5);
  background: rgba(29,78,216,.12);
  margin-bottom: .85rem;
  transition: transform .35s ease;
}
.h-card:hover .h-card-ic { transform: rotate(-8deg) scale(1.08); }
.h-card h3 { font-size: .98rem; font-weight: 600; color: #fff; }
.h-card p  { margin-top: .35rem; font-size: .82rem; line-height: 1.55; color: #94a3b8; }

/* Botones globales */
.btn-glow {
  box-shadow: 0 0 20px rgba(37,99,235,.45);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.btn-glow:hover {
  transform: scale(1.05);
  background-color: #3b82f6;
  box-shadow: 0 0 32px rgba(59,130,246,.65);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  padding: .68rem 1.5rem .68rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn-ghost:hover {
  transform: scale(1.05);
  border-color: rgba(96,165,250,.6);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 24px rgba(59,130,246,.3);
}
.play-dot {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 12px rgba(37,99,235,.55);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.btn-ghost:hover .play-dot { transform: rotate(360deg); }

/* ── 4. SERVICIOS ─────────────────────────────────────────── */

.s-card {
  position: relative;
  padding: 1.9rem 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: #111827;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.s-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.s-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 18px 44px rgba(29,78,216,.2);
}
.s-card:hover::before { opacity: 1; }

.s-ic {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  border: 1.5px solid rgba(96,165,250,.45);
  background: rgba(29,78,216,.14);
  color: #60a5fa;
  margin-bottom: 1.15rem;
  transition: transform .35s ease, background .3s ease;
}
.s-card:hover .s-ic {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(29,78,216,.25);
}
.s-card h3 { font-size: 1.1rem; font-weight: 600; }
.s-card p  { margin-top: .6rem; color: #94a3b8; font-size: .9rem; line-height: 1.65; }

/* ── 5. POR QUÉ DANLWEB ───────────────────────────────────── */

.wp-item { display: flex; gap: .9rem; align-items: flex-start; }
.wp-check {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(29,78,216,.2);
  border: 1px solid rgba(96,165,250,.5);
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}
.wp-item b { display: block; font-size: .98rem; font-weight: 600; }
.wp-item p { margin-top: .2rem; color: #94a3b8; font-size: .87rem; line-height: 1.6; }

.stat-box {
  padding: 1.75rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(59,130,246,.25);
  background: rgba(13,20,40,.7);
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.stat-box:hover {
  transform: translateY(-6px);
  border-color: rgba(96,165,250,.6);
  box-shadow: 0 14px 34px rgba(29,78,216,.22);
}
.stat-num {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-suffix {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3b82f6;
}
.stat-box p { margin-top: .35rem; font-size: .8rem; color: #94a3b8; }

/* ── 6. PROCESO ───────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: 2rem 1.6rem 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: #111827;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.step:hover {
  transform: translateY(-8px);
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 18px 40px rgba(29,78,216,.2);
}
/* línea conectora en desktop */
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -1.25rem;
    width: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(59,130,246,.6), transparent);
    pointer-events: none;
  }
  .steps { overflow: visible; }
}
.step-num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: rgba(96,165,250,.35);
  transition: color .3s ease;
}
.step:hover .step-num { color: #60a5fa; }
.step h3 { margin-top: .7rem; font-size: 1.08rem; font-weight: 600; }
.step p  { margin-top: .55rem; color: #94a3b8; font-size: .88rem; line-height: 1.65; }

/* ── 7. PLANES ────────────────────────────────────────────── */

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 1.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: #111827;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.plan:hover {
  transform: translateY(-8px);
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 20px 46px rgba(29,78,216,.22);
}

/* Plan destacado */
.plan--featured {
  border: 1.5px solid rgba(59,130,246,.7);
  background: linear-gradient(180deg, rgba(29,78,216,.14), #111827 55%);
  box-shadow: 0 0 40px rgba(29,78,216,.28);
}
@media (min-width: 768px) {
  .plan--featured { transform: scale(1.04); }
  .plan--featured:hover { transform: scale(1.04) translateY(-8px); }
}
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: .32rem 1rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(37,99,235,.7);
}

.plan-name { font-size: 1.3rem; font-weight: 700; }
.plan-desc { margin-top: .4rem; color: #94a3b8; font-size: .87rem; line-height: 1.6; }
@media (min-width: 768px) { .plan-desc { min-height: 3.2em; } }

.plan-price {
  margin-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem;
}
.plan-price .cur { font-size: 1.6rem; font-weight: 700; color: #60a5fa; }
.plan-price .usd {
  margin-left: .5rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #94a3b8;
}

.plan-list {
  flex: 1;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .89rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.plan-list svg {
  width: 16px; height: 16px;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Nota informativa dentro de la lista del plan */
.plan-note {
  margin-top: .35rem;
  padding-top: .85rem;
  border-top: 1px dashed rgba(148,163,184,.28);
  color: #94a3b8 !important;
  font-size: .82rem !important;
}
.plan-note svg {
  color: #94a3b8 !important;
  width: 15px !important;
  height: 15px !important;
}
.plan-note b {
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
}

.plan-btn {
  display: block;
  text-align: center;
  padding: .85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.plan-btn--fill {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 0 22px rgba(37,99,235,.5);
}
.plan-btn--fill:hover {
  background: #3b82f6;
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(59,130,246,.7);
}
.plan-btn--ghost {
  border: 1px solid rgba(96,165,250,.45);
  color: #fff;
  background: rgba(29,78,216,.08);
}
.plan-btn--ghost:hover {
  transform: scale(1.04);
  border-color: rgba(96,165,250,.9);
  background: rgba(29,78,216,.2);
  box-shadow: 0 0 24px rgba(59,130,246,.35);
}

/* Add-ons */
.addons {
  margin-top: 3.5rem;
  padding: 2.2rem 1.75rem;
  border-radius: 20px;
  border: 1px dashed rgba(96,165,250,.35);
  background: rgba(13,20,40,.5);
  text-align: center;
}
.addons-title { font-weight: 700; font-size: 1.15rem; }
.addons-sub   { margin-top: .35rem; color: #94a3b8; font-size: .88rem; }

.addons-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
@media (min-width: 420px) {
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .addons-grid { grid-template-columns: repeat(4, 1fr); }
}

.addon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: 1.4rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,.25);
  background: rgba(17,24,39,.75);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.addon:hover {
  transform: translateY(-6px);
  border-color: rgba(96,165,250,.6);
  box-shadow: 0 14px 34px rgba(29,78,216,.22);
}
.addon-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 20px rgba(37,99,235,.45);
  transition: transform .35s ease;
}
.addon:hover .addon-ic { transform: rotate(-8deg) scale(1.08); }
.addon-ic svg { width: 22px; height: 22px; color: #fff; }

.addon b {
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.addon-price {
  margin-top: .35rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(59,130,246,.3);
  width: min(60%, 120px);
  font-size: clamp(1.35rem, 5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #60a5fa;
}
.addon-price em {
  margin-left: .2rem;
  font-size: .8rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  color: #94a3b8;
}

.addons-link {
  display: inline-block;
  margin-top: 1.75rem;
  color: #60a5fa;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, transform .2s;
}
.addons-link:hover { color: #93c5fd; transform: translateX(3px); }

/* ── 8. PORTAFOLIO ────────────────────────────────────────── */

.proj {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: #111827;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.proj:hover {
  transform: translateY(-8px);
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 20px 46px rgba(29,78,216,.22);
}

.proj-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 28%, rgba(29,78,216,.32) 0%, transparent 65%),
    #0a1128;
}
/* Cada proyecto con su matiz propio */
.proj-thumb--soma {
  background:
    radial-gradient(ellipse 62% 52% at 78% 28%, rgba(16,185,129,.24) 0%, transparent 65%),
    #0a1128;
}
.proj-thumb--bahia {
  background:
    radial-gradient(ellipse 62% 52% at 78% 28%, rgba(249,115,22,.22) 0%, transparent 65%),
    #0a1128;
}
.proj-thumb--yule {
  background:
    radial-gradient(ellipse 62% 52% at 78% 28%, rgba(139,92,246,.26) 0%, transparent 65%),
    #0a1128;
}

.proj-badge {
  position: absolute;
  top: .8rem; right: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.45);
  color: #4ade80;
  font-size: .68rem;
  font-weight: 600;
  z-index: 2;
}
.proj-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: livePulse 1.8s ease infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(1.3); }
}

/* Mockup abstracto de la miniatura */
.proj-mock { display: flex; flex-direction: column; gap: .5rem; }
.pm-bar { display: flex; gap: .3rem; margin-bottom: .45rem; }
.pm-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(148,163,184,.35); }
.pm-line {
  height: 7px;
  width: 88%;
  border-radius: 4px;
  background: rgba(148,163,184,.2);
}
.pm-line--title {
  height: 13px;
  width: 60%;
  background: linear-gradient(90deg, rgba(96,165,250,.85), rgba(59,130,246,.35));
}
/* fila de cards (SOMA) */
.pm-cards { display: flex; gap: .4rem; margin-top: .35rem; }
.pm-cards span {
  flex: 1;
  height: 26px;
  border-radius: 5px;
  background: rgba(148,163,184,.14);
  border: 1px solid rgba(96,165,250,.18);
}
/* grilla de productos (BahíaColina) */
.pm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .35rem;
  margin-top: .35rem;
}
.pm-grid span {
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(148,163,184,.14);
  border: 1px solid rgba(96,165,250,.18);
}
.pm-btn {
  margin-top: .5rem;
  width: 78px; height: 22px;
  border-radius: 6px;
  background: #1d4ed8;
  box-shadow: 0 0 14px rgba(37,99,235,.55);
  transition: background .3s ease;
}
.proj:hover .pm-btn { background: #3b82f6; }

/* Info */
.proj-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.5rem 1.6rem;
}
.proj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.proj-info h3 {
  font-size: 1.08rem;
  font-weight: 600;
  overflow-wrap: break-word;
  min-width: 0;
}
.proj-tag {
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,.3);
  background: rgba(29,78,216,.12);
  color: #93c5fd;
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
}
.proj-info > p {
  flex: 1;
  margin-top: .55rem;
  color: #94a3b8;
  font-size: .86rem;
  line-height: 1.65;
}

/* Chips de funcionalidades */
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .9rem;
}
.proj-stack span {
  padding: .25rem .6rem;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #cbd5e1;
  font-size: .7rem;
  font-weight: 500;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  overflow-wrap: anywhere;
  color: #60a5fa;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.proj:hover .proj-link { gap: .6rem; color: #93c5fd; }

/* CTA bajo el portafolio */
.proj-cta {
  margin-top: 3rem;
  padding: 1.75rem 1.9rem;
  border-radius: 18px;
  border: 1px solid rgba(59,130,246,.28);
  background: linear-gradient(135deg, rgba(29,78,216,.14), rgba(13,20,40,.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .proj-cta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.proj-cta p { color: #cbd5e1; font-size: .95rem; line-height: 1.6; }
.proj-cta b { color: #fff; font-weight: 600; }
.proj-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(37,99,235,.45);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, gap .22s ease;
}
.proj-cta-btn:hover {
  transform: scale(1.05);
  gap: .75rem;
  background: #3b82f6;
  box-shadow: 0 0 32px rgba(59,130,246,.65);
}

/* ── 9. FAQ ───────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: .8rem; }

.faq {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: #111827;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq:hover, .faq[open] {
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 8px 28px rgba(29,78,216,.15);
}
.faq summary {
  position: relative;
  padding: 1.2rem 3.2rem 1.2rem 1.5rem;
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #93c5fd; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid #60a5fa;
  border-bottom: 2px solid #60a5fa;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s ease;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p {
  padding: 0 1.5rem 1.35rem;
  color: #94a3b8;
  font-size: .9rem;
  line-height: 1.75;
  animation: faqOpen .3s ease;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 10. CTA / CONTACTO ───────────────────────────────────── */

.cta {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.75rem;
  border-radius: 26px;
  border: 1px solid rgba(59,130,246,.35);
  background: linear-gradient(180deg, rgba(29,78,216,.16), rgba(13,20,40,.85));
  overflow: hidden;
}
@media (min-width: 768px) { .cta { padding: 4.5rem 3rem; } }

.cta-glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 100%;
  background: radial-gradient(ellipse, rgba(59,130,246,.28) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-title {
  position: relative;
  margin-top: 1.2rem;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.6px;
}
.cta-sub {
  position: relative;
  margin: 1rem auto 0;
  max-width: 520px;
  color: #94a3b8;
  font-size: clamp(.92rem, 1.6vw, 1.02rem);
  line-height: 1.75;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: 2.2rem;
  padding: 1rem clamp(1.2rem, 5vw, 2.2rem);
  border-radius: 12px;
  background: #25D366;
  color: #06281a;
  font-weight: 700;
  font-size: clamp(.9rem, 3.4vw, 1rem);
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(37,211,102,.4);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.cta-btn:hover {
  transform: scale(1.05);
  background: #2ee87a;
  box-shadow: 0 0 44px rgba(37,211,102,.6);
}

.cta-links {
  position: relative;
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.cta-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #94a3b8;
  font-size: .87rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.cta-links a svg { flex-shrink: 0; }
.cta-links a:hover { color: #60a5fa; }
.cta-sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,.15);
}
@media (max-width: 480px) { .cta-sep { display: none; } }

/* ── 11. FOOTER ───────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(10,17,40,.7);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem 1.25rem;
}
@media (min-width: 640px) { .footer-nav { gap: 1.5rem; } }
.footer-nav a {
  color: #94a3b8;
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }

.footer-social { display: flex; gap: .65rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #cbd5e1;
  transition: transform .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.footer-social a:hover {
  transform: translateY(-3px);
  color: #60a5fa;
  border-color: rgba(96,165,250,.6);
  background: rgba(29,78,216,.15);
  box-shadow: 0 0 18px rgba(59,130,246,.35);
}
/* Colores de marca al hacer hover */
.footer-social a:nth-child(1):hover {   /* Instagram */
  color: #E1306C;
  border-color: rgba(225,48,108,.6);
  background: rgba(225,48,108,.12);
  box-shadow: 0 0 18px rgba(225,48,108,.35);
}
.footer-social a:nth-child(2):hover {   /* WhatsApp */
  color: #25D366;
  border-color: rgba(37,211,102,.6);
  background: rgba(37,211,102,.12);
  box-shadow: 0 0 18px rgba(37,211,102,.35);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #64748b;
  font-size: .8rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── 12. BOTÓN FLOTANTE WHATSAPP ──────────────────────────── */

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #06281a;
  box-shadow: 0 8px 26px rgba(37,211,102,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .35s ease, transform .35s ease, visibility .35s, box-shadow .25s ease;
}
.wa-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 34px rgba(37,211,102,.65);
}
/* pulso */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.6);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-tip {
  position: absolute;
  right: calc(100% + .6rem);
  white-space: nowrap;
  padding: .4rem .85rem;
  border-radius: 8px;
  background: rgba(13,20,40,.95);
  border: 1px solid rgba(59,130,246,.3);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) { .wa-tip { display: none; } }

/* ── 13. REVEAL ON SCROLL / ACCESIBILIDAD ─────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* el plan destacado conserva su escala al revelarse */
@media (min-width: 768px) {
  .plan--featured.reveal { transform: translateY(28px) scale(1.04); }
  .plan--featured.reveal.visible { transform: translateY(0) scale(1.04); }
}

:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ════════════════════════════════════════════════════════════
   14. BLINDAJE RESPONSIVE — auditoría por dispositivo
   Cubre: 320px → 1920px+, orientación horizontal, y áreas
   táctiles accesibles. Nada debe romperse en ningún ancho.
   ════════════════════════════════════════════════════════════ */

/* ── 14.1 GUARDAS GLOBALES ────────────────────────────────── */

/* Ninguna imagen o media puede desbordar su contenedor */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}
.globe { height: auto; }   /* el globo sí conserva su ratio */

/* Palabras largas (URLs, correos) nunca rompen el layout */
h1, h2, h3, h4, p, li, a, summary, b {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Áreas táctiles mínimas (accesibilidad WCAG: 44×44px) */
@media (pointer: coarse) {
  .nav-link,
  .mobile-menu a,
  .footer-nav a,
  .cta-links a,
  .proj-link,
  .addons-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .faq summary { min-height: 52px; display: flex; align-items: center; }
}

/* Sin hover en pantallas táctiles: evita estados "pegados" */
@media (hover: none) {
  .h-card:hover,
  .s-card:hover,
  .step:hover,
  .plan:hover,
  .proj:hover,
  .stat-box:hover,
  .addon:hover { transform: none; }
  .plan--featured:hover { transform: none; }
}
@media (hover: none) and (min-width: 768px) {
  .plan--featured:hover { transform: scale(1.04); }
}

/* ── 14.2 MÓVIL PEQUEÑO (320px – 374px) ──────────────────── */
@media (max-width: 374px) {
  .wrap { padding: 0 1rem; }
  .section { padding: 4rem 0; }

  /* Navbar: el logo no debe pelear con el hamburger */
  #navbar .max-w-\[1200px\] { padding-left: 1rem; padding-right: 1rem; }

  /* Hero */
  .btn-ghost { padding: .6rem 1.1rem .6rem .7rem; font-size: .85rem; }
  .play-dot  { width: 24px; height: 24px; }

  /* Planes: el precio no puede desbordar */
  .plan { padding: 1.9rem 1.35rem; }
  .plan-price { font-size: 2.3rem; letter-spacing: -1px; }
  .plan-price .cur { font-size: 1.3rem; }
  .plan-list li { font-size: .84rem; }
  .plan-badge { font-size: .62rem; padding: .28rem .7rem; }

  /* Servicios y cards */
  .s-card { padding: 1.5rem 1.25rem; }
  .h-card { padding: 1.15rem 1.2rem; }
  .step   { padding: 1.6rem 1.25rem; }

  /* Add-ons */
  .addons { padding: 1.6rem 1.1rem; }
  .addon  { padding: 1.15rem .8rem; }

  /* Portafolio */
  .proj-info { padding: 1.15rem 1.2rem 1.35rem; }
  .proj-cta  { padding: 1.4rem 1.2rem; }
  .proj-cta-btn { width: 100%; justify-content: center; }

  /* CTA */
  .cta { padding: 2.6rem 1.2rem; }
  .cta-btn { width: 100%; justify-content: center; }

  /* FAQ */
  .faq summary { padding: 1rem 2.8rem 1rem 1.15rem; font-size: .92rem; }
  .faq p       { padding: 0 1.15rem 1.15rem; font-size: .86rem; }

  /* Botón flotante más discreto */
  .wa-float { width: 50px; height: 50px; right: 1rem; bottom: 1rem; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ── 14.3 MÓVIL ESTÁNDAR (375px – 639px) ─────────────────── */
@media (min-width: 375px) and (max-width: 639px) {
  /* El CTA y los botones ocupan el ancho para ser fáciles de tocar */
  .cta-btn,
  .proj-cta-btn { width: 100%; justify-content: center; }
}

/* ── 14.4 MÓVIL HORIZONTAL / PANTALLAS BAJAS ─────────────── */
/* Pantalla ancha pero muy baja: el hero no debe forzar 100svh */
@media (max-height: 500px) and (orientation: landscape) {
  #inicio > div {
    min-height: auto !important;
    padding-top: 90px;
    padding-bottom: 2.5rem;
  }
  .globe-wrap {
    width: 60vw;
    margin-top: .5rem;
    margin-bottom: -22vw;
  }
  .section { padding: 3.5rem 0; }
  /* El menú móvil no puede tapar toda la pantalla */
  .mobile-menu {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    gap: .8rem;
    padding-top: 1rem;
    padding-bottom: 1.2rem;
  }
  .mobile-menu a { font-size: .95rem; }
}

/* ── 14.5 TABLET (640px – 1023px) ────────────────────────── */
@media (min-width: 640px) and (max-width: 1023px) {
  /* Servicios: 2 columnas se ven mejor que 3 apretadas */
  .plan-price { font-size: 2.8rem; }

  /* Planes en columna única hasta 767px; a 768px+ van a 3 */
  .plan--featured { margin-top: .5rem; }

  /* El CTA del portafolio no debe apretarse */
  .proj-cta { gap: 1.4rem; }
}

/* Planes: en tablets angostas 3 columnas quedan ilegibles */
@media (min-width: 768px) and (max-width: 900px) {
  .plan { padding: 1.9rem 1.3rem; }
  .plan-price { font-size: 2.5rem; }
  .plan-list li { font-size: .83rem; }
  .plan-name { font-size: 1.15rem; }
}

/* ── 14.6 DESKTOP GRANDE (1600px+) ───────────────────────── */
@media (min-width: 1600px) {
  .wrap { max-width: 1320px; }
  /* El globo no debe alejarse demasiado en pantallas anchas */
  .globe-wrap { right: -380px; width: 840px; }
}
@media (min-width: 1920px) {
  .globe-wrap { right: -340px; width: 880px; }
  /* Evita que el hero quede con demasiado aire vertical */
  #inicio > div { padding-top: 2rem; padding-bottom: 2rem; }
}

/* ── 14.7 ACCESIBILIDAD ──────────────────────────────────── */

/* Contraste de foco visible en todos los interactivos */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
  border-radius: 6px;
}

/* El menú móvil abierto bloquea el scroll del fondo */
body.menu-open { overflow: hidden; }

/* Respeta el modo de alto contraste del sistema */
@media (prefers-contrast: more) {
  .sec-sub, .s-card p, .step p, .h-card p, .proj-info > p { color: #cbd5e1; }
  .plan-list li { color: #e2e8f0; }
}

/* Skip link — visible solo al navegar con teclado */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 200;
  padding: .7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  background: #1d4ed8;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .25s ease;
}
.skip-link:focus { top: 0; }