/* ==========================================================================
   Itacom — capa de movimiento e interacción  (solo en el frontend)
   - Se activa con la clase .itacom-motion en <html> (la agrega functions.php).
     Sin JS o con "reducir movimiento" activado, la página se ve completa y estática.
   - Las entradas usan las propiedades `translate` / `scale` (no `transform`),
     así no chocan con los efectos de hover/tilt que usan `transform`.
   - Colores: siempre desde presets (color-mix sobre var(--wp--preset--color--*)).
   ========================================================================== */

:root {
	--itacom-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--itacom-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--itacom-red-08: color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent);
	--itacom-red-15: color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
	--itacom-red-25: color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
	--itacom-red-45: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
	--itacom-white-25: color-mix(in srgb, var(--wp--preset--color--on-primary) 25%, transparent);
}

/* ==========================================================================
   1. Entradas al hacer scroll
   A prueba de fallos: el CSS nunca oculta nada por sí solo. motion.js agrega
   .itacom-reveal SOLO a los elementos que están fuera de pantalla al cargar
   y les pone .is-in cuando entran. Sin JS, todo queda visible.
   ========================================================================== */
.itacom-reveal {
	transition:
		opacity 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms),
		translate 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms),
		scale 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms),
		transform 0.35s var(--itacom-ease-out),
		border-color 0.3s ease,
		box-shadow 0.3s ease,
		background-color 0.3s ease !important;
}
.itacom-reveal:not(.is-in) {
	opacity: 0;
	translate: 0 28px;
}
/* Variantes */
.itacom-reveal:not(.is-in):is(.itacom-sol, .itacom-plan, .itacom-logo-grid .itacom-logo) { scale: 0.94; }
.itacom-reveal:not(.is-in).itacom-pilar--tecnologia { translate: -36px 0; }
.itacom-reveal:not(.is-in).itacom-pilar--cc { translate: 36px 0; }
.itacom-reveal:not(.is-in).itacom-legado__aside { translate: 36px 0; }

/* Detalles que se "dibujan" al entrar */
.itacom-eyebrow::before,
.itacom-claim::before,
.itacom-footer__claim::before { transition: width 0.9s var(--itacom-ease-out) 0.25s; }
.itacom-reveal:not(.is-in) .itacom-eyebrow::before { width: 0; }
.itacom-reveal:not(.is-in) .itacom-claim::before { width: 0; }

.itacom-legado__aside { position: relative; border-left-color: transparent !important; }
.itacom-legado__aside::before {
	content: "";
	position: absolute;
	left: -3px;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--wp--preset--color--primary);
	transform-origin: top;
	transition: transform 1s var(--itacom-ease-out) 0.3s;
}
.itacom-reveal.itacom-legado__aside:not(.is-in)::before { transform: scaleY(0); }

/* Íconos de línea que se trazan (motion.js agrega .itacom-draw y pathLength="1") */
.itacom-draw :is(path, circle, rect, line, polyline) {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1.4s var(--itacom-ease-out) calc(var(--itacom-delay, 0ms) + 200ms);
}
.itacom-reveal:not(.is-in) .itacom-draw :is(path, circle, rect, line, polyline) { stroke-dashoffset: 1; }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.itacom-hero { isolation: isolate; overflow: hidden; }

/* Parallax suave de la foto (JS actualiza --itacom-py) */
.itacom-motion .itacom-hero { background-position: right calc(50% + var(--itacom-py, 0px)) !important; }
.itacom-motion .itacom-legado { background-position: center calc(50% + var(--itacom-py, 0px)) !important; }

/* Línea de "datos" que recorre la base del hero */
.itacom-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	z-index: -1;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary) 50%, transparent) no-repeat;
	background-size: 30% 100%;
	opacity: 0.85;
}
.itacom-motion .itacom-hero::after { animation: itacom-scan 6s linear infinite; }
@keyframes itacom-scan {
	from { background-position: -40% 0; }
	to   { background-position: 140% 0; }
}

