/* =========================================================
   WAREZOM — Hoja de estilo principal
   Diseño industrial premium · tema oscuro · acento arco
   ========================================================= */

:root {
	--bg:        #0c0e12;
	--bg-2:      #11141a;
	--surface:   #161a22;
	--surface-2: #1c212b;
	--line:      rgba(255, 255, 255, .08);
	--line-2:    rgba(255, 255, 255, .14);
	--text:      #eef1f6;
	--muted:     #9aa6b8;
	--arc:       #18b6ff;
	--arc-2:     #4cd2ff;
	--ember:     #ff6a1a;
	--radius:    16px;
	--radius-sm: 10px;
	--maxw:      1180px;
	--ease:      cubic-bezier(.22, 1, .36, 1);
	--font-display: 'Sora', system-ui, sans-serif;
	--font-text:    'Inter', system-ui, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }

.container { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 3rem, 760px); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
	background: var(--arc); color: #001018; padding: .6rem 1rem; border-radius: 8px; z-index: 1000;
}

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .18em;
	text-transform: uppercase; color: var(--arc-2); margin: 0 0 1rem;
}
.grad {
	background: linear-gradient(100deg, var(--arc) 0%, var(--arc-2) 40%, var(--ember) 110%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section__lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.section__lead.center { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-display); font-weight: 600; font-size: .95rem;
	padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
	cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
	white-space: nowrap;
}
.btn--lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary {
	background: linear-gradient(120deg, var(--arc), var(--arc-2));
	color: #021018; box-shadow: 0 8px 26px -10px var(--arc);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--arc); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--arc); color: var(--arc-2); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(12, 14, 18, .6); backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(12, 14, 18, .92); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.brand__mark { width: 34px; height: 34px; color: var(--arc); display: grid; place-items: center; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { background: linear-gradient(100deg, #fff, var(--arc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo { max-height: 52px; width: auto; }

.nav__primary { margin-left: auto; }
.nav__menu { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.nav__menu a {
	display: inline-block; padding: .5rem .9rem; border-radius: 999px; color: var(--muted);
	font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav__menu a:hover, .nav__menu .current-menu-item > a { color: var(--text); background: rgba(255,255,255,.05); }

.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__actions .btn--ghost { font-size: .85rem; padding: .55rem 1rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(5rem, 12vh, 9rem) 0 5rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__arc {
	position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
	width: 900px; height: 900px; border-radius: 50%;
	background: radial-gradient(circle, rgba(24,182,255,.22), rgba(24,182,255,0) 60%);
	filter: blur(20px); animation: pulse 6s ease-in-out infinite;
}
.hero__grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
	opacity: .5;
}
@keyframes pulse { 0%,100% { opacity:.7; transform:translateX(-50%) scale(1);} 50% { opacity:1; transform:translateX(-50%) scale(1.08);} }

.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero__lead { color: var(--muted); font-size: 1.2rem; max-width: 60ch; margin: 0 auto 2rem; }
.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 4rem; }
.stat { padding: 1.2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text); line-height: 1; }
.stat__label { color: var(--muted); font-size: .9rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: .9rem 0; }
.marquee__track { display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap; animation: scroll-x 26s linear infinite; }
.marquee__item { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; color: var(--muted); }
.marquee__dot { color: var(--arc); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem); border-bottom: 1px solid var(--line); }
.page-hero__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin-inline: auto; }
.page-hero__title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
.page-hero__lead { color: var(--muted); font-size: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vh, 7rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.grid-2--center { align-items: center; }

.pillars { margin-top: 2rem; display: grid; gap: .7rem; }
.pillar { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.pillar span { color: var(--arc); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--arc), transparent); }
.timeline__item { position: relative; padding: 0 0 1.6rem 1.4rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.6rem; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--arc); box-shadow: 0 0 0 4px rgba(24,182,255,.12); }
.timeline__year { font-family: var(--font-display); font-weight: 700; color: var(--arc-2); font-size: .95rem; }
.timeline__body h4 { margin: .2rem 0 .15rem; font-size: 1.05rem; }
.timeline__body p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Cards (capacidades) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.6rem; transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.card--cap h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card--cap p { color: var(--muted); margin: 0; font-size: .96rem; }
.card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(24,182,255,.1); color: var(--arc-2); margin-bottom: 1rem; }
.card__icon svg { width: 26px; height: 26px; }

