/* =====================================================================
   JaguarSystem — Landing (versión de prueba)
   Paleta derivada del logo (escudo + jaguar). Acento único: azul de marca.
   ===================================================================== */

:root {
  /* Fondos */
  --bg:        #0B1220;   /* base casi negro azulado */
  --bg-2:      #0A0A0F;   /* más profundo */
  --surface:   #0F1726;   /* tarjetas / secciones alternas */
  --surface-2: #121C2E;

  /* Azul de marca (degradado del logo) */
  --brand:      #2E7BD6;
  --brand-dark: #1E5FA8;
  --brand-glow: #4FA3F0;

  /* Acento secundario: cian eléctrico (familia azul) */
  --accent:      #22D3EE;   /* glows, bordes, iconos, hovers */
  --accent-deep: #1FB6D8;   /* fin del degradado en botones (texto legible) */

  /* Texto */
  --text:       #FFFFFF;
  --text-muted: #8A93A6;

  /* Bordes / líneas */
  --border:       rgba(79, 163, 240, 0.14);
  --border-hover: rgba(34, 211, 238, 0.55);

  --radius:    16px;
  --radius-sm: 10px;
  --container: 1160px;

  --shadow-glow: 0 0 0 1px rgba(34,211,238,.22), 0 12px 44px -12px rgba(34,211,238,.32);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; } /* respeta el atributo hidden por encima de display */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ----------------------------- Tipografía ----------------------------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--brand-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(34,211,238,.07);
  border: 1px solid rgba(34,211,238,.22);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px 1px var(--accent);
}
.section-head .eyebrow { margin-inline: auto; }

/* ----------------------------- Botones ----------------------------- */
.btn {
  --pad-y: .7rem; --pad-x: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-lg { --pad-y: .95rem; --pad-x: 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-deep));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(34,211,238,.28), 0 8px 24px -8px rgba(34,211,238,.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), 0 0 28px -2px rgba(34,211,238,.6), 0 12px 30px -10px rgba(34,211,238,.6);
}

.btn-ghost {
  background: rgba(34,211,238,.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(34,211,238,.1); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }

/* ============================ NAVBAR ============================ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.navbar.scrolled {
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-fallback { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px rgba(46,123,214,.4)); }
/* Logo real (assets/logo.png). Se ajusta a la altura del navbar. */
.brand-logo { height: 42px; width: auto; display: block; }
.footer-brand .brand-logo { height: 48px; }
.brand-text { font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.brand-text strong { font-weight: 800; color: var(--brand-glow); }

.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links > a:not(.btn) {
  font-size: .92rem; color: var(--text-muted); font-weight: 500; position: relative;
  white-space: nowrap; transition: color .2s ease;
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); box-shadow: 0 0 8px rgba(34,211,238,.7);
  transition: width .25s ease; border-radius: 2px;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: .4rem; }
.nav-account { padding-block: .5rem; padding-inline: .9rem; font-size: .88rem; }
.nav-account svg { width: 17px; height: 17px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: -54px 0; z-index: 0;
  background-image:
    linear-gradient(rgba(79,163,240,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,163,240,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 78%);
  animation: grid-pan 22s linear infinite;
}
@keyframes grid-pan {
  from { background-position: 0 0; }
  to   { background-position: 54px 54px; }
}

.hero-glow {
  position: absolute; top: -120px; left: 50%;
  width: 760px; height: 520px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(46,123,214,.28), transparent 62%);
  filter: blur(20px);
  transform: translateX(-50%);
  animation: glow-pulse 9s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

/* Segundo orbe que se desplaza lentamente */
.hero-orb {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(40px);
}
.hero-orb-2 {
  width: 380px; height: 380px; top: 40px; right: -60px;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 65%);
  animation: orb-drift 16s ease-in-out infinite;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-60px, 50px); }
}

