/* ==========================================================================
   Ainora Digital — estilos del tema hijo
   Colores, fuentes y botones base: theme.json. Aquí: componentes y secciones.
   ========================================================================== */

:root {
	--ad-azul: #0B65E1;
	--ad-cian: #36BCFC;
	--ad-marino: #1F2E4A;
	--ad-azul-oscuro: #0A53B5;
	--ad-marino-profundo: #16223A;
	--ad-marino-pie: #111B2E;
	--ad-suave: #EAF2FE;
	--ad-base: #F7FAFF;
	--ad-texto-2: #4A5A75;
	--ad-texto-3: #55657F;
	--ad-texto-osc: #AFBDD6;
	--ad-borde: #DCE8F8;
	--ad-header-h: 84px;
	--ad-sombra-card: 0 18px 40px -28px rgba(11, 60, 140, .35);
	--ad-sombra-card-hover: 0 28px 50px -24px rgba(11, 60, 140, .38);
	--ad-ease: cubic-bezier(.2, .7, .2, 1);
	--ad-sec-y: clamp(72px, 9vw, 120px);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ad-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Sin huecos entre cabecera, contenido y pie ni entre secciones */
body .wp-site-blocks { position: relative; padding-top: 0; padding-bottom: 0; }
body .wp-site-blocks > * { margin-block: 0; }
body .ad-front > * { margin-block: 0; }

/* Dentro de los componentes, los márgenes los controla esta hoja.
   (Selectores de clase reales: :where() no suma especificidad y perdería ante
   la regla de WordPress «:root :where(.is-layout-flow) > *».) */
body .ad-header :where(.wp-block-group, p, h1, h2, h3, h4, .wp-block-buttons, .wp-block-navigation, ul),
body .ad-footer :where(.wp-block-group, p, h1, h2, h3, h4, .wp-block-buttons, ul),
body .ad-sec :where(.wp-block-group, p, h1, h2, h3, h4, .wp-block-buttons, ul),
body .ad-contacto :where(.wp-block-group, p, h1, h2, h3, h4, .wp-block-buttons, ul) {
	margin-block-start: 0;
	margin-block-end: 0;
}
body .ad-site-header > .ad-header,
body .ad-site-footer > .ad-footer { margin-block: 0; }

.ad-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 32px;
	box-sizing: border-box;
}

:focus-visible { outline: 3px solid var(--ad-cian); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Logo: AINORA grande, DIGITAL pequeño
   -------------------------------------------------------------------------- */
.ad-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--ad-marino); }
.ad-logo__img { width: 40px; height: 40px; flex: none; }
.ad-logo__text { display: flex; flex-direction: column; line-height: 1; }
.ad-logo__name { font-family: Sora, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--ad-marino); }
.ad-logo__tag { font-family: Sora, sans-serif; font-weight: 600; font-size: 9.5px; letter-spacing: .42em; color: var(--ad-azul); margin-top: 4px; }
.ad-logo--claro .ad-logo__name { color: #fff; }
.ad-logo--claro .ad-logo__tag { color: var(--ad-cian); }

/* --------------------------------------------------------------------------
   Cabecera fija con efecto cristal al desplazarse
   -------------------------------------------------------------------------- */
.wp-site-blocks > header.ad-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
	background: rgba(247, 250, 255, .86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(11, 101, 225, .08);
}
/* En portada, la cabecera flota sobre el hero */
body.home .wp-site-blocks > header.ad-site-header {
	margin-bottom: calc(var(--ad-header-h) * -1);
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
}
body.home.ad-scrolled .wp-site-blocks > header.ad-site-header {
	background: rgba(247, 250, 255, .86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 10px 30px -20px rgba(11, 60, 140, .35);
}

.ad-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--ad-header-h); }

.ad-nav.wp-block-navigation { font-size: 15px; font-weight: 600; }
.ad-nav .wp-block-navigation__container {
	gap: 28px;
	padding: 10px 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(11, 101, 225, .10);
	box-shadow: 0 10px 30px -18px rgba(11, 60, 140, .3);
}
.ad-nav .wp-block-navigation-item__content { color: var(--ad-marino); text-decoration: none; transition: color .2s ease; }
.ad-nav .wp-block-navigation-item__content:hover { color: var(--ad-azul); text-decoration: none; }
.ad-nav__solo-movil { display: none !important; }

