/*
Theme Name: Necesito Cloud
Theme URI: https://necesito.cloud/
Author: necesito.cloud
Author URI: https://necesito.cloud/
Description: Tema landing de una sola página, seguro y ligero, para captar clientes de consultoría de migración cloud (AWS, Azure, Google Cloud y otras). Contenido editable desde el Personalizador, formulario de contacto nativo con protección antispam (nonce, honeypot, trampa de tiempo y límite por IP con hash), solicitudes privadas, plantillas RGPD/LOPDGDD, SEO básico, modo claro/oscuro automático y sin dependencias externas.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: necesito-cloud
Domain Path: /languages
Tags: one-column, custom-logo, custom-menu, translation-ready, accessibility-ready, theme-options, threaded-comments, block-styles, wide-blocks

Necesito Cloud is distributed under the terms of the GNU GPL v2 or later.
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #f6f8fc;
	--bg-alt: #eef2fa;
	--surface: #ffffff;
	--surface-2: #f1f5fb;
	--text: #0b1324;
	--muted: #46546b;
	--border: #d9e1ee;
	--primary: #1d4ed8;
	--primary-2: #6d28d9;
	--accent: #0e7490;
	--link: #1d4ed8;
	--focus: #f59e0b;
	--ok-bg: #e7f8ee;
	--ok-fg: #0f5132;
	--err-bg: #fdecec;
	--err-fg: #8a1c1c;
	--grad: linear-gradient(120deg, #1d4ed8 0%, #6d28d9 100%);
	--grad-text: linear-gradient(90deg, #0369a1, #1d4ed8 45%, #6d28d9);
	--glow: radial-gradient(60% 60% at 70% 20%, rgba(59, 130, 246, .22), transparent 70%), radial-gradient(50% 50% at 10% 80%, rgba(139, 92, 246, .16), transparent 70%), radial-gradient(40% 40% at 90% 90%, rgba(34, 211, 238, .14), transparent 70%);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
	--shadow-lg: 0 20px 50px rgba(29, 78, 216, .18);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--header-h: 68px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #070b16;
		--bg-alt: #0b1120;
		--surface: #0f172a;
		--surface-2: #131d35;
		--text: #e6edf7;
		--muted: #a7b4c8;
		--border: #22304d;
		--primary: #3b6cf0;
		--link: #8ab4ff;
		--accent: #22d3ee;
		--ok-bg: #0d2a1c;
		--ok-fg: #a7f3c9;
		--err-bg: #2c1212;
		--err-fg: #fecaca;
		--grad: linear-gradient(120deg, #2752d6 0%, #6d28d9 100%);
		--grad-text: linear-gradient(90deg, #67e8f9, #93c5fd 45%, #c4b5fd);
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
		--shadow-lg: 0 20px 50px rgba(59, 108, 240, .25);
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(59, 130, 246, .3); }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--surface); color: var(--text); padding: .75rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { box-shadow: 0 24px 60px rgba(109, 40, 217, .28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: #1e2a78; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; }
.brand-dot { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo { max-height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-menu { display: flex; gap: .25rem; }
.nav-menu a { display: block; padding: .5rem .75rem; color: var(--text); text-decoration: none; font-weight: 550; border-radius: 8px; }
.nav-menu a:hover { background: var(--surface-2); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.js .nav-toggle { display: inline-block; }
	.js .site-nav { position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
	.js .site-nav.is-open { display: flex; }
	.nav-menu { flex-direction: column; }
	.no-js .site-nav, .site-nav { flex-wrap: wrap; }
	.nav-menu a { padding: .75rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card-kicker, .eyebrow { display: inline-block; font: 700 .8rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow { padding: .5rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .55rem; }
.check-list .icon { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; margin-top: .25rem; color: var(--accent); }
.icon { width: 1.5rem; height: 1.5rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.gradient-text { display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0; }
.hero-points { color: var(--muted); }
.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--border); }
.orbit::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1px solid var(--border); }
.orbit-core { position: absolute; inset: 32%; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.orbit-core .icon { width: 46%; height: 46%; }
.node { position: absolute; padding: .45rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font: 700 .85rem/1 var(--mono); color: var(--text); transform: translate(-50%, -50%); animation: float 6s ease-in-out infinite; }
.n1 { left: 50%; top: 0; }
.n2 { left: 93%; top: 25%; animation-delay: -1s; }
.n3 { left: 93%; top: 75%; animation-delay: -2s; }
.n4 { left: 50%; top: 100%; animation-delay: -3s; }
.n5 { left: 7%; top: 75%; animation-delay: -4s; }
.n6 { left: 7%; top: 25%; animation-delay: -5s; }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 8px)); } }

/* Trust */
.trust { padding: 2.25rem 0; border-block: 1px solid var(--border); background: var(--surface); }
.trust-title { font-size: .95rem; font-weight: 650; text-align: center; color: var(--muted); letter-spacing: 0; margin-bottom: 1.1rem; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.badge { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-weight: 650; font-size: .92rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-years { display: flex; align-items: baseline; gap: .6rem; margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); }
.about-years strong { font-size: 2.6rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Facts */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.fact { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.fact::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.fact-value { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; margin-bottom: .5rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-label { flex: 1; }
.fact-source { font-size: .8rem; color: var(--muted); margin: 0; }
.fact-source a { color: var(--muted); }

/* Features */
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 1rem; }
.feature p { color: var(--muted); margin: 0; }

/* Clouds */
.cloud-card { display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.cloud-1 { border-top-color: #d97706; }
.cloud-2 { border-top-color: #0078d4; }
.cloud-3 { border-top-color: #16a34a; }
.cloud-4 { border-top-color: #7c3aed; }
.cloud-card h3 { margin-bottom: .2rem; font-size: 1.35rem; }
.cloud-tag { color: var(--muted); font-weight: 600; font-size: .95rem; }
.cloud-card .check-list { flex: 1; margin-bottom: 1rem; }
.cloud-free { font-size: .92rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.cloud-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; }
.cloud-link .icon { width: 1rem; height: 1rem; }
.clouds-cta { text-align: center; margin: 2rem 0 1rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; }
.step-num { display: block; font: 800 2.4rem/1 var(--mono); margin-bottom: .9rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .75rem; }
.faq-item summary { cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 650; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--muted); }

/* CTA band */
.section.cta-band { background: var(--grad); color: #fff; padding: 3.5rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #eef2ff; max-width: 46em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--err-fg); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .35); }
textarea { resize: vertical; min-height: 130px; }
.field-check { flex-direction: row; align-items: flex-start; gap: .65rem; }
.field-check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--primary); }
.field-check label { font-weight: 500; }
.gdpr-info { font-size: .82rem; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: 1rem; }
.gdpr-info p { margin-bottom: .4rem; color: var(--text); }
.gdpr-info li { margin-bottom: .2rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: 1rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 600; }
.form-status.is-success { background: var(--ok-bg); color: var(--ok-fg); }
.form-status.is-error { background: var(--err-bg); color: var(--err-fg); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin-bottom: 1rem; }
.contact-mail { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 30em; margin-top: .75rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a { color: var(--text); }
.placeholder { color: var(--muted); font-style: italic; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.25rem; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Content pages */
.content-area { padding: 3.5rem 0 4.5rem; }
.entry { margin-bottom: 3rem; }
.entry-meta { color: var(--muted); font-size: .9rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1.75rem; }
.alignwide { width: min(1100px, 100vw - 2.5rem); margin-inline: calc(50% - min(550px, 50vw - 1.25rem)); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-caption-text, .gallery-caption { font-size: .9rem; color: var(--muted); }
.sticky, .bypostauthor { display: block; }
.comment-list { margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
	.hero-visual { order: -1; }
	.orbit { width: min(300px, 80%); }
	.contact-copy { position: static; }
}
@media (max-width: 560px) {
	.form-grid { grid-template-columns: 1fr; }
	.hero-actions .btn { width: 100%; }
	.card { padding: 1.25rem; }
	.hero-visual { display: none; }
}
@media print {
	.site-header, .hero-visual, .contact, .cta-band { display: none; }
}