/* Partículas flotantes */
.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-particles span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  box-shadow: 0 0 8px 1px rgba(34,211,238,.65);
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0%   { transform: translateY(0) scale(1);     opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-78vh) scale(.4); opacity: 0; }
}
/* Posiciones, tamaños y tiempos variados (look orgánico) */
.hero-particles span:nth-child(1)  { left: 6%;  animation-duration: 14s; animation-delay: 0s;   }
.hero-particles span:nth-child(2)  { left: 14%; animation-duration: 18s; animation-delay: 3s;   width: 3px; height: 3px; }
.hero-particles span:nth-child(3)  { left: 23%; animation-duration: 12s; animation-delay: 6s;   }
.hero-particles span:nth-child(4)  { left: 31%; animation-duration: 20s; animation-delay: 1s;   width: 2px; height: 2px; }
.hero-particles span:nth-child(5)  { left: 39%; animation-duration: 16s; animation-delay: 4s;   }
.hero-particles span:nth-child(6)  { left: 47%; animation-duration: 13s; animation-delay: 7s;   width: 5px; height: 5px; }
.hero-particles span:nth-child(7)  { left: 55%; animation-duration: 19s; animation-delay: 2s;   }
.hero-particles span:nth-child(8)  { left: 62%; animation-duration: 15s; animation-delay: 5s;   width: 3px; height: 3px; }
.hero-particles span:nth-child(9)  { left: 70%; animation-duration: 17s; animation-delay: 0s;   }
.hero-particles span:nth-child(10) { left: 77%; animation-duration: 11s; animation-delay: 8s;   width: 2px; height: 2px; }
.hero-particles span:nth-child(11) { left: 84%; animation-duration: 21s; animation-delay: 3s;   }
.hero-particles span:nth-child(12) { left: 90%; animation-duration: 14s; animation-delay: 6s;   width: 4px; height: 4px; }
.hero-particles span:nth-child(13) { left: 18%; animation-duration: 23s; animation-delay: 9s;   width: 2px; height: 2px; }
.hero-particles span:nth-child(14) { left: 50%; animation-duration: 18s; animation-delay: 10s;  }
.hero-particles span:nth-child(15) { left: 66%; animation-duration: 22s; animation-delay: 12s;  width: 3px; height: 3px; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.22rem); color: var(--text-muted); max-width: 640px; margin-bottom: 2.2rem; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ====================== BARRA DE CONFIANZA ====================== */
.trustbar { border-block: 1px solid var(--border); background: rgba(15,23,38,.5); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2rem; }
.trust-item { text-align: center; position: relative; }
.trust-item:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 42px; background: var(--border);
}
.trust-num {
  display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust-label { display: block; font-size: .85rem; color: var(--text-muted); }

/* ============================ SECCIONES ============================ */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { margin-bottom: .7rem; }
.section-head h2 { margin-bottom: .8rem; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ----------------------------- Tarjetas ----------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), rgba(15,23,38,.4));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* Hairline superior que se enciende en hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(34,211,238,.16), rgba(46,123,214,.08));
  border: 1px solid rgba(34,211,238,.22);
  transition: box-shadow .25s ease;
}
.card:hover .card-icon { box-shadow: 0 0 18px -2px rgba(34,211,238,.45); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* ====================== PLANES DE HOSTING ====================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }

.plan {
  position: relative;
  background: linear-gradient(180deg, var(--surface), rgba(15,23,38,.35));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 18px 50px -18px rgba(34,211,238,.55);
  background: linear-gradient(180deg, var(--surface-2), rgba(15,23,38,.5));
}
.plan-featured:hover { transform: translateY(-6px); }

.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--accent-deep));
  color: #04161b; font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(34,211,238,.9);
}
.plan-name { color: var(--accent); margin-bottom: .4rem; }
.plan-desc { color: var(--text-muted); font-size: .9rem; min-height: 2.6em; margin-bottom: 1rem; }
.plan-price { display: flex; align-items: baseline; gap: .15rem; margin-bottom: 1.3rem; }
.plan-price .currency { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }
.plan-price .amount { font-size: 2.8rem; font-weight: 800; }
.plan-price .per { font-size: .9rem; color: var(--text-muted); }
.plan-features { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.6rem; flex: 1; }
.plan-features li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: #cbd2de; }
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ====================== POR QUÉ ELEGIRNOS ====================== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature { text-align: center; padding: 1.4rem .8rem; }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(circle at 50% 30%, rgba(34,211,238,.22), rgba(46,123,214,.05));
  border: 1px solid rgba(34,211,238,.22);
  transition: box-shadow .25s ease, transform .25s ease;
}
.feature:hover .feature-icon { box-shadow: 0 0 22px -2px rgba(34,211,238,.5); transform: translateY(-3px); }
.feature-icon svg { width: 30px; height: 30px; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--text-muted); font-size: .92rem; }

