/*!
 * ADP Sitio — capa visual del sitio de automatización y dsPIC.
 * Solo afecta a elementos con clases "adp-*"; el resto del tema queda intacto.
 * Sin dependencias externas ni fuentes remotas (rendimiento y privacidad).
 */

:root {
	--adp-azul: #0b3d91;
	--adp-azul-2: #0369a1;
	--adp-cian: #00a6d6;
	--adp-cian-claro: #e0f2fe;
	--adp-oscuro: #0f172a;
	--adp-texto: #334155;
	--adp-suave: #64748b;
	--adp-claro: #f1f5f9;
	--adp-borde: #e2e8f0;
	--adp-radio: 16px;
	--adp-sombra: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
	--adp-sombra-hover: 0 4px 8px rgba(15, 23, 42, .08), 0 20px 40px rgba(11, 61, 145, .14);
	--adp-transicion: 220ms cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Secciones ---------- */
.adp-seccion > * { max-width: 1120px; }
.adp-seccion h2,
.adp-ficha h2 { color: var(--adp-oscuro); letter-spacing: -.02em; line-height: 1.2; }
.adp-seccion h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin-top: 0; }
.adp-seccion p { color: var(--adp-texto); }
.adp-seccion a:not(.wp-element-button) { color: var(--adp-azul-2); text-underline-offset: 3px; }

.adp-eyebrow {
	font-size: .8rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--adp-cian) !important;
	margin-bottom: .5rem !important;
}
.adp-lead {
	font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
	color: var(--adp-suave);
	max-width: 720px;
	margin-inline: auto;
}
.adp-ficha .adp-lead { margin-inline: 0; color: var(--adp-texto); }
.adp-seccion .wp-block-columns { margin-top: 2.5rem; gap: 1.5rem; }

/* ---------- Portada (hero) ---------- */
.adp-hero {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(0, 166, 214, .45), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .12), transparent 40%),
		linear-gradient(135deg, var(--adp-azul) 0%, var(--adp-azul-2) 60%, var(--adp-cian) 100%);
}
/* Rejilla tipo PCB, decorativa */
.adp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	pointer-events: none;
}
.adp-hero > * { position: relative; }
.adp-hero h1 {
	color: #fff;
	font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
	line-height: 1.1;
	letter-spacing: -.03em;
	max-width: 880px;
	margin-inline: auto;
}
.adp-hero .adp-eyebrow { color: #bae6fd !important; }
.adp-hero .adp-lead { color: #e0f2fe; }
.adp-hero .wp-block-buttons { margin-top: 2rem; }

/* ---------- Botones ---------- */
.adp-hero .wp-block-button__link,
.adp-cta .wp-block-button__link,
.adp-seccion .wp-block-button__link {
	border-radius: 999px;
	padding: .85em 1.6em;
	font-weight: 600;
	transition: transform var(--adp-transicion), box-shadow var(--adp-transicion), background-color var(--adp-transicion);
}
.adp-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.adp-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #fff;
	color: var(--adp-azul);
}
.adp-hero .is-style-outline .wp-block-button__link,
.adp-cta .is-style-outline .wp-block-button__link {
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .8);
	background: transparent;
}
.adp-seccion .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--adp-azul); color: #fff; }
.adp-seccion .is-style-outline .wp-block-button__link { color: var(--adp-azul); border: 2px solid var(--adp-azul); background: transparent; }
.adp-hero .wp-block-button__link:hover,
.adp-cta .wp-block-button__link:hover,
.adp-seccion .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* ---------- Cifras ---------- */
.adp-banda-stats { background: var(--adp-oscuro); }
.adp-stats { gap: 1.5rem !important; }
.adp-stat { text-align: center; }
.adp-stat-num {
	font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem) !important;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 !important;
	background: linear-gradient(90deg, #7dd3fc, #fff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}
.adp-stat-label { color: #cbd5e1 !important; font-size: .95rem; margin-top: .35rem !important; }

/* ---------- Tarjetas ---------- */
.adp-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--adp-borde);
	border-radius: var(--adp-radio);
	padding: 28px !important;
	box-shadow: var(--adp-sombra);
	transition: transform var(--adp-transicion), box-shadow var(--adp-transicion), border-color var(--adp-transicion);
}
.adp-card:hover { transform: translateY(-4px); box-shadow: var(--adp-sombra-hover); border-color: #bae6fd; }
.adp-card h3 { margin-top: 0; font-size: 1.2rem; color: var(--adp-oscuro); }
.adp-card p:last-child { margin-bottom: 0; }
.adp-form:hover { transform: none; }

/* Icono: baldosa (::before) + trazo SVG enmascarado (::after) */
.adp-card[class*="adp-i-"] { padding-top: 96px !important; }
.adp-card[class*="adp-i-"]::before {
	content: "";
	position: absolute;
	top: 28px;
	left: 28px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--adp-cian-claro), #dbeafe);
}
.adp-card[class*="adp-i-"]::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 40px;
	width: 24px;
	height: 24px;
	background-color: var(--adp-azul);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* ---------- Listas ---------- */
