/*
Theme Name: Mater Tech
Theme URI: https://matertechsolutions.com.ar
Author: Mater Tech Solutions
Description: Tema de bloques a medida para Mater Tech Solutions: tecnología, IA y marketing digital.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matertech
*/

html { scroll-behavior: smooth; }
:where(section[id], div[id]) { scroll-margin-top: 96px; }

/* Header fijo con fondo translúcido */
.mt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	background-color: rgba(6, 38, 92, 0.92) !important;
}
body.admin-bar .mt-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mt-header { top: 46px; } }

/* Marca tipográfica */
.mt-wordmark { line-height: 1 !important; }
.mt-wordmark strong { display: block; font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; letter-spacing: 0.02em; }
.mt-wordmark span { display: block; font-size: 0.62em; letter-spacing: 0.42em; color: var(--wp--preset--color--cyan); margin-top: 3px; font-weight: 600; }

/* Hero */
.mt-hero { position: relative; overflow: hidden; }
.mt-hero::before {
	content: "";
	position: absolute;
	inset: auto -10% -45% auto;
	width: 70%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side, rgba(0, 212, 232, 0.35), transparent 70%);
	pointer-events: none;
}
.mt-hero > * { position: relative; }
.mt-hero .mt-hero-logo img { filter: drop-shadow(0 20px 50px rgba(0, 169, 244, 0.45)); }
.mt-accent-bar { width: 72px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--wp--preset--color--electric), var(--wp--preset--color--cyan)); }

/* Tarjetas de servicios */
.mt-card {
	height: 100%;
	border: 1px solid rgba(7, 91, 216, 0.12);
	box-shadow: 0 10px 30px rgba(6, 38, 92, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	position: relative;
	overflow: hidden;
}
.mt-card::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--wp--preset--color--blue), var(--wp--preset--color--cyan));
}
.mt-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6, 38, 92, 0.14); }
.mt-icon {
	width: 56px; height: 56px;
	border-radius: 14px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, rgba(0, 169, 244, 0.14), rgba(0, 212, 232, 0.14));
	color: var(--wp--preset--color--blue);
}
.mt-icon svg { width: 30px; height: 30px; }

/* Banda de valores */
.mt-value { display: flex; align-items: center; gap: 14px; }
.mt-value svg { flex: 0 0 36px; width: 36px; height: 36px; color: var(--wp--preset--color--cyan); }

/* Pasos */
.mt-step-num {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 800;
	font-size: 2.5rem;
	line-height: 1;
	background: linear-gradient(135deg, var(--wp--preset--color--blue), var(--wp--preset--color--cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Botón flotante de WhatsApp */
.mt-wa-float {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 60;
	width: 58px; height: 58px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}
.mt-wa-float:hover, .mt-wa-float:focus-visible { transform: scale(1.08); color: #fff; }
.mt-wa-float svg { width: 30px; height: 30px; }

.mt-contact-link a { text-decoration: none; }
.mt-contact-link a:hover { text-decoration: underline; }

body { overflow-x: clip; }

@media (max-width: 781px) {
	.mt-header-cta { display: none !important; }
	.mt-hero .mt-hero-logo img { width: 180px !important; }
	.mt-hero h1 { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mt-card, .mt-wa-float { transition: none; }
}