/* ----------------------------- Testimonios ----------------------------- */
.testimonial { display: flex; flex-direction: column; gap: .9rem; }
.stars { color: #FFC857; letter-spacing: 2px; font-size: 1.05rem; }
.testimonial blockquote { font-size: .98rem; color: #d7dce5; font-style: italic; }
.testimonial figcaption { display: flex; flex-direction: column; margin-top: auto; }
.t-name { font-weight: 700; }
.t-role { font-size: .85rem; color: var(--text-muted); }

/* ============================ CTA FINAL ============================ */
.cta-final {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79,163,240,.25), transparent 55%),
    linear-gradient(135deg, var(--brand-dark), #143b6b);
  margin: 0; position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 80% 100%, #000, transparent 70%);
}
/* Ilustración de servidores/hosting a la derecha (temática del rubro) */
.cta-final::after {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: min(540px, 52%); height: 100%;
  background: url(../assets/hosting-bg.svg) right bottom / contain no-repeat;
}
.cta-inner { position: relative; z-index: 1; text-align: center; padding: 72px 0; max-width: 680px; }
.cta-inner h2 { margin-bottom: .9rem; }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; font-size: 1.08rem; }

/* ============================ FOOTER ============================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 2rem 2.4rem; padding-bottom: 48px;
}
.footer-brand { flex: 1 1 260px; min-width: 240px; max-width: 340px; }
.footer-grid .footer-col { flex: 1 1 140px; min-width: 130px; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-desc { color: var(--text-muted); font-size: .92rem; max-width: 320px; margin-bottom: 1.2rem; }
.socials { display: flex; gap: .7rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted); transition: .25s ease;
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { color: var(--accent); border-color: var(--border-hover); transform: translateY(-2px); }

.footer-col h4 { font-size: .95rem; margin-bottom: 1rem; color: #fff; }
.footer-col a, .footer-contact p { display: block; color: var(--text-muted); font-size: .9rem; margin-bottom: .55rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 1.2rem; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================ ANIMACIONES SCROLL ============================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* stagger en grids */
.cards-grid .reveal:nth-child(2), .pricing-grid .reveal:nth-child(2),
.features-grid .reveal:nth-child(2), .trust-inner .reveal:nth-child(2) { transition-delay: .08s; }
.cards-grid .reveal:nth-child(3), .pricing-grid .reveal:nth-child(3),
.features-grid .reveal:nth-child(3), .trust-inner .reveal:nth-child(3) { transition-delay: .16s; }
.features-grid .reveal:nth-child(4), .trust-inner .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-grid, .hero-glow, .hero-orb-2, .hero-particles span { animation: none !important; }
  .hero-particles { display: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .cards-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-featured { order: -1; } /* destacar arriba en móvil */
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,18,32,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 24px 1.4rem;
    transform: translateY(-130%); transition: transform .35s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--border); color: #fff; }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-account { margin-top: .4rem; }
  .nav-cta { margin: .5rem 0 0; }
}