.adp-check { list-style: none; padding-left: 0 !important; }
.adp-check li {
	position: relative;
	padding: .55rem 0 .55rem 2rem;
	border-bottom: 1px solid var(--adp-borde);
	color: var(--adp-texto);
}
.adp-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .8rem;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--adp-cian-claro);
	box-shadow: inset 0 0 0 5px var(--adp-cian-claro), inset 0 0 0 9px var(--adp-cian);
}

.adp-seccion .adp-pasos { counter-reset: adp-paso; list-style: none; padding-left: 0 !important; max-width: 760px; margin: 2.5rem auto 0 !important; }
.adp-pasos li {
	counter-increment: adp-paso;
	position: relative;
	padding: 0 0 1.75rem 4rem;
	color: var(--adp-texto);
}
.adp-pasos li::before {
	content: counter(adp-paso);
	position: absolute;
	left: 0;
	top: -.2rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--adp-azul), var(--adp-cian));
}
.adp-pasos li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 1.2rem;
	top: 2.5rem;
	bottom: .2rem;
	width: 2px;
	background: var(--adp-borde);
}
.adp-pasos strong { color: var(--adp-oscuro); }

.adp-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.adp-chips li {
	background: var(--adp-cian-claro);
	color: var(--adp-azul);
	font-size: .85rem;
	font-weight: 600;
	padding: .3rem .85rem;
	border-radius: 999px;
}