/* Halo rojo que respira detrás del titular */
.itacom-hero__content { position: relative; }
.itacom-hero__content::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -10%;
	top: 0;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, var(--itacom-red-25), transparent 65%);
	filter: blur(30px);
	pointer-events: none;
	opacity: 0;
}
.itacom-motion .itacom-hero__content::before { animation: itacom-breathe 7s ease-in-out 1.2s infinite; }
@keyframes itacom-breathe {
	0%, 100% { opacity: 0.35; transform: scale(0.9); }
	50%      { opacity: 0.7;  transform: scale(1.05); }
}

/* Titular palabra por palabra (JS envuelve cada palabra en .itacom-word) */
.itacom-word {
	display: inline-block;
	white-space: pre;
}
.itacom-motion .itacom-hero h1 .itacom-word {
	opacity: 0;
	translate: 0 0.45em;
	filter: blur(6px);
	animation: itacom-word-in 0.9s var(--itacom-ease-out) forwards;
	animation-delay: calc(120ms + var(--i, 0) * 90ms);
}
@keyframes itacom-word-in {
	to { opacity: 1; translate: 0 0; filter: blur(0); }
}

/* Punto rojo que late */
.itacom-dot { display: inline-block; }
.itacom-motion .itacom-hero .itacom-dot {
	animation: itacom-dot-in 0.6s var(--itacom-ease-spring) 1.1s both, itacom-dot-pulse 2.4s ease-in-out 2s infinite;
}
@keyframes itacom-dot-in {
	from { opacity: 0; scale: 0; }
	to   { opacity: 1; scale: 1; }
}
@keyframes itacom-dot-pulse {
	0%, 100% { text-shadow: 0 0 0 transparent; }
	50%      { text-shadow: 0 0 18px var(--wp--preset--color--primary); }
}

/* Bajada, botones y claim entran después del titular */
.itacom-motion :is(.itacom-hero .itacom-eyebrow, .itacom-hero .itacom-lead, .itacom-hero__buttons, .itacom-hero .itacom-claim) {
	opacity: 0;
	translate: 0 20px;
	animation: itacom-fade-up 0.9s var(--itacom-ease-out) forwards;
}
.itacom-motion .itacom-hero .itacom-eyebrow { animation-delay: 0.05s; }
.itacom-motion .itacom-hero .itacom-lead { animation-delay: 0.55s; }
.itacom-motion .itacom-hero__buttons { animation-delay: 0.75s; }
.itacom-motion .itacom-hero .itacom-claim { animation-delay: 1s; }
.itacom-motion .itacom-hero .itacom-claim::before { width: 0; animation: itacom-grow-44 0.9s var(--itacom-ease-out) 1.3s forwards; }
@keyframes itacom-fade-up { to { opacity: 1; translate: 0 0; } }
@keyframes itacom-grow-44 { to { width: 44px; } }

/* Claim línea por línea (JS envuelve cada línea en .itacom-line) */
.itacom-line { display: inline-block; }
.itacom-motion .itacom-hero .itacom-claim .itacom-line {
	opacity: 0;
	translate: -12px 0;
	animation: itacom-line-in 0.7s var(--itacom-ease-out) forwards;
	animation-delay: calc(1.15s + var(--i, 0) * 160ms);
}
@keyframes itacom-line-in { to { opacity: 1; translate: 0 0; } }

/* ==========================================================================
   3. Botones
   ========================================================================== */
.wp-element-button,
.wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
}

/* Flecha que avanza (JS envuelve "→" en .itacom-arrow) */
.itacom-arrow {
	display: inline-block;
	transition: transform 0.35s var(--itacom-ease-spring);
}
a:hover > .itacom-arrow,
button:hover > .itacom-arrow,
a:focus-visible > .itacom-arrow { transform: translateX(5px); }