@media (max-width: 560px) {
  .hero { padding: 124px 0 70px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .trust-item:nth-child(2)::after { display: none; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; }
  .cta-final::after { display: none; } /* la ilustración de servidores estorba en móvil */
}

/* ============================ MODAL ÁREA DE CLIENTE ============================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(4,8,16,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.modal-panel {
  position: relative; z-index: 1;
  width: min(440px, 100%); max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-hover);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34,211,238,.2), 0 30px 80px -20px rgba(0,0,0,.7);
  transform: translateY(16px) scale(.98); transition: transform .28s ease;
}
.modal.open .modal-panel { transform: none; }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.modal-title { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; }
.modal-title svg { width: 20px; height: 20px; color: var(--accent); }
.modal-actions { display: flex; align-items: center; gap: .4rem; }
.modal-ext, .modal-close {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: .2s ease;
}
.modal-ext svg, .modal-close svg { width: 18px; height: 18px; }
.modal-ext:hover, .modal-close:hover { color: var(--accent); border-color: var(--border-hover); }

.modal-body { position: relative; flex: 1; overflow-y: auto; padding: 1.8rem 1.7rem 2rem; }

/* ---- Tarjeta de login (formulario nativo WHMCS: dologin.php) ---- */
.login-card { text-align: center; }
.login-card-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(circle at 50% 30%, rgba(34,211,238,.22), rgba(46,123,214,.05));
  border: 1px solid rgba(34,211,238,.22);
}
.login-card-icon svg { width: 26px; height: 26px; }
.login-title { font-size: 1.25rem; margin-bottom: .4rem; }
.login-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.6rem; }

.login-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.login-field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.login-field input {
  background: #0C1424; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: #fff; font-family: inherit; font-size: .95rem; padding: .7rem .9rem; outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-field input::placeholder { color: #5b6579; }
.login-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.login-submit { margin-top: .4rem; }
.login-submit svg { width: 18px; height: 18px; }

.login-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-size: .84rem; flex-wrap: wrap; }
.login-links a { color: var(--text-muted); }
.login-links a:hover { color: var(--accent); }

body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .modal { padding: 16px; }
  .modal-panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal-panel { transition: none; }
}

/* =====================================================================
   PÁGINAS DE SERVICIO (internas) — hosting, diseño web, dominios, etc.
   ===================================================================== */

