:root {
  --bg:         #050507;
  --surface:    rgba(255,255,255,0.03);
  --border:     rgba(255,255,255,0.07);
  --text:       #f0f0f0;
  --muted:      #6b7280;
  --green:      #00e676;
  --green-bg:   rgba(0,230,118,0.10);
  --green-glow: rgba(0,230,118,0.25);
  --radius:     12px;
  --font: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono: "SF Mono","Fira Code",Consolas,monospace;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html { color-scheme:dark; scroll-behavior:smooth; }

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

/* ---------- Fondos ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,230,118,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,230,118,0.10) 1px, transparent 1px);
  background-size: 72px 72px;
}

.bg-orb {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { top:-200px; right:-150px; background:radial-gradient(circle,rgba(0,230,118,0.55),transparent 70%); }
.orb-2 { bottom:-200px; left:-150px; background:radial-gradient(circle,rgba(0,200,100,0.38),transparent 70%); }

/* ---------- Navegación ---------- */

nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(940px, calc(100% - 32px));
  height: 56px;
  padding: 0 clamp(14px,3vw,22px);
  border-radius: 999px;
  background: rgba(10,10,12,0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 8px 28px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.nav-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(0,230,118,0.4);
  flex-shrink: 0;
}

.nav-links { display:flex; align-items:center; gap:4px; list-style:none; }

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color:var(--text); }

.nav-links a.nav-btn {
  background: rgba(0,230,118,0.9);
  color: #000;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 0 28px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: opacity 0.2s;
}
.nav-links a.nav-btn:hover { opacity:0.85; color:#000; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  padding: 4px;
  border-radius: 999px;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 32px));
  z-index: 99;
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow:
    0 14px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 10px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display:flex; }

.nav-mobile a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color:var(--text); background:var(--surface); }
.nav-mobile a.nav-btn { background:rgba(0,230,118,0.9); color:#000; font-weight:700; text-align:center; margin-top:4px; border-radius:999px; }

/* ---------- Estructura ---------- */

.container { max-width:1200px; margin:0 auto; padding:0 clamp(16px,4vw,48px); }
section { position:relative; z-index:10; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px,4vw,44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(14px,1.5vw,17px);
}

.inline-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px clamp(16px,4vw,48px) 56px;
}

.hero-title {
  font-size: clamp(72px,14vw,210px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60%;
  margin: 14px auto 0;
  background: linear-gradient(90deg,transparent,var(--green),transparent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0,230,118,0.5);
}

.t-arz { color:#fff; text-shadow:0 0 60px rgba(255,255,255,0.1); }
.t-oft { color:#fff; }

.hero-sub {
  font-size: clamp(15px,1.6vw,18px);
  color: var(--muted);
  max-width: 460px;
  margin: 24px auto 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 46px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-primary { background:var(--green); color:#000; box-shadow:0 0 40px var(--green-glow); }
.btn-primary:hover { opacity:0.88; transform:translateY(-1px); }

.btn-ghost { background:var(--surface); color:var(--text); border:1px solid var(--border); }
.btn-ghost:hover { border-color:rgba(0,230,118,0.3); transform:translateY(-1px); }

/* ---------- Utilidades de espaciado ---------- */

.section-offset { margin-top:clamp(48px,7vw,80px); }
.actions-offset { margin-top:clamp(36px,6vw,56px); }
.actions-left   { justify-content:flex-start; margin-top:8px; }

/* ---------- Features ---------- */

.features { padding:clamp(56px,9vw,120px) 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, background 0.25s;
}
.feature-card:hover { border-color:rgba(0,230,118,0.22); background:rgba(0,230,118,0.03); }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--green-bg);
  border: 1px solid rgba(0,230,118,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-icon svg { width:18px; height:18px; stroke:var(--green); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.feature-card h3 { font-size:15px; font-weight:700; color:#fff; margin-bottom:8px; }
.feature-card p  { font-size:14px; color:var(--muted); line-height:1.7; }

/* ---------- Projects ---------- */

.projects { padding:clamp(56px,9vw,120px) 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
}
.project-card:hover { border-color:rgba(0,230,118,0.25); background:rgba(0,230,118,0.03); transform:translateY(-2px); }

.project-top { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.project-name { font-size:17px; font-weight:700; color:#fff; }

.project-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.07em;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0,230,118,0.22);
  white-space: nowrap;
}

.project-domain { font-size:12px; color:var(--green); font-family:var(--mono); }
.project-desc   { font-size:14px; color:var(--muted); line-height:1.65; }

/* ---------- Anuncios (AdSense) ---------- */
/* Oculto hasta que Google confirme que el anuncio se cargó (sin cuadros blancos) */

.ad-slot {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 clamp(16px,4vw,48px);
  text-align: center;
  display: none;
}
.ad-slot.is-filled {
  display: block;
  margin: 32px auto;
}
.ad-slot ins { display:block; background:transparent; }

/* ---------- Footer ---------- */

footer {
  position: relative;
  z-index: 10;
  padding: 48px clamp(16px,4vw,48px) 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo { font-size:14px; font-weight:800; letter-spacing:0.12em; color:var(--green); text-shadow:0 0 12px rgba(0,230,118,0.35); }
footer p { font-size:13px; color:var(--muted); }
footer .footer-links { display:flex; gap:16px; flex-wrap:wrap; }
footer .footer-links a { font-size:13px; color:var(--muted); text-decoration:none; transition:color 0.2s; }
footer .footer-links a:hover { color:var(--green); }

/* ---------- Página de proyecto ---------- */

.project-detail { padding:clamp(104px,15vw,168px) 0 clamp(40px,6vw,72px); }

/* ---------- Páginas legales ---------- */

.legal-page { padding:clamp(96px,14vw,160px) 0 clamp(56px,9vw,120px); }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px,4vw,44px);
}
.legal-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 8px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.legal-content a { color: var(--green); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text); }

/* ---------- Cookies ---------- */

.cookie-banner {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 300;
  width: min(340px, calc(100% - 36px));
  padding: 16px;
  border-radius: 18px;
  background: rgba(10,10,12,0.78);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 14px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cookie-in 0.35s ease;
}
.cookie-banner[hidden] { display: none; }

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-row { display: flex; gap: 10px; align-items: flex-start; }
.cookie-icon { color: var(--green); flex-shrink: 0; display: inline-flex; }
.cookie-icon svg { width: 22px; height: 22px; display: block; }
.cookie-text { font-size: 13px; color: var(--muted); line-height: 1.6; }
.cookie-text a { color: var(--green); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }

.cookie-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.cookie-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  min-height: 34px;
  transition: opacity 0.2s;
}
.cookie-accept {
  background: var(--green);
  color: #000;
  padding: 0 18px;
  box-shadow: 0 0 22px var(--green-glow);
}
.cookie-accept:hover { opacity: 0.88; }
.cookie-reject {
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.18);
}
.cookie-reject:hover { border-color: rgba(255,255,255,0.4); }

/* ---------- Responsive ---------- */

@media (max-width:768px) {
  .nav-links { display:none; }
  .nav-toggle { display:flex; }
  .hero-title { font-size:clamp(64px,18vw,120px); }
  .hero-actions { flex-direction:column; align-items:stretch; max-width:320px; margin:0 auto; }
  .btn { width:100%; }
  .features-grid,.projects-grid { grid-template-columns:1fr; }
  .footer-inner { flex-direction:column; text-align:center; align-items:center; }
  .bg-orb { width:380px; height:380px; }
}

@media (max-width:400px) {
  .hero-title { font-size:58px; }
}

@media (hover:none) {
  .feature-card:hover,
  .project-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover { transform:none; }
}
