/* DanyCo — airy, light, a little futuristic. Aurora light, glass cards, Geist. */
:root {
  --bg: #fafafa;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: rgba(15, 23, 42, .08);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, #2563eb 0%, #6366f1 45%, #8b5cf6 75%, #22d3ee 100%);
  --rainbow: linear-gradient(90deg, hsl(185 97% 56%), hsl(222 54% 78%), hsl(210 100% 63%), hsl(195 100% 63%), hsl(270 100% 63%));
  --radius: 24px;
  --wrap: 1120px;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
::selection { background: #c7d2fe; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; position: relative; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 40em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }

/* Aurora (same recipe as the original danyco.es: one layer inverted, its ::after blended by difference) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; contain: strict; }
.aurora > div {
  --white: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
  --aurora: repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
  position: absolute; inset: -10px;
  background-image: var(--white), var(--aurora);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px) invert(1);
  opacity: .5;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
}
.aurora > div::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--white), var(--aurora);
  background-size: 200%, 100%;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
}
.aurora.left > div { -webkit-mask-image: radial-gradient(ellipse at 0% 60%, #000 5%, transparent 60%); mask-image: radial-gradient(ellipse at 0% 60%, #000 5%, transparent 60%); }
@keyframes aurora { from { background-position: 50% 50%, 50% 50%; } to { background-position: 350% 50%, 350% 50%; } }
section, .page { isolation: isolate; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(250, 250, 250, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .lang { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 11px; }
@media (max-width: 860px) { .nav .hide-sm { display: none; } .nav { gap: 10px; } }

/* Buttons — black pill with a rainbow glow, like the original */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff; border: 2px solid transparent;
  background: linear-gradient(#121213, #121213) padding-box, linear-gradient(#121213 50%, rgba(18,18,19,.6) 80%, rgba(18,18,19,0)) border-box, var(--rainbow) border-box;
  background-size: 100%, 100%, 200%;
  animation: rainbow 6s linear infinite;
}
.btn-primary::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -22%; width: 62%; height: 22%; transform: translateX(-50%); background: var(--rainbow); background-size: 200%; filter: blur(14px); animation: rainbow 6s linear infinite; }
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--ink); background: #fff; box-shadow: 0 8px 24px -12px rgba(15,23,42,.25); }
.nav .btn { height: 40px; padding: 0 18px; font-size: .92rem; }
@keyframes rainbow { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 200% 0; } }
.btn-primary::before { animation-name: rainbow-glow; }
@keyframes rainbow-glow { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 72px); display: grid; place-items: center; padding: 56px 0 88px; margin-top: -72px; padding-top: 128px; isolation: isolate; }
.hero .wrap { text-align: center; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .9rem; color: var(--ink-2); margin-bottom: 28px; }
.pill b { font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 6px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 5.6rem); line-height: 1; letter-spacing: -.045em; max-width: 14ch; margin-inline: auto; }
.hero .lead { margin: 26px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .92rem; color: var(--ink-2); }
.chip strong { color: var(--ink); font-weight: 600; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@media (max-width: 600px) { .hero { padding-top: 112px; } .hero-actions .btn { width: 100%; } }

/* Sections */
section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Glass cards */
.glass { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 48px -32px rgba(15, 23, 42, .25); }

/* Platforms */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.platform { padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 16px; overflow: hidden; position: relative; }
.platform { --brand: #4f46e5; --brand-2: #a5b4fc; --brand-soft: rgba(99, 102, 241, .12); border-top: 3px solid var(--brand); }
.platform.qhh { --brand: #9349f1; --brand-2: #ffe600; --brand-soft: rgba(147, 73, 241, .12); }
.platform.farm { --brand: #4b6700; --brand-2: #cbf080; --brand-soft: rgba(75, 103, 0, .1); }
.platform::after { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -130px; border-radius: 50%; filter: blur(56px); opacity: .55; pointer-events: none; background: radial-gradient(circle, var(--brand-2), color-mix(in srgb, var(--brand) 55%, transparent) 55%, transparent 70%); }
.logo-title { margin: 0 0 4px; line-height: 0; }
.logo-title img { height: 60px; width: auto; }
.platform .tag { color: var(--brand); }
.platform li::before { background: var(--brand-soft); -webkit-mask: none; }
.platform.qhh li::before { background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239349f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.platform.farm li::before { background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b6700' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.platform .go { color: var(--brand); }
.platform .go:hover, .platform .go:hover .dom { color: var(--brand); }
.platform .go:hover { text-decoration: underline; }
.tag { font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.platform p { color: var(--ink-2); margin: 0; }
.platform ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.platform li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: .98rem; }
.platform li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(99, 102, 241, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.go { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }


.go svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.go:hover svg.ext { transform: translate(2px, -2px); }
.go .dom { margin-left: auto; font: 400 .85rem/1 var(--mono); color: var(--ink-3); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { padding: 28px; }
.why-item .num { font: 500 .8rem/1 var(--mono); letter-spacing: .1em; margin-bottom: 18px; display: inline-block; }
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: var(--ink-2); margin: 0; }

/* Service */
.service-panel { padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 8px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat svg { width: 22px; height: 22px; color: var(--indigo); margin-bottom: 14px; }
.feat h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feat p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 22px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 1.6rem/1 var(--text); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.steps strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.steps span { color: var(--ink-2); font-size: .95rem; }
.price-note { margin-top: 28px; padding: 20px 22px; border-radius: 18px; display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(100deg, rgba(37,99,235,.07), rgba(139,92,246,.08)); border: 1px solid rgba(99, 102, 241, .18); }
.price-note svg { flex: none; width: 22px; height: 22px; color: var(--indigo); margin-top: 3px; }
.price-note p { margin: 0; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside p { color: var(--ink-2); }
.direct { margin-top: 24px; }
.direct a { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.direct svg { width: 20px; height: 20px; color: var(--indigo); flex: none; }
form.card { padding: clamp(22px, 3.4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form.card { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255,255,255,.9); border: 1px solid rgba(15,23,42,.12); border-radius: 14px; padding: 12px 14px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9rem; color: var(--ink-2); align-items: start; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--indigo); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 4px; }
.form-foot small { color: var(--ink-3); max-width: 30em; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .9rem; color: var(--ink-3); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
.foot strong { color: var(--ink); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Simple pages */
.page { padding: clamp(40px, 7vw, 88px) 0; position: relative; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -.045em; margin-bottom: 22px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 12px; letter-spacing: -.03em; }
.page p, .page li { color: var(--ink-2); }
.page dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 1em; }
.page dt { font-weight: 600; }
.page dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 520px) { .page dl { grid-template-columns: 1fr; } .page dd { margin-bottom: 8px; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora > div::after, .btn-primary, .btn-primary::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.brand { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 1.02rem; gap: 8px; } .brand svg { width: 24px; height: 24px; } .nav .btn { padding: 0 14px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foot svg.ext { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; opacity: .7; }

/* QueHayHoy.es for organisers */
.org-panel { padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; border-top: 3px solid #9349f1; }
.org-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -180px; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; background: radial-gradient(circle, #ffe600, rgba(147, 73, 241, .55) 55%, transparent 70%); }
.org-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); position: relative; }
.org-logo { height: 48px; width: auto; margin-bottom: 22px; }
.org-head .lead { margin-top: 18px; }
.grad-qhh { background: linear-gradient(100deg, #7c3aed, #9349f1 55%, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.org-feats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .org-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .org-feats { grid-template-columns: 1fr; } }
.org-panel .feat svg { color: #9349f1; }
.org-panel .eyebrow::before { background: linear-gradient(100deg, #9349f1, #ffe600); box-shadow: 0 0 0 4px rgba(147, 73, 241, .14); }
.feat p a { color: #7c3aed; font-weight: 500; white-space: nowrap; }
.org-actions { justify-content: flex-start; margin-top: clamp(28px, 4vw, 40px); }
.platform li a { color: var(--brand); font-weight: 500; }
.field select { font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat; border: 1px solid rgba(15,23,42,.12); border-radius: 14px; padding: 12px 42px 12px 14px; width: 100%; -webkit-appearance: none; appearance: none; }
.field select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