/* Botón principal: brillo que cruza + elevación + glow */
.wp-block-button:not(.is-style-outline):not(.is-style-light):not(.is-style-video) > .wp-element-button,
.itacom-form button.wp-element-button {
	transition: background-color 0.25s ease, transform 0.35s var(--itacom-ease-out), box-shadow 0.35s ease, translate 0.35s var(--itacom-ease-out);
}
.wp-block-button:not(.is-style-outline):not(.is-style-light):not(.is-style-video) > .wp-element-button::after,
.itacom-form button.wp-element-button::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, transparent 30%, var(--itacom-white-25) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.75s var(--itacom-ease-out);
}
.wp-block-button:not(.is-style-outline):not(.is-style-light):not(.is-style-video) > .wp-element-button:hover::after,
.itacom-form button.wp-element-button:hover::after { transform: translateX(120%); }
.wp-block-button:not(.is-style-outline):not(.is-style-light):not(.is-style-video) > .wp-element-button:hover,
.itacom-form button.wp-element-button:hover {
	background-color: var(--wp--preset--color--primary-dark);
	box-shadow: var(--wp--preset--shadow--glow);
}
.itacom-form button.wp-element-button:hover { transform: translateY(-2px); }

/* Botón claro: relleno rojo que entra desde la izquierda */
.wp-block-button.is-style-light > .wp-block-button__link {
	background:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) left / 0% 100% no-repeat,
		var(--wp--preset--color--on-primary);
	transition: background-size 0.45s var(--itacom-ease-out), color 0.3s ease, transform 0.35s var(--itacom-ease-out), box-shadow 0.35s ease;
}
.wp-block-button.is-style-light > .wp-block-button__link:hover,
.wp-block-button.is-style-light > .wp-block-button__link:focus-visible {
	background-size: 100% 100%, auto;
	color: var(--wp--preset--color--on-primary);
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--glow);
}

/* Botón outline: mismo relleno, más sutil */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: linear-gradient(var(--itacom-red-15), var(--itacom-red-15)) left / 0% 100% no-repeat;
	transition: background-size 0.45s var(--itacom-ease-out), border-color 0.3s ease, color 0.3s ease, transform 0.35s var(--itacom-ease-out);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: linear-gradient(var(--itacom-red-15), var(--itacom-red-15)) left / 100% 100% no-repeat;
	transform: translateY(-2px);
}

/* Botón de video: anillo que late alrededor del play */
.wp-block-button.is-style-video > .wp-block-button__link { overflow: visible; }
.wp-block-button.is-style-video > .wp-block-button__link::before {
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--itacom-ease-spring);
}
.itacom-motion .wp-block-button.is-style-video > .wp-block-button__link::before {
	animation: itacom-ring 2.4s ease-out 2.2s infinite;
}
.wp-block-button.is-style-video > .wp-block-button__link:hover::before { transform: scale(1.12); }
@keyframes itacom-ring {
	0%   { box-shadow: 0 0 0 0 var(--itacom-red-45); }
	70%  { box-shadow: 0 0 0 16px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

/* Clic: hundimiento leve + onda (JS crea .itacom-ripple) */
.wp-element-button:active,
.wp-block-button__link:active { scale: 0.97; }
.itacom-ripple {
	position: absolute;
	z-index: -1;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	background: var(--itacom-white-25);
	pointer-events: none;
	animation: itacom-ripple 0.65s ease-out forwards;
}
.is-style-light .itacom-ripple { background: var(--itacom-red-25); }
@keyframes itacom-ripple {
	from { transform: scale(0); opacity: 1; }
	to   { transform: scale(40); opacity: 0; }
}

/* Magnético (JS mueve --mag-x / --mag-y en los CTA principales) */
.itacom-magnetic { translate: var(--mag-x, 0) var(--mag-y, 0); }

/* Foco visible para teclado en todos los elementos interactivos */
:where(a, button, summary, input, select, textarea, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: var(--wp--custom--radius--control);
}
.wp-element-button:focus-visible { border-radius: var(--wp--custom--radius--pill); }

/* Enlaces con flecha: subrayado que crece */
.itacom-link-arrow a {
	background: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) left bottom / 0% 2px no-repeat;
	padding-bottom: 3px;
	transition: background-size 0.4s var(--itacom-ease-out), color 0.25s ease;
}
.itacom-link-arrow a:hover { background-size: 100% 2px; }

/* Botón de envío del formulario: estado "enviando" */
.itacom-form button.is-sending { pointer-events: none; opacity: 0.85; }
.itacom-form button.is-sending::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.6em;
	vertical-align: -0.15em;
	border: 2px solid var(--itacom-white-25);
	border-top-color: var(--wp--preset--color--on-primary);
	border-radius: 50%;
	animation: itacom-spin 0.7s linear infinite;
}
@keyframes itacom-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   4. Header
   ========================================================================== */