/* ---------- Preguntas frecuentes ---------- */
.adp-faq {
	max-width: 820px;
	margin: 0 auto 1rem !important;
	background: #fff;
	border: 1px solid var(--adp-borde);
	border-radius: 12px;
	padding: 1rem 1.25rem;
}
.adp-faq summary { cursor: pointer; font-weight: 600; color: var(--adp-oscuro); }
.adp-faq[open] { border-color: #bae6fd; box-shadow: var(--adp-sombra); }
.adp-faq p { margin: .75rem 0 0; color: var(--adp-texto); }
.adp-seccion .adp-faq:first-of-type { margin-top: 2.5rem !important; }

/* ---------- Rejilla de proyectos (bloque Consulta) ---------- */
.adp-proyectos-grid { margin-top: 2.5rem; }
.adp-proyectos-grid .wp-block-post-template { gap: 1.5rem; }
.adp-proyectos-grid .wp-block-post {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--adp-borde);
	border-radius: var(--adp-radio);
	overflow: hidden;
	box-shadow: var(--adp-sombra);
	transition: transform var(--adp-transicion), box-shadow var(--adp-transicion);
}
.adp-proyectos-grid .wp-block-post:hover { transform: translateY(-4px); box-shadow: var(--adp-sombra-hover); }
.adp-proyectos-grid .wp-block-post-featured-image { margin: 0; background: linear-gradient(135deg, var(--adp-azul), var(--adp-cian)); aspect-ratio: 16 / 9; }
.adp-proyectos-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.adp-proyectos-grid .wp-block-post > :not(.wp-block-post-featured-image) { padding-inline: 1.25rem; }
.adp-proyectos-grid .wp-block-post-title { font-size: 1.15rem; margin: .25rem 0 .5rem; }
.adp-proyectos-grid .wp-block-post-title a { color: var(--adp-oscuro); text-decoration: none; }
.adp-proyectos-grid .wp-block-post-excerpt { color: var(--adp-texto); padding-bottom: 1.25rem; }
.adp-proyectos-grid .wp-block-post-excerpt__more-link { font-weight: 600; color: var(--adp-azul-2); }
.adp-terms { margin-top: 1rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.adp-terms a { color: var(--adp-cian); text-decoration: none; }

/* ---------- Ficha de proyecto ---------- */
.adp-ficha h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.adp-ficha h3 { margin-top: 2rem; }
.adp-tabla table { border-collapse: collapse; width: 100%; border-radius: 12px; overflow: hidden; }
.adp-tabla th { background: var(--adp-azul); color: #fff; text-align: left; }
.adp-tabla th,
.adp-tabla td { padding: .7rem 1rem; border: 1px solid var(--adp-borde); }
.adp-tabla tbody tr:nth-child(even) { background: var(--adp-claro); }
.adp-cta-ficha { border-radius: var(--adp-radio); margin-top: 3rem !important; }

/* ---------- Llamado a la acción ---------- */
.adp-cta {
	background-image:
		radial-gradient(circle at 80% 0%, rgba(0, 166, 214, .35), transparent 50%),
		linear-gradient(180deg, var(--adp-oscuro), #111c33);
}
.adp-cta h2,
.adp-cta h3 { color: #fff; }
.adp-cta .adp-lead,
.adp-cta p { color: #cbd5e1; }

.adp-nota { font-size: .9rem; color: var(--adp-suave) !important; }

/* ---------- Accesibilidad ---------- */
.adp-hero a:focus-visible,
.adp-cta a:focus-visible,
.adp-seccion a:focus-visible,
.adp-ficha a:focus-visible,
.adp-faq summary:focus-visible {
	outline: 3px solid var(--adp-cian);
	outline-offset: 3px;
	border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
	.adp-card,
	.adp-proyectos-grid .wp-block-post,
	.adp-hero .wp-block-button__link,
	.adp-cta .wp-block-button__link,
	.adp-seccion .wp-block-button__link { transition: none; }
	.adp-card:hover,
	.adp-proyectos-grid .wp-block-post:hover,
	.adp-hero .wp-block-button__link:hover,
	.adp-cta .wp-block-button__link:hover,
	.adp-seccion .wp-block-button__link:hover { transform: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 781px) {
	.adp-hero { padding-top: 64px !important; padding-bottom: 64px !important; }
	.adp-seccion { padding-top: 56px !important; padding-bottom: 56px !important; }
	.adp-stats { display: grid !important; grid-template-columns: 1fr 1fr; }
}

/* ---------- Iconos (generados) ---------- */
.adp-i-chip::after{-webkit-mask-image: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='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E");mask-image: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='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E")}
.adp-i-control::after{-webkit-mask-image: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 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");mask-image: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 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E")}
.adp-i-red::after{-webkit-mask-image: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='5' r='2'/%3E%3Ccircle cx='5' cy='19' r='2'/%3E%3Ccircle cx='19' cy='19' r='2'/%3E%3Cpath d='M12 7v5M12 12l-5.5 5.5M12 12l5.5 5.5'/%3E%3C/svg%3E");mask-image: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='5' r='2'/%3E%3Ccircle cx='5' cy='19' r='2'/%3E%3Ccircle cx='19' cy='19' r='2'/%3E%3Cpath d='M12 7v5M12 12l-5.5 5.5M12 12l5.5 5.5'/%3E%3C/svg%3E")}
.adp-i-senal::after{-webkit-mask-image: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='M2 12h4l3-8 5 16 3-8h5'/%3E%3C/svg%3E");mask-image: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='M2 12h4l3-8 5 16 3-8h5'/%3E%3C/svg%3E")}
.adp-i-escudo::after{-webkit-mask-image: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 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");mask-image: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 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E")}
.adp-i-reloj::after{-webkit-mask-image: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 3'/%3E%3C/svg%3E");mask-image: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 3'/%3E%3C/svg%3E")}
.adp-i-herramienta::after{-webkit-mask-image: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='M8 8l-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14'/%3E%3C/svg%3E");mask-image: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='M8 8l-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14'/%3E%3C/svg%3E")}
.adp-i-medidor::after{-webkit-mask-image: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 18a8 8 0 1 1 16 0'/%3E%3Cpath d='M12 18l4-6'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E");mask-image: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 18a8 8 0 1 1 16 0'/%3E%3Cpath d='M12 18l4-6'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E")}
