/* ==============================
   Tema oscuro elegante (2025)
   — Rediseño oscuro con tarjetas, sombras suaves y reordenado visual.
   — Mantiene clases existentes y IDs críticos (calculadora).
   ============================== */

:root {
	--bg: #0b1220;
	--surface: #0f172a;
	--soft: #0b1628;
	--text: #e5e7eb;
	--muted: #94a3b8;
	--border: #1f2937;
	--accent: #22d3ee;
	--accent-ink: #06b6d4;
	--success: #22c55e;
	--warning: #f59e0b;
	--radius: 16px;
	--shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html,
body {
	height: 100%;
}
body {
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
	line-height: 1.7;
	color: var(--text);
	background: radial-gradient(1000px 600px at -10% -20%, #0e1a2d 0%, transparent 60%), radial-gradient(1000px 600px at 110% -10%, #101a2a 0%, transparent 60%), var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Cabecera ---------- */
.header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--border);
}
.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 20px;
}
.logo div {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.2px;
	color: #fff;
}
.nav-menu {
	display: flex;
	gap: 1.25rem;
	align-items: center;
}
.nav-menu a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 600;
}
.nav-menu a:hover {
	color: #fff;
}
.btn-register {
	background: linear-gradient(180deg, #0ea5e9, #0369a1);
	color: #fff;
	border: 1px solid #0ea5e9;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
}
.btn-register:hover {
	filter: saturate(1.08);
}

/* ---------- Botones ---------- */
.btn-primary {
	appearance: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
	background: linear-gradient(180deg, var(--accent), #0ea5b7);
	color: #001016;
	padding: 0.9rem 1.4rem;
	font-weight: 900;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover {
	transform: translateY(-1px);
	filter: saturate(1.07);
	box-shadow: 0 16px 40px rgba(34, 211, 238, 0.35);
}

/* ---------- Secciones base ---------- */
section {
	padding: 72px 0;
}
.section-title {
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
	font-weight: 900;
	letter-spacing: 0.2px;
	margin-bottom: 26px;
}
.section-lead {
	font-size: 1.125rem;
	color: var(--muted);
}

/* ---------- Hero (oscuro) ---------- */
.hero {
	background: radial-gradient(800px 400px at 0% 0%, #0c223a 0%, transparent 60%), radial-gradient(800px 400px at 100% 0%, #0a1d30 0%, transparent 60%);
	padding: 110px 0 70px;
}
.hero .container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}
.hero h1 {
	font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
	font-weight: 900;
	line-height: 1.15;
}
.hero-description {
	font-size: 1.15rem;
	color: var(--muted);
	margin: 16px 0 22px;
}
.hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.stat {
	background: linear-gradient(180deg, #0f1b2e, #0b1424);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 14px;
	text-align: center;
	box-shadow: var(--shadow);
}
.stat-number {
	display: block;
	font-weight: 900;
	font-size: 1.4rem;
	color: var(--accent);
}
.stat-label {
	font-size: 0.93rem;
	color: var(--muted);
}
.hero-image img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

/* ---------- Overview ---------- */
.overview-section {
	background: var(--surface);
}
.overview-section .overview-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.overview-image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}
.overview-features {
	display: grid;
	gap: 14px;
}
.feature-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
}
.feature-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 900;
	background: var(--success);
	color: #00140a;
	flex-shrink: 0;
}
.feature-text h4 {
	font-size: 1.05rem;
	font-weight: 800;
}
.feature-text p {
	color: var(--muted);
}

/* ---------- Herramientas ---------- */
.tools-section {
	background: var(--bg);
}
.tools-intro {
	margin-bottom: 28px;
}
.tools-intro p {
	color: var(--muted);
}
.tools-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
.tool-card {
	display: grid;
	grid-template-columns: 20% 80%;
	gap: 14px;
	align-items: center;
	background: linear-gradient(180deg, #0f1c31, #0d182b);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px;
	box-shadow: var(--shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.tool-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
	filter: saturate(1.02);
}
.tool-icon img {
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}

/* ---------- Partners ---------- */
.trust-section {
	background: var(--surface);
}
.trust-section h2 {
	margin-bottom: 10px;
}
.partners-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 16px;
	align-items: center;
}
.partner-logo {
	display: grid;
	place-items: center;
	border: 1px dashed var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	padding: 16px;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.partner-logo img {
	max-width: 160px;
	width: 100%;
	height: auto;
	border-radius: 8px;
	filter: grayscale(0.1) contrast(0.9) brightness(0.95);
}
.partner-logo:hover {
	transform: translateY(-2px);
}
.partner-logo:hover img {
	filter: none;
}

/* ---------- Ventajas ---------- */
.advantages-section {
	background: var(--bg);
}
.advantages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}
.advantage-card {
	background: linear-gradient(180deg, #0f1c31, #0d182b);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 18px;
	box-shadow: var(--shadow);
}
.advantage-number {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--accent);
	color: #001016;
	font-weight: 900;
	margin-bottom: 8px;
}
.advantage-card h3 {
	font-weight: 800;
}
.advantage-card p {
	color: var(--muted);
}

/* ---------- Seguridad ---------- */
.security-section {
	background: var(--surface);
}
.security-content {
	columns: 2;
	column-gap: 20px;
}
.security-item {
	break-inside: avoid;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 16px;
}
.security-item h3 {
	font-weight: 800;
	margin-bottom: 6px;
}
.security-item p {
	color: var(--muted);
}

/* ---------- Acceso ---------- */
.access-section {
	background: linear-gradient(180deg, #0f172a, #0b1322);
}
.access-content {
	margin: 0 auto;
	text-align: center;
}
.access-content p {
	color: var(--muted);
	margin-bottom: 18px;
}

/* ---------- Calculadora ---------- */
.calculator-section {
	background: var(--bg);
}
.calculator-content {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 24px;
	align-items: start;
}
.calculator-form,
.result-card {
	background: linear-gradient(180deg, #0f1c31, #0d182b);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 18px;
	box-shadow: var(--shadow);
}
.form-group {
	margin-bottom: 14px;
}
.form-group label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}
.form-group input,
.form-group select {
	width: 100%;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #0b1220;
	color: var(--text);
}
.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.error-section {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-decoration: none;
}
.error-section .btn-calculate {
	width: auto;
	margin-top: 40px;
}
.btn-calculate {
	width: 100%;
	background: var(--accent);
	color: #001016;
	border: none;
	padding: 0.9rem 1rem;
	font-weight: 900;
	border-radius: 12px;
	cursor: pointer;
}
.btn-calculate:hover {
	filter: saturate(1.05);
}
.result-card h3 {
	font-weight: 900;
	margin-bottom: 4px;
}
.result-amount {
	font-size: 2rem;
	font-weight: 900;
	color: var(--success);
	margin: 6px 0 10px;
}
.result-details p {
	color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-section {
	background: var(--surface);
}
.faq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.faq-item {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px;
}
.faq-item h3 {
	font-weight: 800;
	margin-bottom: 6px;
}
.faq-item p {
	color: var(--muted);
}

/* ---------- Pie ---------- */
.footer {
	background: #060b14;
	color: #cbd5e1;
	padding: 56px 0 24px;
}
.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}
.footer-section div {
	font-weight: bold;
	font-size: 1.3rem;
	color: #7dd3fc;
}
.modal-title {
	font-weight: bold;
	font-size: 1.5rem;
}

.footer-section a {
	color: #cbd5e1;
}
.footer-section a:hover {
	color: #fff;
}
.footer-bottom {
	border-top: 1px solid rgba(148, 163, 184, 0.25);
	color: #94a3b8;
}

/* ---------- Modal ---------- */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(2, 6, 23, 0.55);
	z-index: 2000;
}
.modal-content {
	background: #0f172a;
	color: var(--text);
	width: min(92%, 560px);
	margin: 6% auto;
	padding: 22px;
	border-radius: 16px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}
.close {
	position: absolute;
	right: 18px;
	top: 12px;
	font-size: 1.8rem;
	cursor: pointer;
	color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero .container,
	.overview-section .container,
	.calculator-content {
		grid-template-columns: 1fr;
	}
	.security-content {
		columns: 1;
	}
	.hero {
		padding: 90px 0 56px;
	}
}
@media (max-width: 640px) {
	.overview-section .overview-content {
		grid-template-columns: 1fr;
	}
	.faq-grid {
		grid-template-columns: 1fr;
	}
	.tool-card {
		display: flex;
		flex-direction: column;
	}
	h2 {
		font-size: 1.5rem !important;
	}
	h2 {
		font-size: 1.3rem !important;
	}
	p {
		font-size: 1rem !important;
	}
	.nav-menu {
		display: none;
	}
	.container {
		padding: 0 16px;
	}
	section {
		padding: 56px 0;
	}
	.hero-stats {
		grid-template-columns: 1fr 1fr;
	}
}