/* Hero interno más compacto que el de la home */
.page-hero { position: relative; padding: 140px 0 64px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -54px 0; z-index: 0;
  background-image:
    linear-gradient(rgba(79,163,240,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,163,240,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, #000 30%, transparent 75%);
}
.page-hero::after {
  content: ""; position: absolute; top: -120px; left: 10%;
  width: 560px; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(34,211,238,.16), transparent 62%);
  filter: blur(20px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 760px; margin: .6rem 0 1rem; }
.page-hero .lead { max-width: 620px; color: var(--text-muted); font-size: clamp(1rem,1.5vw,1.18rem); margin-bottom: 1.8rem; }
.page-hero .lead strong { color: var(--text); font-weight: 600; }

/* Migas de pan */
.breadcrumb-nav { font-size: .82rem; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav span { color: var(--accent); }
.breadcrumb-nav .sep { margin: 0 .4rem; opacity: .5; }

/* Bloque de contenido a 2 columnas (texto + lista) */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.4rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.prose p { color: var(--text-muted); margin-bottom: 1rem; }
.prose h2 { margin-bottom: 1rem; }
.prose .eyebrow { margin-bottom: .8rem; }

/* Lista con check cian */
.check-list { display: flex; flex-direction: column; gap: .9rem; }
.check-list li { position: relative; padding-left: 2rem; color: #cbd2de; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(34,211,238,.12); border: 1px solid var(--border-hover);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: .45em; width: 7px; height: 4px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.check-list li strong { color: #fff; font-weight: 600; }

/* Caja lateral destacada */
.aside-card {
  background: linear-gradient(180deg, var(--surface-2), rgba(15,23,38,.5));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
}

/* FAQ con <details> (sin JS, indexable por Google) */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 1.2rem; transition: border-color .25s ease;
}
.faq details[open] { border-color: var(--border-hover); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding: 0 0 1.1rem; font-size: .95rem; }

/* Enlaces a otros servicios (interlinking SEO) */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card {
  display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: #cbd2de; font-weight: 600; transition: .25s ease;
}
.related-card:hover { border-color: var(--border-hover); color: #fff; transform: translateY(-2px); }
.related-card svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Enlace "Saber más" en tarjetas de servicio de la home */
.card-link{
  display:inline-flex; align-items:center; gap:.4rem; margin-top:1rem;
  font-weight:600; font-size:.9rem; color:var(--accent);
}
.card-link::after{ content:"→"; transition:transform .2s ease; }
.card:hover .card-link::after{ transform:translateX(4px); }

/* ============================ TOGGLE MENSUAL/ANUAL ============================ */
.billing-toggle{
  display:inline-flex; align-items:center; gap:.25rem;
  background:var(--surface); border:1px solid var(--border); border-radius:999px;
  padding:.3rem; margin:0 auto 2.4rem; position:relative;
}
.section-head + .billing-toggle{ display:flex; width:max-content; }
.billing-btn{
  border:0; background:transparent; cursor:pointer; font-family:inherit;
  padding:.55rem 1.2rem; border-radius:999px; font-weight:600; font-size:.9rem;
  color:var(--text-muted); display:inline-flex; align-items:center; gap:.5rem;
  transition:color .2s ease, background .25s ease;
}
.billing-btn.is-active{
  background:linear-gradient(135deg, var(--brand-dark), var(--accent-deep));
  color:#fff; box-shadow:0 4px 14px -4px rgba(34,211,238,.5);
}
.billing-save{
  font-size:.72rem; font-weight:700; padding:.15rem .5rem; border-radius:999px;
  background:rgba(34,211,238,.16); color:var(--accent);
}
.billing-btn.is-active .billing-save{ background:rgba(255,255,255,.22); color:#fff; }

.plan-price{ display:flex; align-items:baseline; gap:.15rem; margin-bottom:.3rem; }
.plan-price-note{ display:block; font-size:.8rem; color:var(--text-muted); margin-bottom:1.3rem; min-height:1.2em; }
.plan-price-note[hidden]{ display:none; }

/* ============================ BUSCADOR DE DOMINIOS ============================ */
.domain-search{ max-width: 640px; margin-top: .6rem; }
.domain-search-box{
  display:flex; align-items:center; gap:.5rem;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:.5rem .5rem .5rem 1.1rem;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.domain-search-box:focus-within{ border-color:var(--border-hover); box-shadow:var(--shadow-glow); }
.domain-search-icon{ width:20px; height:20px; color:var(--text-muted); flex:none; }
.domain-search-input{
  flex:1; min-width:0; background:transparent; border:0; outline:0;
  color:#fff; font-family:inherit; font-size:1rem; padding:.6rem 0;
}
.domain-search-input::placeholder{ color:var(--text-muted); }
.domain-search-btn{ flex:none; white-space:nowrap; }
.domain-search-btn svg{ width:18px; height:18px; }

.domain-tlds{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:.9rem; }
.domain-tlds-label{ font-size:.85rem; color:var(--text-muted); margin-right:.2rem; }
.tld-chip{
  border:1px solid var(--border); background:rgba(34,211,238,.04); color:var(--text-muted);
  font-family:inherit; font-size:.85rem; font-weight:600; cursor:pointer;
  padding:.4rem .85rem; border-radius:999px; transition:.2s ease;
}
.tld-chip:hover{ border-color:var(--border-hover); color:#fff; }
.tld-chip.is-active{
  background:linear-gradient(135deg, var(--brand-dark), var(--accent-deep));
  border-color:transparent; color:#fff;
}
.domain-search-hint{ font-size:.82rem; color:var(--text-muted); margin-top:.8rem; }

@media (max-width: 560px){
  .domain-search-box{ flex-wrap:wrap; }
  .domain-search-input{ width:100%; order:1; }
  .domain-search-icon{ order:0; }
  .domain-search-btn{ order:2; width:100%; justify-content:center; margin-top:.3rem; }
}

/* ============================ HERO CON ILUSTRACIÓN ============================ */
.hero-with-art{
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center;
}
.hero-art{ justify-self: end; width: 100%; max-width: 460px; }
.hero-art img, .hero-art svg{
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}
.hero-art-float{ animation: art-float 6s ease-in-out infinite; }
@keyframes art-float{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (max-width: 900px){
  .hero-with-art{ grid-template-columns: 1fr; }
  .hero-art{ display: none; } /* prioriza el texto en pantallas medianas/chicas */
}
@media (prefers-reduced-motion: reduce){
  .hero-art-float{ animation: none; }
}