/* Menú móvil desplegado */
.ad-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: linear-gradient(180deg, var(--ad-marino), var(--ad-marino-profundo));
	color: #fff;
	padding: 28px 24px;
}
.ad-nav .is-menu-open .wp-block-navigation__container {
	background: none; border: 0; box-shadow: none; padding: 48px 0 0; gap: 22px;
}
.ad-nav .is-menu-open .wp-block-navigation-item__content { color: #fff; font-size: 22px; font-family: Sora, sans-serif; }
.ad-nav .is-menu-open .ad-nav__solo-movil { display: flex !important; }
/* Sin «display»: WordPress decide cuándo mostrar el botón (solo por debajo de 600 px) */
.ad-nav .wp-block-navigation__responsive-container-open {
	width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
	border: 1px solid #D3E2F7; background: rgba(255, 255, 255, .8); color: var(--ad-marino);
}
.ad-nav .wp-block-navigation__responsive-container-close { color: #fff; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.wp-block-buttons.ad-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ad-actions--centro { justify-content: center; }
.ad-btn .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 17px 28px;
	border-radius: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 16px 34px -14px rgba(11, 101, 225, .7);
	transition: transform .2s var(--ad-ease), box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}
.ad-btn .wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }
.ad-btn--sm .wp-block-button__link { padding: 13px 22px; font-size: 15px; box-shadow: 0 12px 26px -12px rgba(11, 101, 225, .7); }
.ad-btn--flecha .wp-block-button__link::after {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--ad-i-flecha) center / contain no-repeat; mask: var(--ad-i-flecha) center / contain no-repeat;
	transition: transform .2s var(--ad-ease);
}
.ad-btn--flecha .wp-block-button__link:hover::after { transform: translateX(3px); }
.ad-btn--claro .wp-block-button__link {
	background: rgba(255, 255, 255, .65); color: var(--ad-azul);
	border: 1.5px solid #C5DAF8; box-shadow: none;
}
.ad-btn--claro .wp-block-button__link:hover { background: #fff; color: var(--ad-azul-oscuro); filter: none; }
.ad-btn--blanco .wp-block-button__link { background: #fff; color: var(--ad-azul-oscuro); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.ad-btn--blanco .wp-block-button__link:hover { color: var(--ad-azul-oscuro); }
.ad-btn--borde .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: none; }

/* --------------------------------------------------------------------------
   Elementos de texto comunes
   -------------------------------------------------------------------------- */
.ad-eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ad-azul); margin-bottom: 14px !important;
}
.ad-h2 { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.65rem); line-height: 1.12; letter-spacing: -.03em; }
.ad-h3 { font-size: 1.35rem; }
.ad-lead { font-size: clamp(1rem, .95rem + .3vw, 1.0625rem); line-height: 1.65; color: var(--ad-texto-2); }
.ad-grad {
	background: linear-gradient(90deg, var(--ad-azul), var(--ad-cian));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.ad-head { max-width: 660px; margin-bottom: 56px !important; }
.ad-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ad-head__main { max-width: 640px; }
.ad-head__side { max-width: 380px; font-size: 16px; line-height: 1.6; color: var(--ad-texto-3); }
.ad-sec--oscura .ad-head__side { color: var(--ad-texto-osc); }
.ad-sec--corporativa .ad-head__side { color: #DCE9FF; }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.ad-sec { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--ad-sec-y); }

.ad-sec--suave { background: linear-gradient(180deg, var(--ad-suave) 0%, #F4F8FF 100%); }
.ad-sec--clara { background: var(--ad-base); }

.ad-sec--oscura { background: linear-gradient(180deg, var(--ad-marino) 0%, var(--ad-marino-profundo) 100%); color: #fff; }
.ad-sec--oscura :where(h2, h3) { color: #fff; }
.ad-sec--oscura .ad-eyebrow { color: var(--ad-cian); }
.ad-sec--oscura .ad-lead { color: var(--ad-texto-osc); }
/* Línea luminosa superior y brillo de fondo */
.ad-sec--oscura::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 1;
	background: linear-gradient(90deg, rgba(54, 188, 252, 0), rgba(54, 188, 252, .9), rgba(54, 188, 252, 0));
}
.ad-sec--oscura::after {
	content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; border-radius: 50%;
	left: -260px; top: -320px;
	background: radial-gradient(circle, rgba(11, 101, 225, .35), rgba(11, 101, 225, 0) 65%);
	pointer-events: none;
}
.ad-sectores::after { left: auto; top: auto; right: -200px; bottom: -320px; background: radial-gradient(circle, rgba(54, 188, 252, .22), rgba(54, 188, 252, 0) 65%); }

.ad-sec--corporativa { background: linear-gradient(135deg, var(--ad-azul-oscuro) 0%, var(--ad-azul) 60%, #1679EA 100%); color: #fff; }
.ad-sec--corporativa :where(h2, h3) { color: #fff; }
.ad-sec--corporativa .ad-eyebrow { color: #BFE9FF; }
/* Anillos orbitales, eco de la esfera */
.ad-sec--corporativa::before,
.ad-sec--corporativa::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.ad-sec--corporativa::before { width: 760px; height: 760px; right: -240px; top: -360px; border: 1px solid rgba(255, 255, 255, .14); }
.ad-sec--corporativa::after { width: 560px; height: 560px; right: -140px; top: -260px; border: 1px solid rgba(54, 188, 252, .38); }

/* --------------------------------------------------------------------------
   Hero con la esfera
   -------------------------------------------------------------------------- */
.ad-hero {
	padding: calc(var(--ad-header-h) + 100px) 0 150px;
	min-height: 760px;
	box-sizing: border-box;
	display: flex; align-items: center;
	background:
		radial-gradient(circle at 76% 50%, rgba(54, 188, 252, .26), rgba(54, 188, 252, 0) 34%),
		linear-gradient(120deg, #F7FAFF 0%, #EBF3FF 55%, #DCEAFD 100%);
}
/* Retícula técnica muy tenue, solo bajo el texto */
.ad-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(11, 101, 225, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 101, 225, .05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 60%);
	mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 60%);
}
/* Transición suave hacia la sección marino */
.ad-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgba(31, 46, 74, 0), rgba(31, 46, 74, .10));
}
.ad-hero__inner { position: static; }
.ad-hero__content { position: relative; z-index: 2; max-width: 560px; }

.ad-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .8); border: 1px solid #D6E5FB;
	color: var(--ad-azul-oscuro); font-size: 13px; font-weight: 700; letter-spacing: .02em;
	margin-bottom: 28px !important;
}
.ad-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ad-cian); box-shadow: 0 0 0 4px rgba(54, 188, 252, .2); }

.ad-hero__title { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 3.875rem); line-height: 1.03; letter-spacing: -.035em; margin-bottom: 24px !important; }
.ad-hero__lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--ad-texto-2); margin-bottom: 38px !important; max-width: 32em; }
.ad-hero .ad-actions { margin-bottom: 44px !important; }

