/* Newen Informática — estilos complementarios al theme.json */

:root {
	--newen-header-h: 84px;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

body {
	position: relative;
	background-color: var(--wp--preset--color--background);
}

/* Textura de grano sutil + resplandor atmosférico, en vez de fondo plano */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background-image: var(--wp--preset--gradient--hero-glow);
	pointer-events: none;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	opacity: 0.05;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	min-height: var(--newen-header-h);
	padding-top: 1rem;
	padding-bottom: 1rem;
	background: rgba(16, 20, 31, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 200, 240, 0.18);
}

.site-brand {
	gap: 0.75rem;
	align-items: center;
}

.site-logo img {
	display: block;
	border-radius: 8px;
}

.site-brand-name,
.site-brand-name a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--foreground) !important;
	text-decoration: none;
}

.site-nav {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: 0.95rem;
}

.site-nav a {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
	opacity: 1;
	color: var(--wp--preset--color--cyan);
}

.site-header-cta .wp-block-button__link {
	white-space: nowrap;
	box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.site-header-cta .wp-block-button__link:hover {
	box-shadow: 0 0 24px 2px rgba(0, 230, 118, 0.35);
	transform: translateY(-1px);
}

/* Feedback de presión en todos los botones — confirma que la interfaz "escuchó" el tap */
.wp-block-button__link {
	transition: transform 160ms var(--ease-out), box-shadow 0.25s ease;
}
.wp-block-button__link:active {
	transform: scale(0.97);
}

/* Variante de botón: contorno cyan sobre fondo transparente */
.is-style-outline-cyan .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--cyan) !important;
	border: 1.5px solid var(--wp--preset--color--cyan);
}

.is-style-outline-cyan .wp-block-button__link:hover {
	background: rgba(0, 200, 240, 0.1) !important;
}

/* Footer */
.site-footer {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--30);
	border-top: 1px solid rgba(0, 200, 240, 0.12);
}

.footer-tagline {
	color: var(--wp--preset--color--muted);
	max-width: 32ch;
}

.footer-contact a {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
	opacity: 0.85;
}

.footer-contact a:hover {
	opacity: 1;
	color: var(--wp--preset--color--cyan);
}

.footer-copyright {
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ============================================================
   Home — secciones ampliadas (Fase 1b, 2026-07-30)
   ============================================================ */

/* Hero */
.hero-section {
	position: relative;
	overflow: hidden;
}
.hero-visual {
	position: relative;
	border-radius: 1.5rem;
	overflow: hidden;
	aspect-ratio: 4/5;
	border: 1px solid rgba(0, 200, 240, 0.25);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.hero-visual img {
	filter: saturate(0.85) contrast(1.05);
}
.hero-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 20, 31, 0) 40%, rgba(16, 20, 31, 0.92) 100%),
		linear-gradient(100deg, rgba(0, 200, 240, 0.28) 0%, rgba(0, 200, 240, 0) 45%);
	pointer-events: none;
}
.hero-visual-caption {
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 2;
	color: var(--wp--preset--color--foreground);
}
.trust-row {
	border-top: 1px solid rgba(0, 200, 240, 0.14);
	padding-top: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--30) !important;
}
.trust-row p {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.trust-row strong {
	color: var(--wp--preset--color--foreground);
}

.eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--cyan);
}

/* Cards con borde-gradiente (servicios) */
.svc-card {
	position: relative;
	border-radius: 1.1rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.07);
	padding: var(--wp--preset--spacing--30) !important;
	transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.svc-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 200, 240, 0.4);
}
.svc-card .svc-price {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--green);
	margin-top: var(--wp--preset--spacing--20);
	padding-top: var(--wp--preset--spacing--10);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Proceso — 4 pasos */
.step-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 1.1rem;
	padding: var(--wp--preset--spacing--30) !important;
}
.step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--cyan);
	opacity: 0.65;
}

/* Caso de éxito */
.case-block {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(0, 200, 240, 0.14);
	border-radius: 1.75rem;
	padding: var(--wp--preset--spacing--40) !important;
}
.case-stat {
	background: var(--wp--preset--color--background);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 0.9rem;
	padding: var(--wp--preset--spacing--20) !important;
}
.case-stat strong {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--green);
}
.case-stat span {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.review-feature {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(0, 230, 118, 0.18);
	border-radius: 1.5rem;
	padding: var(--wp--preset--spacing--30) !important;
}
.review-feature blockquote {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	border: none;
	margin: 0;
	padding: 0;
}
.review-feature cite {
	display: block;
	margin-top: var(--wp--preset--spacing--10);
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* Tabla de precios */
.pricing-table {
	overflow-x: auto;
	border-radius: 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.pricing-table table {
	font-variant-numeric: tabular-nums;
}
.pricing-table thead {
	background: var(--wp--preset--color--surface);
}
.pricing-table th {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--cyan);
}
.pricing-table td,
.pricing-table th {
	border-color: rgba(255, 255, 255, 0.06) !important;
	padding: 0.9rem 1.1rem !important;
}
.pricing-table tbody tr:hover {
	background: rgba(0, 200, 240, 0.05);
}

/* Banner de garantía */
.guarantee-banner {
	background: linear-gradient(120deg, rgba(0, 230, 118, 0.1), rgba(0, 200, 240, 0.05));
	border: 1px solid rgba(0, 230, 118, 0.25);
	border-radius: 1.25rem;
	padding: var(--wp--preset--spacing--30) !important;
}

/* Trabajo real — fotos */
.photo-card {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	aspect-ratio: 4/3;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.photo-card img {
	filter: saturate(0.9) contrast(1.05);
	transition: transform 400ms var(--ease-out);
}
.photo-card:hover img {
	transform: scale(1.05);
}

/* FAQ (core/details) */
.faq-list .wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0.9rem;
	padding: 0 1.25rem;
	margin-bottom: 0.75rem;
}
.faq-list summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	padding: 1.1rem 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	list-style: none;
}
.faq-list summary::-webkit-details-marker {
	display: none;
}
.faq-list summary::after {
	content: "";
	width: 9px;
	height: 9px;
	flex-shrink: 0;
	border-right: 1.6px solid var(--wp--preset--color--cyan);
	border-bottom: 1.6px solid var(--wp--preset--color--cyan);
	transform: rotate(45deg);
	transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after {
	transform: rotate(-135deg);
}
.faq-list .wp-block-details p {
	color: var(--wp--preset--color--muted);
	padding-bottom: 1.1rem;
}
.faq-list details[open] p {
	animation: newen-faq-in 240ms var(--ease-out);
}
@keyframes newen-faq-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* CTA final */
.final-cta {
	background: radial-gradient(120% 160% at 50% 0%, rgba(0, 230, 118, 0.16) 0%, rgba(16, 20, 31, 0) 60%),
		var(--wp--preset--color--surface);
	border: 1px solid rgba(0, 230, 118, 0.2);
	border-radius: 1.75rem;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) !important;
	text-align: center;
}

/* Respeta "reduce motion" para quien lo pida */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
