/* ==========================================================================
   Spain Nova — WebLab
   Estilos específicos de la sección "WebLab" (diseño y desarrollo web).
   Reutiliza los tokens y componentes base de style.css.
   ========================================================================== */

/* ---- Hero WebLab ---------------------------------------------------------- */
.weblab-hero {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 720px at 78% -10%, rgba(207, 162, 74, 0.16), transparent 60%),
    radial-gradient(900px 640px at 8% 110%, rgba(43, 92, 168, 0.22), transparent 60%),
    var(--bg);
}

.weblab-hero .network-canvas { opacity: 0.55; }

.weblab-hero-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80%;
  background:
    conic-gradient(from 120deg at 50% 50%,
      rgba(207,162,74,0.00), rgba(207,162,74,0.10),
      rgba(43,92,168,0.14), rgba(207,162,74,0.00));
  filter: blur(80px);
  opacity: 0.7;
  animation: weblab-spin 34s linear infinite;
  pointer-events: none;
}

@keyframes weblab-spin { to { transform: rotate(360deg); } }

.weblab-hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 1200px;
}

/* Layout del hero: arriba (título | mini), abajo (texto + botones) */
.hero-top {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
}
.hero-top-right { display: flex; justify-content: flex-end; }
.hero-bottom { margin-top: 46px; max-width: 720px; }

/* ---- Mini-navegador del hero (columna derecha) ---------------------------- */
.hero-mini {
  position: relative;
  width: min(100%, 480px);
  margin-left: auto;
  z-index: 3;
  pointer-events: none;
}
.hero-mini-glow {
  position: absolute;
  inset: -16% -12%;
  z-index: -1;
  background: radial-gradient(58% 58% at 50% 42%, rgba(207, 162, 74, 0.28), transparent 70%);
  filter: blur(36px);
  animation: heroMiniGlow 4.5s ease-in-out infinite;
}
.hero-mini-browser {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  /* marco dorado: gradiente en el borde (border-box) + interior sólido (padding-box) */
  border: 2px solid transparent;
  background:
    linear-gradient(#0a1220, #0a1220) padding-box,
    var(--gold-grad) border-box;
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 0 0;
  box-shadow:
    0 60px 120px -35px rgba(0, 0, 0, 0.9),
    0 0 42px -6px rgba(207, 162, 74, 0.5);
  animation: heroMiniFloat 8s ease-in-out infinite, heroMiniShine 5.5s linear infinite;
  will-change: transform, background-position;
}
.hero-mini-browser::after {
  /* barrido de brillo diagonal que cruza el navegador */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 245, 214, 0.28) 48%, rgba(255, 255, 255, 0.05) 52%, transparent 62%);
  transform: translateX(-120%);
  animation: heroMiniSweep 5.5s ease-in-out infinite;
}
.hero-mini-bar {
  height: 40px;
  border-radius: 0;
}
.hero-mini-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1320;
}
.hero-mini-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroMiniCycle 40s ease-in-out infinite;
}
.hero-mini-screen img:nth-child(1) { animation-delay: 0s; }
.hero-mini-screen img:nth-child(2) { animation-delay: 5s; }
.hero-mini-screen img:nth-child(3) { animation-delay: 10s; }
.hero-mini-screen img:nth-child(4) { animation-delay: 15s; }
.hero-mini-screen img:nth-child(5) { animation-delay: 20s; }
.hero-mini-screen img:nth-child(6) { animation-delay: 25s; }
.hero-mini-screen img:nth-child(7) { animation-delay: 30s; }
.hero-mini-screen img:nth-child(8) { animation-delay: 35s; }

@keyframes heroMiniFloat {
  0%, 100% { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) translateY(-10px); }
  50%      { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) translateY(10px); }
}
@keyframes heroMiniShine {
  to { background-position: 0 0, -240% 0; }
}
@keyframes heroMiniSweep {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}
@keyframes heroMiniGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}
@keyframes heroMiniCycle {
  0%    { opacity: 0; }
  1.2%  { opacity: 1; }
  12%   { opacity: 1; }
  14%   { opacity: 0; }
  100%  { opacity: 0; }
}

@media (max-width: 920px) {
  .hero-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-top-right { justify-content: center; }
  .hero-mini { margin: 0 auto; width: min(100%, 420px); }
}

/* ---- Mini-sección intro bajo el hero (texto + CTA + stats) ----------------- */
.weblab-intro {
  position: relative;
  padding: 64px 0 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(680px 300px at 50% -10%, rgba(207, 162, 74, 0.06), transparent 70%),
    var(--bg-soft);
}
.weblab-intro .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.weblab-intro-text {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: 34px;
}
.weblab-intro-text strong { color: var(--text); font-weight: 500; }
.weblab-intro .weblab-hero-cta { justify-content: center; }
.weblab-intro-meta {
  margin-top: 44px;
  justify-content: center;
  gap: 48px;
  text-align: center;
}

.weblab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}
.weblab-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.weblab-hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}

.weblab-hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 42px;
  line-height: 1.65;
}
.weblab-hero-sub strong { color: var(--text); font-weight: 500; }

.weblab-hero-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

.weblab-hero-meta {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
}
.weblab-hero-meta .m-num {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1;
}
.weblab-hero-meta .m-num .gold-text { display: inline; }
.weblab-hero-meta .m-lab {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Sección "por qué" (info-cards ya existen en style.css) --------------- */
.weblab-why { background: var(--bg-soft); }

/* ---- Browser mockup (showcase con auto-scroll en vivo) -------------------- */
.frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1220;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 50px 110px -40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}
.frame:hover {
  transform: translateY(-6px);
  box-shadow:
    0 60px 130px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(207, 162, 74, 0.18) inset;
}