.ad-chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ad-texto-2); }
.ad-chips span { padding: 6px 12px; border: 1px solid #D3E2F7; background: rgba(255, 255, 255, .55); border-radius: 999px; }

/* Esfera: se funde con el fondo (multiplicar) y se difumina hacia el texto */
.ad-hero__visual {
	position: absolute; z-index: 0; right: 0; top: 50%;
	width: clamp(820px, calc(130vw - 530px), 1500px);
	aspect-ratio: 2400 / 1340;
	transform: translateY(-46%);
	background: var(--ad-hero-1600) right center / cover no-repeat;
	mix-blend-mode: multiply;
	/* Difumina el borde izquierdo (hacia el texto) y los bordes superior e inferior de la imagen */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
	mask-composite: intersect;
	pointer-events: none;
	animation: ad-flotar 9s ease-in-out infinite;
}
@media (min-width: 1500px), (min-width: 1100px) and (min-resolution: 1.5dppx) {
	.ad-hero__visual { background-image: var(--ad-hero-2400); }
}
@keyframes ad-flotar {
	0%, 100% { transform: translateY(-46%); }
	50% { transform: translateY(-48%); }
}

/* --------------------------------------------------------------------------
   Tarjetas y rejillas
   -------------------------------------------------------------------------- */
.ad-grid { display: grid; gap: 24px; }
.ad-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.ad-card { border-radius: 22px; transition: transform .3s var(--ad-ease), box-shadow .3s ease, border-color .3s ease; }
.ad-card:hover { transform: translateY(-4px); }
.ad-card__title { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: 0; font-family: "Plus Jakarta Sans", sans-serif; margin-bottom: 8px !important; }
.ad-card__text { font-size: 14px; line-height: 1.6; }

.ad-card--cristal {
	padding: 26px 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
	border: 1px solid rgba(255, 255, 255, .10);
}
.ad-card--cristal:hover { border-color: rgba(54, 188, 252, .45); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .6); }
.ad-card--cristal .ad-card__text { color: var(--ad-texto-osc); }