.wp-site-blocks > header.wp-block-template-part {
	transition: background-color 0.35s ease, box-shadow 0.35s ease, translate 0.4s var(--itacom-ease-out);
}
/* Se esconde al bajar y vuelve al subir (motion.js). Solo en ese estado lleva desplazamiento:
   así el menú hamburguesa (posición fija) siempre ocupa toda la pantalla. */
.wp-site-blocks > header.is-hidden { translate: 0 -110%; box-shadow: none; }
.itacom-header__inner { transition: min-height 0.35s var(--itacom-ease-out); }
.itacom-header { transition: background-color 0.35s ease; }

.wp-site-blocks > header.is-scrolled {
	background-color: transparent;
	box-shadow: 0 10px 30px color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
}
.wp-site-blocks > header.is-scrolled .itacom-header.has-contrast-background-color {
	background-color: transparent !important;
}
/* El desenfoque va en una capa aparte: puesto en el header, encerraba al menú hamburguesa (fijo) dentro del header. */
.wp-site-blocks > header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 80%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}
.wp-site-blocks > header.is-scrolled::before { opacity: 1; }
.wp-site-blocks > header { isolation: isolate; }
.wp-site-blocks > header.is-scrolled .itacom-header__inner { min-height: calc(var(--wp--custom--header-height) - 14px); }

/* Barra de progreso de lectura */
.itacom-progress {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--accent));
	transform-origin: left;
	transform: scaleX(var(--itacom-progress, 0));
	pointer-events: none;
}

/* Menú: sección activa */
.itacom-nav .wp-block-navigation-item__content.is-active { color: var(--wp--preset--color--base); }
.itacom-nav .wp-block-navigation-item__content.is-active::after { transform: scaleX(1); }
.itacom-nav .wp-block-navigation-item__content::after { transform-origin: left; transition: transform 0.35s var(--itacom-ease-out); }

/* Menú móvil: los enlaces entran escalonados */
.itacom-nav .is-menu-open .wp-block-navigation-item {
	opacity: 0;
	translate: 0 14px;
	animation: itacom-fade-up 0.5s var(--itacom-ease-out) forwards;
	animation-delay: calc(80ms + var(--i, 0) * 55ms);
}

/* ==========================================================================
   5. Tarjetas: tilt 3D + reflector rojo que sigue al mouse
   (JS actualiza --rx, --ry, --mx, --my en .itacom-tilt / .itacom-spot)
   ========================================================================== */
.itacom-tilt {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
	transform-style: preserve-3d;
	will-change: transform;
}
.itacom-tilt:hover { --lift: -6px; }

/* Soluciones: el reflector rojo aparece solo al pasar el mouse (en reposo, la foto queda neutra) */
.itacom-sol::before {
	background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--wp--preset--color--contrast) 92%, transparent) 100%);
}
.itacom-sol:hover::before {
	background:
		radial-gradient(420px circle at var(--mx, 50%) var(--my, 120%), var(--itacom-red-25), transparent 45%),
		linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--wp--preset--color--contrast) 92%, transparent) 100%);
}
.itacom-sol { transition: transform 0.35s var(--itacom-ease-out), border-color 0.3s ease, background-size 0.8s var(--itacom-ease-out); }
.itacom-sol:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.itacom-sol::after { transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.45s var(--itacom-ease-spring); }
.itacom-sol:hover::after { transform: rotate(-45deg) scale(1.1); }
.itacom-sol h3 { transition: translate 0.4s var(--itacom-ease-out); }
.itacom-sol:hover h3 { translate: 0 -4px; }