/* ---------- Brand cards ---------- */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.brand-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.8rem; overflow: hidden; transition: transform .3s var(--ease), border-color .3s;
	scroll-margin-top: 100px;
}
.brand-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), transparent); }
.brand-card::after { content: ""; position: absolute; top: -40%; right: -20%; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; }
.brand-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.brand-card:hover::after { opacity: 1; }
.brand-card__logo { margin-bottom: 1rem; }
.brand-card__logo img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.brand-card__logo a { display: inline-block; }
.brand-card__tier { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: .25rem .6rem; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; margin-bottom: .9rem; }
.brand-card__name a { color: inherit; transition: color .2s; }
.brand-card__name a:hover { color: var(--accent); }
.brand-card__name { font-size: 1.7rem; font-weight: 800; margin: 0 0 .35rem; letter-spacing: .01em; }
.brand-card__tagline { color: var(--text); font-weight: 500; margin: 0 0 .9rem; }
.brand-card__desc { color: var(--muted); font-size: .95rem; flex: 1; }
.brand-card__lines { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.brand-card__lines li { font-size: .8rem; color: var(--muted); padding: .25rem .6rem; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; }
.brand-card__link { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: .92rem; transition: gap .2s; display: inline-flex; gap: .4rem; }
.brand-card__link:hover { gap: .7rem; }

/* ---------- Cobertura ---------- */
.coverage__stats { display: flex; gap: 2rem; margin-top: 2rem; }
.coverage__stats > div { display: flex; flex-direction: column; }
.countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem 1rem; }
.countries li { display: flex; align-items: center; gap: .6rem; color: var(--text); padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .95rem; }
.countries li span { color: var(--arc); font-size: .6rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(3rem, 7vh, 5rem) 0; background: linear-gradient(120deg, rgba(24,182,255,.12), rgba(255,106,26,.1)); border-block: 1px solid var(--line); }
.cta-band__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.cta-band__inner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band__inner p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Contacto / formulario ---------- */
.contact__info { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__info li { display: flex; flex-direction: column; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.contact__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; font-weight: 500; }
.field input, .field select, .field textarea {
	width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
	color: var(--text); padding: .75rem .9rem; font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--arc); box-shadow: 0 0 0 3px rgba(24,182,255,.15); }
.field textarea { resize: vertical; }
.contact-form__status { margin: 1rem 0 0; font-size: .92rem; min-height: 1.2em; }
.contact-form__status.is-ok { color: var(--arc-2); }
.contact-form__status.is-err { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__tagline { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer__col h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-text); font-weight: 600; margin-bottom: 1rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__col a { color: var(--text); font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--arc-2); }
.footer__contact li { color: var(--muted); font-size: .95rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--text); }

/* ---------- Prose (páginas internas) ---------- */
.prose { color: var(--muted); }
.prose h2, .prose h3 { color: var(--text); margin-top: 2rem; }
.prose a { color: var(--arc-2); }
.pagination { margin-top: 2.5rem; text-align: center; }
.pagination a, .pagination .current { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; margin: 0 .2rem; }

/* ---------- Contador circular (igual que warezom.com: panel claro) ---------- */
.counter {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem);
	max-width: 980px; margin: 0 auto; align-items: center;
	background: #ffffff; border-radius: var(--radius);
	padding: clamp(1.6rem, 4vw, 3.2rem) clamp(1.2rem, 3vw, 2.5rem);
	box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.ring { position: relative; aspect-ratio: 1; width: 100%; max-width: 210px; margin-inline: auto; }
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: #f3f3f3; stroke-width: 6; }
.ring__bar {
	fill: none; stroke: var(--ring-color); stroke-width: 7; stroke-linecap: round;
	transition: stroke-dashoffset .6s var(--ease);
}
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .2rem; }
.ring__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1; color: #28323f; font-variant-numeric: tabular-nums; }
.ring__label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #28323f; font-weight: 700; }

@media (max-width: 760px) {
	.counter { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.cards, .brands { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.nav__primary { position: fixed; inset: 76px 0 auto 0; background: var(--bg-2); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease); padding: 1rem 0; }
	.nav__primary.is-open { transform: translateY(0); }
	.nav__menu { flex-direction: column; gap: 0; }
	.nav__menu a { display: block; padding: .9rem 1.5rem; border-radius: 0; }
	.nav__toggle { display: flex; }
	.nav__actions .btn--ghost { display: none; }
	.grid-2 { grid-template-columns: 1fr; }
	.cards, .brands, .countries { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; }
	.coverage__stats { flex-wrap: wrap; gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; }
}
