/* Landing de iotastorage.com (inglés en /, español en /es/). Sin recursos externos: se sirve como
   un Site de la propia red. */
:root {
	--bg: #f7f9fa;
	--surface: #ffffff;
	--border: #dfe6ea;
	--text: #0d1b22;
	--muted: #4d5f69;
	--accent: #00a3c4;
	--accent-strong: #007f99;
	--accent-bg: #e3f6fa;
	--code: #eef3f5;
	--shadow: 0 1px 2px rgb(13 27 34 / 6%), 0 8px 24px rgb(13 27 34 / 6%);
	color-scheme: light;
	font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0a151b;
		--surface: #0f1f27;
		--border: #1f3440;
		--text: #e6eff3;
		--muted: #9db1bb;
		--accent: #2cc7e6;
		--accent-strong: #5fd8f0;
		--accent-bg: #0c2c36;
		--code: #14262f;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1.0625rem; }
a { color: var(--accent-strong); text-underline-offset: 0.15em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--code); padding: 0.1em 0.35em; border-radius: 0.3em; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
p { margin: 0 0 0.9rem; }

.wide { max-width: 68rem; margin: 0 auto; padding-inline: max(1rem, env(safe-area-inset-left)); }

/* Barra */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.bar .wide { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 1.75rem; height: 1.75rem; }
.bar nav { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.bar nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.bar nav a:hover { color: var(--text); }
.bar nav .language { border: 1px solid var(--border); border-radius: 0.4rem; padding: 0.1rem 0.5rem; font-size: 0.9rem; }

/* Portada */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 600; color: var(--accent-strong); background: var(--accent-bg); border-radius: 999px; padding: 0.2rem 0.75rem; margin-bottom: 1.2rem; }
.tag::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); margin: 0 0 1rem; max-width: 20ch; }
.hero .input { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 44rem; margin-bottom: 1.8rem; }
.buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.2rem; border-radius: 0.6rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #04232b; }
.button:hover { filter: brightness(1.05); box-shadow: var(--shadow); }

/* Estado de la red */
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.75rem; margin-top: 2.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.9rem 1rem; }
.stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.status-footer { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }
.live::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #2fbf71; margin-right: 0.4rem; vertical-align: 0.05em; }
.down::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #d9534f; margin-right: 0.4rem; vertical-align: 0.05em; }

/* Secciones */
section { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
section.alternate { background: var(--surface); border-block: 1px solid var(--border); }
.intro { color: var(--muted); max-width: 46rem; margin-bottom: 1.8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.25rem 1.3rem; }
section.alternate .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; background: var(--accent-bg); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 0.8rem; }
.card .icon svg { width: 1.3rem; height: 1.3rem; }
.card.soon { border-style: dashed; }
.card.soon h3::after { content: attr(data-pronto); margin-left: 0.5rem; font-size: 0.72rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.5rem; vertical-align: 0.15em; }

/* Cómo funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; counter-reset: paso; }
.steps li { counter-increment: paso; position: relative; padding: 1.2rem 1.2rem 1.1rem; border: 1px solid var(--border); border-radius: 0.9rem; background: var(--bg); }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: #04232b; font-weight: 700; margin-bottom: 0.7rem; }
.steps li p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.diagram { margin-top: 2rem; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 40rem; height: auto; }
.diagram text { font-family: inherit; fill: var(--text); }
.diagram .faint { fill: var(--muted); }
.diagram .box { fill: var(--bg); stroke: var(--border); }
.diagram .box-accent { fill: var(--accent-bg); stroke: var(--accent); }
.diagram .line { stroke: var(--accent); stroke-width: 2; fill: none; }
.diagram .sliver { fill: var(--accent); }

/* Lista de comparación */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.compare ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.compare li { margin-bottom: 0.35rem; }

.warning { border-left: 4px solid var(--accent); background: var(--accent-bg); padding: 1rem 1.2rem; border-radius: 0 0.6rem 0.6rem 0; }
.warning p:last-child { margin: 0; }

/* Pie */
footer { border-top: 1px solid var(--border); padding-block: 2rem 2.5rem; color: var(--muted); font-size: 0.92rem; }
footer .columns { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .origin { margin-top: 1rem; overflow-wrap: anywhere; }

/* Legal notice, privacy policy and terms (`legal/`, `privacy/`, `terms/`) */
.legal { max-width: 46rem; padding-block: 2rem 3rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }
.legal li { margin-bottom: 0.4rem; }