/* Reflector genérico (planes, canales, pilares) */
.itacom-spot { position: relative; isolation: isolate; overflow: hidden; }
.itacom-spot > .itacom-glare {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	border-radius: inherit;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--itacom-red-15), transparent 55%);
	transition: opacity 0.4s ease;
}
.itacom-spot:hover > .itacom-glare { opacity: 1; }
.itacom-spot > :not(.itacom-glare) { position: relative; z-index: 1; }
.itacom-spot > .itacom-glare { max-width: none !important; margin: 0 !important; }
.itacom-spot > .itacom-glare + * { margin-top: 0 !important; }
.itacom-plan.itacom-spot > .itacom-plan__badge { position: absolute; z-index: 2; }

/* Pilares */
.itacom-pilar { transition: box-shadow 0.4s ease, transform 0.35s var(--itacom-ease-out); }
.itacom-pilar:hover { box-shadow: 0 24px 60px color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent); }

/* Planes */
.itacom-plan:hover { border-color: var(--itacom-red-45); }
.itacom-plan.is-featured:hover { border-color: var(--wp--preset--color--primary); }
.itacom-plan__badge { animation: none; }
.itacom-motion .itacom-plan__badge { animation: itacom-badge 2.8s ease-in-out 1s infinite; }
@keyframes itacom-badge {
	0%, 100% { box-shadow: 0 0 0 0 var(--itacom-red-45); }
	50%      { box-shadow: 0 0 0 6px transparent; }
}
.itacom-checklist li::before { transition: transform 0.4s var(--itacom-ease-spring); }
.itacom-plan:hover .itacom-checklist li::before { transform: scale(1.15); }

/* Canales del contact center */
.itacom-canal { transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s var(--itacom-ease-out); }
.itacom-canal:hover { transform: translateY(-4px); }
.itacom-canal__icon { transition: background-color 0.3s ease, color 0.3s ease, transform 0.45s var(--itacom-ease-spring); }
.itacom-canal:hover .itacom-canal__icon {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	transform: rotate(-8deg) scale(1.08);
}

/* Pasos: el número se enciende */
.itacom-paso { position: relative; }
.itacom-paso::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.9s var(--itacom-ease-out) calc(var(--itacom-delay, 0ms) + 300ms);
}
.itacom-paso:not(.itacom-reveal)::before,
.itacom-paso.is-in::before { transform: scaleX(1); }
.itacom-paso__num { transition: text-shadow 0.3s ease; }
.itacom-paso:hover .itacom-paso__num { text-shadow: 0 0 14px var(--wp--preset--color--primary); }

/* ==========================================================================
   6. Cifras
   ========================================================================== */
/* Las cifras no son interactivas: sin fondo al pasar el mouse, solo el ícono reacciona. */
.itacom-cifra__icon { transition: transform 0.5s var(--itacom-ease-spring); }
.itacom-cifra:hover .itacom-cifra__icon { transform: scale(1.12) rotate(-6deg); }
.itacom-cifra:hover .itacom-cifra__icon svg { animation: itacom-wiggle 0.6s ease; }
@keyframes itacom-wiggle {
	0%, 100% { transform: rotate(0); }
	30%      { transform: rotate(-10deg); }
	60%      { transform: rotate(8deg); }
}
.itacom-count { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   7. Industrias, logos, testimonios, FAQ, insights
   ========================================================================== */
.itacom-industria { position: relative; }
.itacom-industria::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--itacom-ease-out);
}
.itacom-industria:hover::before { transform: scaleX(1); }
.itacom-industria__num { display: inline-block; transition: translate 0.4s var(--itacom-ease-out); }
.itacom-industria:hover .itacom-industria__num { translate: 6px 0; }

