/* ══════════════════════════════════════════
   Diseño Web — estilos específicos de página
══════════════════════════════════════════ */

/* ── Hero ────────────────────────────────── */
.dw-hero-inner { max-width: 720px; }
.dw-hero-cta   { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── Domain heading animado ──────────────── */
.dw-domain-anim {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.dw-domain-anim.dw-domain-exit {
  opacity: 0;
  transform: translateY(-10px);
}

/* ── Secciones ───────────────────────────── */
.dw-section-bg1    { background: var(--bg-1); padding: 96px 0; }
.dw-section-white  { position: relative; overflow: hidden; background: #fff; padding: 96px 0; }
.dw-section-dark   { position: relative; overflow: hidden; background: var(--bg-0); padding: 96px 0; }
.dw-section-header { text-align: center; margin-bottom: 52px; }
.dw-sub-wide       { max-width: 100%; margin-top: 14px; }
.dw-rel-z1         { position: relative; z-index: 1; }

/* ── Grid 2 columnas ─────────────────────── */
.dw-2col        { display: grid; }
.dw-2col--asym  { grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.dw-2col--equal { grid-template-columns: 1fr 1fr;   gap: 72px; align-items: center; }

/* ── Tabs verticales ─────────────────────── */
.dw-tabs-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
}
.dw-tab-nav {
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.dw-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 20px;
  background: transparent; border: none; border-left: 3px solid transparent;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.03em; color: var(--muted); cursor: pointer;
  transition: all 0.2s; text-align: left;
  border-bottom: 1px solid var(--border);
}
.dw-tab:last-child { border-bottom: none; }
.dw-tab i          { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.dw-tab:hover      { color: #fff; background: rgba(255,255,255,0.04); }
.dw-tab.active     { color: #fff; border-left-color: var(--blue); background: rgba(37,101,165,0.08); }
.dw-panel {
  padding: 48px 44px;
  background: var(--bg-2);
  display: none;
  flex-direction: column;
  justify-content: center;
}
.dw-panel.show { display: flex; }

/* ── Feature list dentro de tabs ─────────── */
.dw-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dw-feature {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.dw-feature:nth-child(odd)           { padding-right: 32px; border-right: 1px solid var(--border); }
.dw-feature:nth-child(even)          { padding-left: 32px; }
.dw-feature:nth-last-child(-n+2)     { border-bottom: none; }
.dw-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(37,101,165,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 15px;
}
.dw-feature strong { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #fff; margin-bottom: 4px; }
.dw-feature p      { font-size: 13px; color: var(--text); line-height: 1.65; margin: 0; }

/* ── Fondos animados ─────────────────────── */
@keyframes particleDrift {
  0%   { background-position: 0%  0%;  }
  33%  { background-position: 60% 40%; }
  66%  { background-position: 30% 80%; }
  100% { background-position: 0%  0%;  }
}
@keyframes bgBreath {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.08); }
}
.dw-tools-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../assets/gb-particulas.webp');
  background-size: 140%;
  background-position: 0% 0%;
  animation: particleDrift 28s ease-in-out infinite;
}
.dw-optim-bg-outer {
  position: absolute; left: 0; top: -20%; width: 52%; height: 140%;
  pointer-events: none; will-change: transform;
}
.dw-optim-bg-inner {
  position: absolute; inset: 0;
  background-image: url('../assets/gb-particulas.webp');
  background-size: 150%; background-position: 0% 0%;
  opacity: 0.45;
  animation: particleDrift 26s ease-in-out infinite;
}

/* ── Columna texto — sección optimización ─── */
.dw-optim-label {
  display: block;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.dw-optim-title {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.2;
  color: #0f172a; margin: 0 0 16px;
}
.dw-optim-body  { font-size: 15px; color: #475569; line-height: 1.75; margin: 0; }
.dw-rocket-anim { width: 200px; height: 200px; margin-top: 16px; }
.dw-col-overflow { min-width: 0; }

/* ── Feature grid ────────────────────────── */
.dw-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dw-feat-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 0; border-bottom: 1px solid #cbd5e1;
}
.dw-feat-item:nth-child(odd)       { padding-right: 28px; border-right: 1px solid #cbd5e1; }
.dw-feat-item:nth-child(even)      { padding-left: 28px; }
.dw-feat-item:nth-last-child(-n+2) { border-bottom: none; }
.dw-feat-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(37,101,165,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 15px;
}
.dw-feat-label { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px; color: #0f172a; margin-bottom: 4px; }
.dw-feat-desc  { font-size: 12.5px; color: #64748b; margin: 0; line-height: 1.6; }

/* ── Marquees ────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.dw-marquee-track {
  display: flex; gap: 60px; align-items: center;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.dw-marquee-track:hover { animation-play-state: paused; }
.dw-marquee-track img {
  height: 44px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.65;
  transition: opacity 0.2s; flex-shrink: 0;
}
.dw-marquee-track img:hover { opacity: 1; }

.dw-logos-wrap {
  margin-top: 36px; width: 100%; overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.dw-logos-track {
  display: flex; gap: 52px; align-items: center;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.dw-logos-track img {
  height: 38px; width: auto; object-fit: contain;
  opacity: 0.5; filter: grayscale(20%);
  transition: opacity 0.2s, filter 0.2s; flex-shrink: 0;
}
.dw-logos-track img:hover { opacity: 1; filter: none; }

/* ── Tipos de sitio ──────────────────────── */
.dw-sitio-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
}
.dw-sitio-card {
  flex: 0 1 calc(33.333% - 14px); min-width: 240px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-top: 3px solid transparent; border-radius: 18px;
  padding: 30px 0 26px; display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}
.dw-sitio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
  border-top-color: var(--blue);
}
.dw-sitio-img    { /*width: 100%; height: 170px;*/ border-radius: 14px 14px 0 0; display: block; margin-bottom: 24px; }
.dw-sitio-card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; color: #fff; margin: 0 0 10px; line-height: 1.3; padding: 0 26px; }
.dw-sitio-card p  { font-size: 13.5px; color: var(--text); line-height: 1.65; margin: 0; flex: 1; padding: 0 26px; }
.dw-sitio-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 12.5px;
  color: var(--blue); text-decoration: none;
  transition: gap 0.2s ease; padding: 0 26px;
}
.dw-sitio-card:hover .dw-sitio-link { gap: 14px; }

/* ── Dominio pill ────────────────────────── */
.dw-domain-pill {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 9999px; padding: 7px 18px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--blue); transition: all 0.2s;
}
.dw-domain-pill:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.dw-domain-pills      { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.dw-domain-cta        { margin-top: 28px; }

/* ── Dominio — lista de ítems ────────────── */
.dw-domain-item  { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.dw-domain-item:last-child { border-bottom: none; }
.dw-domain-icon  { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; background: rgba(37,101,165,0.12); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 15px; }
.dw-domain-label { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #fff; margin-bottom: 4px; }
.dw-domain-desc  { font-size: 13px; color: var(--text); margin: 0; line-height: 1.65; }

/* ── Hosting — fondo ─────────────────────── */
.dw-hosting-bg-outer { position: absolute; inset: 0; pointer-events: none; will-change: transform; overflow: hidden; }
.dw-hosting-bg-inner { position: absolute; inset: -8%; background-image: url('../assets/hosting.webp'); background-size: cover; background-position: center; opacity: 0.32; animation: bgBreath 14s ease-in-out infinite; }
.dw-hosting-overlay  { position: absolute; inset: 0; background: rgba(5,10,20,0.42); pointer-events: none; }

/* ── Hosting — grid de ítems ─────────────── */
.dw-host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dw-host-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dw-host-item:nth-child(odd)       { padding-right: 20px; /*border-right: 1px solid rgba(255,255,255,0.08);*/ }
.dw-host-item:nth-child(even)      { /*padding-left: 20px;*/ }
.dw-host-item:nth-last-child(-n+2) { border-bottom: none; }
.dw-host-icon  { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: rgba(37,101,165,0.15); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 14px; margin-top: 2px; }
.dw-host-label { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; color: #fff; margin-bottom: 4px; }
.dw-host-desc  { font-size: 12px; color: var(--text); margin: 0; line-height: 1.6; }
.dw-hosting-lottie { display: flex; justify-content: center; align-items: center; }
.dw-lottie-anim    { width: min(450px, 100%); height: min(450px, 100vw); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .dw-tabs-wrap { grid-template-columns: 1fr; }
  .dw-tab-nav   { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .dw-tab       { border-left: none; border-bottom: 3px solid transparent; border-right: 1px solid var(--border); white-space: nowrap; }
  .dw-tab.active { border-bottom-color: var(--blue); border-left-color: transparent; }
  .dw-feature-list { grid-template-columns: 1fr; }
  .dw-feature:nth-child(odd)           { padding-right: 0; border-right: none; }
  .dw-feature:nth-child(even)          { padding-left: 0; }
  .dw-feature:nth-last-child(-n+2)     { border-bottom: 1px solid var(--border); }
  .dw-feature:last-child               { border-bottom: none; }
  .dw-2col--asym, .dw-2col--equal      { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dw-sitio-card { flex: 0 1 calc(50% - 10px); }
}
@media (max-width: 768px) {
  .dw-panel { padding: 28px 24px; }
  .dw-tab   { font-size: 11.5px; padding: 14px; }

  .dw-feat-grid { grid-template-columns: 1fr; }
  .dw-feat-item {
    padding-right: 0; padding-left: 0;
    border-right: none;
    border-bottom: 1px solid #cbd5e1;
  }
  .dw-feat-item:last-child { border-bottom: none; }

  .dw-host-grid { grid-template-columns: 1fr; }
  .dw-host-item {
    padding-right: 0; padding-left: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .dw-host-item:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .dw-sitio-card { flex: 0 1 100%; }
  .dw-feat-item:nth-child(odd)       { padding-right: 28px; border-right: 0; }
  .dw-feat-item:nth-child(even)      { padding-left: 0; }
}