.ad-card--servicio {
	padding: 32px;
	background: #fff;
	border: 1px solid var(--ad-borde);
	box-shadow: var(--ad-sombra-card);
}
.ad-card--servicio:hover { border-color: #BFD6F7; box-shadow: var(--ad-sombra-card-hover); }
.ad-card--servicio .ad-card__title { font-family: Sora, sans-serif; font-size: 20px; letter-spacing: -.01em; margin-bottom: 10px !important; }
.ad-card--servicio .ad-card__text { font-size: 15px; color: var(--ad-texto-3); }

/* Iconos (máscara SVG; el color sale de currentColor) */
.ad-icon {
	width: 44px; height: 44px; border-radius: 12px; flex: none;
	display: grid; place-items: center;
	margin-bottom: 20px !important;
	background: rgba(54, 188, 252, .12); border: 1px solid rgba(54, 188, 252, .25); color: var(--ad-cian);
}
.ad-icon::before {
	content: ""; width: 22px; height: 22px; background: currentColor;
	-webkit-mask: var(--ad-i) center / contain no-repeat; mask: var(--ad-i) center / contain no-repeat;
}
.ad-icon--grande {
	width: 54px; height: 54px; border-radius: 16px; margin-bottom: 24px !important;
	background: linear-gradient(140deg, var(--ad-azul), var(--ad-cian)); border: 0; color: #fff;
	box-shadow: 0 12px 24px -10px rgba(11, 101, 225, .6);
}
.ad-icon--grande::before { width: 24px; height: 24px; }

:root {
	--ad-i-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.ad-icon--mensajes { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h12v9H8l-4 3z'/%3E%3Cpath d='M20 9v10l-3-2h-7'/%3E%3C/svg%3E"); }
.ad-icon--reloj { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ad-icon--calendario-x { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M10 14l4 4M14 14l-4 4'/%3E%3C/svg%3E"); }
.ad-icon--repetir { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l3 3-3 3'/%3E%3Cpath d='M4 11V9a4 4 0 0 1 4-4h12'/%3E%3Cpath d='M7 22l-3-3 3-3'/%3E%3Cpath d='M20 13v2a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E"); }
.ad-icon--capas { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.ad-icon--chat { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.ad-icon--micro { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 11a7 7 0 0 1-14 0'/%3E%3Cpath d='M12 18v3'/%3E%3C/svg%3E"); }
.ad-icon--flujo { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M8.5 6H14a4 4 0 0 1 4 4v5.5'/%3E%3Cpath d='M6 8.5V14a4 4 0 0 0 4 4h5.5'/%3E%3C/svg%3E"); }
.ad-icon--calendario { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ad-icon--grafica { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 16v-4M12 16V8M16 16v-6'/%3E%3C/svg%3E"); }
.ad-icon--web { --ad-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M10 13l-2 2 2 2M14 13l2 2-2 2'/%3E%3C/svg%3E"); }

/* --------------------------------------------------------------------------
   Cómo trabajamos: pasos unidos por una línea luminosa
   -------------------------------------------------------------------------- */
.ad-pasos { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ad-pasos::before {
	content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px;
	background: linear-gradient(90deg, var(--ad-cian) 0%, rgba(255, 255, 255, .55) 35%, rgba(255, 255, 255, .18) 100%);
}
.ad-paso { position: relative; }
.ad-paso__num {
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: Sora, sans-serif; font-weight: 700; font-size: 17px;
	background: #1468DF; color: #fff; border: 1px solid rgba(255, 255, 255, .38);
	margin-bottom: 26px !important;
	transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.ad-paso.is-activo .ad-paso__num,
.ad-paso:hover .ad-paso__num {
	background: #fff; color: var(--ad-azul); border-color: #fff;
	box-shadow: 0 0 0 6px rgba(54, 188, 252, .35), 0 12px 30px -10px rgba(0, 0, 0, .35);
}
.ad-paso__title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 0; margin-bottom: 10px !important; }
.ad-paso__text { font-size: 15px; line-height: 1.6; color: #DCE9FF; }

/* --------------------------------------------------------------------------
   Sectores
   -------------------------------------------------------------------------- */
.ad-sectores__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.ad-sectores__texto { flex: 1 1 360px; min-width: 0; }
.ad-sectores__texto .ad-h2 { margin-bottom: 18px !important; }
.ad-sectores__lista { flex: 1 1 540px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ad-sector {
	padding: 20px 22px; border-radius: 18px; font-weight: 700;
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .12);
	transition: border-color .3s ease, transform .3s var(--ad-ease);
}
.ad-sector:hover { border-color: rgba(54, 188, 252, .45); transform: translateY(-2px); }
.ad-sector--destacado { background: linear-gradient(135deg, rgba(11, 101, 225, .55), rgba(54, 188, 252, .30)); border-color: rgba(54, 188, 252, .55); }

/* --------------------------------------------------------------------------
   Llamada a la acción final
   -------------------------------------------------------------------------- */
.ad-cta__card {
	position: relative; overflow: hidden; isolation: isolate;
	border-radius: 32px; padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 56px);
	text-align: center; color: #fff;
	background: linear-gradient(125deg, var(--ad-marino) 0%, var(--ad-azul-oscuro) 55%, var(--ad-azul) 80%, var(--ad-cian) 130%);
	box-shadow: 0 40px 80px -40px rgba(10, 40, 100, .6);
}
.ad-cta__card::before,
.ad-cta__card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.ad-cta__card::before { width: 520px; height: 520px; left: -180px; top: -260px; border: 1px solid rgba(54, 188, 252, .35); box-shadow: 0 0 0 90px rgba(255, 255, 255, .025); }
.ad-cta__card::after { width: 420px; height: 420px; right: -160px; bottom: -220px; background: radial-gradient(circle, rgba(54, 188, 252, .45), rgba(54, 188, 252, 0) 70%); }
.ad-cta__title { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.875rem); line-height: 1.1; margin-bottom: 18px !important; }
.ad-cta__text { max-width: 640px; margin-inline: auto !important; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.6; color: #DCE9FF; margin-bottom: 36px !important; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.ad-footer { position: relative; background: var(--ad-marino-pie); color: #A9B7CF; padding: 80px 0 32px; font-size: 14px; }
.ad-footer::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
	background: linear-gradient(90deg, rgba(54, 188, 252, 0), rgba(54, 188, 252, .9), rgba(54, 188, 252, 0));
}
.ad-footer a { color: #A9B7CF; text-decoration: none; transition: color .2s ease; }
.ad-footer a:hover { color: #fff; text-decoration: none; }
.ad-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px; margin-bottom: 56px; }
.ad-footer__marca { max-width: 320px; }
@media (max-width: 1099px) { .ad-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-footer__marca { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ad-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.ad-footer__marca p { margin: 18px 0 0; line-height: 1.6; }
.ad-footer__col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; }
.ad-footer__titulo { color: #fff; font-weight: 700; margin: 0 0 4px !important; }
.ad-footer__legal { border-top: 1px solid rgba(255, 255, 255, .10); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.ad-footer__legal-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* --------------------------------------------------------------------------
   Páginas interiores (Contacto y siguientes)
   -------------------------------------------------------------------------- */
.ad-page { padding-block: clamp(56px, 8vw, 96px) clamp(72px, 9vw, 120px); }
.ad-page__title { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.25rem); margin-bottom: 20px; }
.ad-contacto { display: flex; flex-direction: column; gap: 28px; }
.ad-aviso {
	position: relative; overflow: hidden;
	padding: 28px 30px; border-radius: 22px;
	background: linear-gradient(135deg, var(--ad-marino), var(--ad-azul-oscuro)); color: #DCE9FF;
	box-shadow: var(--ad-sombra-card);
}
.ad-aviso__title { color: #fff; font-size: 1.25rem; margin-bottom: 8px !important; }
.ad-lista { padding-left: 1.2em; display: grid; gap: 8px; color: var(--ad-texto-2); }
.ad-lista li::marker { color: var(--ad-azul); }

/* --------------------------------------------------------------------------
   Animación de aparición al desplazarse (solo con JS y sin «reducir movimiento»)
   -------------------------------------------------------------------------- */
.js .ad-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ad-ease); }
.js .ad-reveal.is-visible { opacity: 1; transform: none; }
/* El hero se ve desde el primer instante (mejor LCP); solo la esfera flota */
.js .ad-hero .ad-reveal { opacity: 1; transform: none; transition: none; }
.ad-grid > .ad-reveal:nth-child(2), .ad-pasos > .ad-reveal:nth-child(2), .ad-sectores__lista > .ad-reveal:nth-child(2) { transition-delay: .06s; }
.ad-grid > .ad-reveal:nth-child(3), .ad-pasos > .ad-reveal:nth-child(3), .ad-sectores__lista > .ad-reveal:nth-child(3) { transition-delay: .12s; }
.ad-grid > .ad-reveal:nth-child(4), .ad-pasos > .ad-reveal:nth-child(4), .ad-sectores__lista > .ad-reveal:nth-child(4) { transition-delay: .18s; }
.ad-grid > .ad-reveal:nth-child(5), .ad-sectores__lista > .ad-reveal:nth-child(5) { transition-delay: .24s; }
.ad-grid > .ad-reveal:nth-child(6), .ad-sectores__lista > .ad-reveal:nth-child(6) { transition-delay: .30s; }
.ad-sectores__lista > .ad-reveal:nth-child(n+7) { transition-delay: .36s; }
/* Al pasar el ratón, la tarjeta responde sin esperar al retardo de aparición */
.ad-card.is-visible:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .ad-reveal { opacity: 1; transform: none; transition: none; }
	.ad-hero__visual { animation: none; }
	.ad-card, .ad-card:hover, .ad-sector:hover, .ad-btn .wp-block-button__link:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1099px) {
	.ad-hero {
		display: block; min-height: 0; padding: calc(var(--ad-header-h) + 48px) 0 0;
		background:
			radial-gradient(circle at 50% 80%, rgba(54, 188, 252, .26), rgba(54, 188, 252, 0) 38%),
			linear-gradient(170deg, #F7FAFF 0%, #E6F0FE 70%, #DCEAFD 100%);
	}
	.ad-hero__content { max-width: 640px; }
	.ad-hero__visual {
		position: relative; top: auto; right: auto; transform: none; animation: none;
		width: min(100%, 560px); aspect-ratio: 900 / 842;
		margin: 16px auto 0 !important;
		background: var(--ad-hero-m600) center / cover no-repeat;
		-webkit-mask-image: radial-gradient(closest-side, #000 88%, transparent 100%);
		mask-image: radial-gradient(closest-side, #000 88%, transparent 100%);
	}
	.ad-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ad-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ad-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.ad-pasos::before { display: none; }
}
@media (max-width: 1099px) and (min-resolution: 1.5dppx) {
	.ad-hero__visual { background-image: var(--ad-hero-m900); }
}
@media (max-width: 1099px) and (min-width: 600px) {
	body .wp-block-buttons.ad-header__cta { display: none; }
	.ad-nav__solo-movil { display: flex !important; }
}

/* --------------------------------------------------------------------------
   Móvil
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
	:root { --ad-header-h: 68px; }
	.ad-wrap { padding-inline: 20px; }
	.ad-logo__img { width: 32px; height: 32px; }
	.ad-logo__name { font-size: 18px; }
	.ad-logo__tag { font-size: 8px; margin-top: 3px; }
	.ad-hero { padding-top: calc(var(--ad-header-h) + 52px); }
	.ad-hero .wp-block-buttons.ad-actions { flex-direction: column; }
	.ad-hero .ad-btn .wp-block-button__link { width: 100%; justify-content: center; box-sizing: border-box; }
	.ad-hero .ad-actions .wp-block-button { width: 100%; }
	.ad-chips { display: none; }
	.ad-head { margin-bottom: 32px !important; }
	.ad-grid--5, .ad-grid--3 { grid-template-columns: 1fr; gap: 12px; }
	.ad-card--cristal { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 18px; }
	.ad-card--cristal .ad-icon { grid-row: span 2; margin-bottom: 0 !important; }
	.ad-card--servicio { padding: 24px; }
	.ad-pasos { grid-template-columns: 1fr; row-gap: 28px; }
	.ad-pasos::before { display: block; left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--ad-cian), rgba(255, 255, 255, .2)); }
	.ad-paso { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
	.ad-paso__num { grid-row: span 2; margin-bottom: 0 !important; }
	.ad-sectores__inner { gap: 32px; }
	.ad-sectores__lista { gap: 10px; }
	.ad-sector { padding: 16px; font-size: 14px; }
	.ad-cta .wp-block-buttons.ad-actions { flex-direction: column; }
	.ad-cta .ad-btn .wp-block-button__link { width: 100%; justify-content: center; box-sizing: border-box; }
	.ad-cta .ad-actions .wp-block-button { width: 100%; }
	.ad-footer { padding-top: 56px; }
	.ad-footer__grid { gap: 32px; }
}
@media (max-width: 599px) {
	body .wp-block-buttons.ad-header__cta { display: none; }
}