.frame-bar {
  position: relative;
  z-index: 4;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(#131b2a, #0d1524);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.frame-dot { width: 11px; height: 11px; border-radius: 50%; opacity: 0.9; }
.frame-dot.r { background: #ff5f57; }
.frame-dot.y { background: #febc2e; }
.frame-dot.g { background: #28c840; }
.frame-url {
  margin: 0 auto;
  transform: translateX(-14px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 60%;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-url svg { width: 12px; height: 12px; flex: none; color: var(--gold); }

.frame-window {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #0b1320;
}
.frame-window.tall { height: 520px; }

.frame-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  transform-origin: top left;
  transform: scale(0.42);
  pointer-events: none;
}
.frame-scroll {
  animation: weblab-scroll 30s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  will-change: transform;
}
.frame-window:hover .frame-scroll { animation-play-state: paused; }

/* Tarjetas fijas: sin auto-scroll, muestran siempre el hero (con vídeo) */
.frame.no-scroll .frame-scroll {
  animation: none !important;
  transform: none !important;
}

.frame-live {
  display: block;
  width: 1280px;
  height: 3400px;
  border: 0;
  background: #fff;
}
.frame-poster { display: block; width: 1280px; height: auto; }

@keyframes weblab-scroll {
  0%, 7%    { transform: translateY(0); }
  50%, 58%  { transform: translateY(var(--frame-shift, -2600px)); }
  99%, 100% { transform: translateY(0); }
}

/* capa que abre la web real + evita atrapar el scroll dentro del iframe */
.frame-open {
  position: absolute;
  inset: 44px 0 0 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 10, 18, 0.55));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.frame:hover .frame-open { opacity: 1; }
.frame-open span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #16110a;
  background: var(--gold-grad);
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(207, 162, 74, 0.6);
}
.frame-live-tag {
  position: absolute;
  top: 58px;
  left: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  background: rgba(6, 10, 18, 0.55);
  backdrop-filter: blur(8px);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.frame-live-tag .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
  animation: weblab-pulse 2s infinite;
}
.frame-live-tag.static .pulse { background: var(--gold); animation: none; box-shadow: none; }
@keyframes weblab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(40, 200, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

/* ---- Showcase destacadas (bloques alternos grandes) ----------------------- */
.section.tight-head { padding-bottom: 40px; }
.section.tight-head .center-head { margin-bottom: 30px; }
.showcase { padding: 36px 0 64px; position: relative; }
.showcase + .showcase { padding-top: 8px; }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.showcase.reverse .showcase-grid { direction: rtl; }
.showcase.reverse .showcase-grid > * { direction: ltr; }

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.showcase-badge .star { color: var(--gold); }
.showcase-text h3 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 12px;
}
.showcase-kicker {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.showcase-text p { color: var(--text-muted); margin-bottom: 20px; max-width: 520px; }
.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}
.showcase-tags span {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 8px 15px;
  border-radius: 999px;
}

/* ---- Galería (3 restantes) ------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gallery-item .frame-window { height: 300px; }
.gallery-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.gallery-cap h4 { font-size: 1.25rem; }
.gallery-cap .g-cat {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery-item > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

/* ---- Posibilidades / estilos (inspiración) -------------------------------- */
.inspo-window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1320;
}
.inspo-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-soft);
}
.frame:hover .inspo-window img { transform: scale(1.045); }

.inspo-note {
  text-align: center;
  margin: 40px auto 0;
  max-width: 640px;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ---- Qué incluye (feature grid) ------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  padding: 34px 30px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  transition: transform 0.5s var(--ease-soft), border-color 0.5s, background 0.5s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(207, 162, 74, 0.35);
  background: rgba(207, 162, 74, 0.045);
}
.feature-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(207, 162, 74, 0.12);
  border: 1px solid rgba(207, 162, 74, 0.28);
  margin-bottom: 22px;
}
.feature-ico svg { width: 26px; height: 26px; color: var(--gold); }
.feature-card h4 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

/* ---- Pricing / precio increíble ------------------------------------------- */
.pricing { position: relative; overflow: hidden; }
.pricing::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 460px at 85% 15%, rgba(207,162,74,0.14), transparent 60%),
    radial-gradient(620px 420px at 10% 90%, rgba(43,92,168,0.18), transparent 60%);
  pointer-events: none;
}
.price-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 62px 48px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(207, 162, 74, 0.28);
  box-shadow: 0 60px 120px -50px rgba(0,0,0,0.8);
}
.price-card .p-tag {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 18px;
}
.price-was {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 8px 18px;
  border-radius: 999px;
}
.price-was s { color: var(--text); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.price-figure {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin-bottom: 8px;
}
.price-figure .from { font-size: 0.9rem; color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.price-figure .amount {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 1;
}
.price-figure .cur { font-family: "Playfair Display", serif; font-size: 2.2rem; }
.price-note { color: var(--text-muted); margin-bottom: 30px; }
.price-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  text-align: left;
  max-width: 560px;
  margin: 0 auto 38px;
}
.price-list li {
  display: flex; align-items: flex-start; gap: 11px;
  color: var(--text-muted); font-size: 0.94rem;
}
.price-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---- CTA final ------------------------------------------------------------ */
.weblab-cta { text-align: center; }
.weblab-cta .section-title { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; direction: ltr !important; }
  .showcase.reverse .showcase-grid { direction: ltr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr; }
  .weblab-hero-meta { gap: 26px; }
  .frame-window { height: 300px; }
  .frame-window.tall { height: 360px; }
}