.itacom-logo-grid .itacom-logo { transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--itacom-ease-out), opacity 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms), translate 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms), scale 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms); }
.itacom-logo-grid .itacom-logo:hover {
	background-color: var(--wp--preset--color--contrast-3);
	transform: translateY(-3px);
}
.itacom-logo-grid .itacom-logo__name { transition: color 0.25s ease; }
.itacom-logo-grid .itacom-logo:hover :is(span, .itacom-logo__name, .itacom-logo__name a) { color: var(--wp--preset--color--base); }

.itacom-quote { transition: transform 0.35s var(--itacom-ease-out), box-shadow 0.35s ease, border-color 0.3s ease; }
.itacom-quote:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--soft);
	border-color: var(--itacom-red-45) !important;
}
.itacom-quote::before { transition: transform 0.5s var(--itacom-ease-spring); transform-origin: left bottom; }
.itacom-quote:hover::before { transform: scale(1.2) rotate(-6deg); }

/* FAQ: apertura animada (JS anima la altura) */
.itacom-faq__item { transition: border-color 0.3s ease, box-shadow 0.3s ease; overflow: hidden; }
.itacom-faq__item:hover { border-color: var(--itacom-red-45); }
.itacom-faq__item[open] { box-shadow: var(--wp--preset--shadow--soft); }
.itacom-faq__item summary { transition: color 0.25s ease; }
.itacom-faq__item summary:hover { color: var(--wp--preset--color--accent); }
.itacom-faq__item summary::after { transition: transform 0.4s var(--itacom-ease-spring), background-color 0.3s ease, color 0.3s ease; }
.itacom-faq__item[open] summary::after {
	content: "+";
	transform: translateY(-50%) rotate(135deg);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}

.itacom-post { transition: translate 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms), opacity 0.8s var(--itacom-ease-out) var(--itacom-delay, 0ms), transform 0.35s var(--itacom-ease-out); }
.itacom-post:hover { transform: translateY(-4px); }

/* Formulario: los campos se elevan al enfocarlos */
.itacom-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea):focus { translate: 0 -1px; }
.itacom-form label { transition: color 0.25s ease; }
.itacom-form__field:focus-within label { color: var(--wp--preset--color--accent); }

/* Lista de contacto */
.itacom-contact-list li { transition: padding-left 0.35s var(--itacom-ease-out), color 0.25s ease; }
.itacom-contact-list li:hover { padding-left: 0.5rem; color: var(--wp--preset--color--base); }
.itacom-wa-link { transition: background-color 0.3s ease, transform 0.35s var(--itacom-ease-out), border-color 0.3s ease; }
.itacom-wa-link:hover { transform: translateY(-2px); }

/* Footer */
.itacom-footer__list a { display: inline-block; transition: translate 0.3s var(--itacom-ease-out), color 0.25s ease; }
.itacom-footer__list a:hover { translate: 4px 0; }

/* ==========================================================================
   8. WhatsApp flotante
   ========================================================================== */
.itacom-wa { transition: transform 0.35s var(--itacom-ease-spring), box-shadow 0.3s ease; }
.itacom-wa::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid currentColor;
	color: inherit;
	opacity: 0;
	pointer-events: none;
}
.itacom-motion .itacom-wa {
	animation: itacom-pop 0.6s var(--itacom-ease-spring) 1.6s both;
}
.itacom-motion .itacom-wa::before { animation: itacom-wa-ring 3s ease-out 3s infinite; }
@keyframes itacom-pop {
	from { opacity: 0; scale: 0.4; translate: 0 20px; }
	to   { opacity: 1; scale: 1; translate: 0 0; }
}
@keyframes itacom-wa-ring {
	0%   { opacity: 0.7; transform: scale(1); }
	60%  { opacity: 0;   transform: scale(1.6); }
	100% { opacity: 0;   transform: scale(1.6); }
}
.itacom-wa:hover { transform: scale(1.1) rotate(-8deg); }

/* ==========================================================================
   9. Accesibilidad: sin movimiento si el usuario lo pidió
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.itacom-tilt, .itacom-sol:hover { transform: none !important; }
	.itacom-magnetic { translate: none !important; }
	.itacom-ripple, .itacom-hero::after, .itacom-hero__content::before { display: none; }
}
