/* =========================================================
   AdsNet Diseño — estilos
   Paleta, tipografía (Poppins local) y secciones.
   ========================================================= */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
	--an-noche: #070A24;
	--an-azul: #0E1350;
	--an-azul-2: #1A2096;
	--an-indigo: #2E35C9;
	--an-indigo-osc: #1F258F;
	--an-tinte: #E9EAFB;
	--an-fondo: #F5F6FA;
	--an-tinta: #151833;
	--an-gris: #545A75;
	--an-linea: #D5D8E8;
	--an-claro: #C9CDEE;
	--an-claro-2: #A9AEDD;
	--an-borde-osc: #2E3478;
	--an-wa: #25D366;
	--an-wa-hover: #1EBE5A;
	--an-degradado: linear-gradient(165deg, #070A24 0%, #0E1350 55%, #1A2096 100%);
	--an-fuente: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base de la plantilla ---------- */
body.an-page {
	margin: 0;
	background: var(--an-fondo);
	color: var(--an-tinta);
	font-family: var(--an-fuente);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.an-page *, body.an-page *::before, body.an-page *::after { box-sizing: border-box; }
.an-main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.an-main img { max-width: 100%; height: auto; }

.an-saltar {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: #fff; color: var(--an-tinta); padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.an-saltar:focus { top: 16px; }

body.an-page a:focus-visible,
body.an-page button:focus-visible,
body.an-page summary:focus-visible,
body.an-page input:focus-visible,
body.an-page select:focus-visible,
body.an-page textarea:focus-visible {
	outline: 3px solid var(--an-indigo);
	outline-offset: 3px;
}
.an-header a:focus-visible, .an-header button:focus-visible,
.an-hero a:focus-visible, .an-oscuro a:focus-visible, .an-footer a:focus-visible {
	outline-color: #fff !important;
}

/* ---------- Secciones ---------- */
.an-sec {
	font-family: var(--an-fuente);
	padding: clamp(72px, 9vw, 112px) 24px;
	margin: 0;
	background: var(--an-fondo);
	color: var(--an-tinta);
	line-height: 1.65;
}
.an-sec.an-blanco { background: #fff; }
.an-sec.an-hero,
.an-sec.an-oscuro { background: var(--an-degradado); color: #fff; }

.an-wrap { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.an-sec .wp-block-columns { margin-bottom: 0; gap: 40px; }
.an-sec .an-gap-xl { gap: clamp(40px, 6vw, 80px); }
.an-sec p { margin-top: 0; }

.an-sec h1, .an-sec h2, .an-sec h3 { font-family: var(--an-fuente); color: inherit; margin-top: 0; }

.an-h1 {
	font-size: clamp(38px, 5.2vw, 64px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin: 0 0 22px;
}
.an-h2 {
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
}
.an-texto-sec { color: var(--an-gris); max-width: 58ch; margin-bottom: 16px; }
.an-oscuro .an-texto-sec { color: var(--an-claro); }
.an-ancho-titulo { max-width: 760px; }
.an-centrado { margin-left: auto !important; margin-right: auto !important; max-width: 720px; }
.an-sec a { color: var(--an-indigo); }
.an-sec a:hover { color: var(--an-indigo-osc); }
.an-oscuro a, .an-hero a { color: #fff; }

/* ---------- Botones (estilos de bloque) ---------- */
.wp-block-button[class*="is-style-an-"] .wp-block-button__link.wp-element-button {
	font-family: var(--an-fuente);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.wp-block-button.is-style-an-whatsapp .wp-block-button__link.wp-element-button { background: var(--an-wa); color: #0B1035; }
.wp-block-button.is-style-an-whatsapp .wp-block-button__link.wp-element-button:hover { background: var(--an-wa-hover); color: #0B1035; }
.wp-block-button.is-style-an-whatsapp .wp-block-button__link.wp-element-button::before {
	content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm4.52 11.99c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.13-.17.25-.64.81-.78.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.02-.38.11-.51.11-.11.25-.29.37-.43.13-.15.17-.25.25-.42.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.43.06-.66.31-.22.25-.86.85-.86 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.67-1.18.21-.58.21-1.07.14-1.18-.06-.1-.22-.16-.47-.28Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm4.52 11.99c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.13-.17.25-.64.81-.78.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.02-.38.11-.51.11-.11.25-.29.37-.43.13-.15.17-.25.25-.42.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.43.06-.66.31-.22.25-.86.85-.86 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.67-1.18.21-.58.21-1.07.14-1.18-.06-.1-.22-.16-.47-.28Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.is-style-an-primario .wp-block-button__link.wp-element-button { background: var(--an-indigo); color: #fff; }
.wp-block-button.is-style-an-primario .wp-block-button__link.wp-element-button:hover { background: var(--an-indigo-osc); color: #fff; }
.wp-block-button.is-style-an-borde .wp-block-button__link.wp-element-button { background: transparent; color: #fff; border-color: #5B61C2; }
.wp-block-button.is-style-an-borde .wp-block-button__link.wp-element-button:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.wp-block-button.is-style-an-borde-oscuro .wp-block-button__link.wp-element-button { background: transparent; color: var(--an-tinta); border-color: var(--an-tinta); }
.wp-block-button.is-style-an-borde-oscuro .wp-block-button__link.wp-element-button:hover { background: var(--an-tinta); color: #fff; }
.an-sec .wp-block-buttons { gap: 12px; margin-top: 8px; }

/* ---------- Hero ---------- */
.an-sec.an-hero { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.an-hero .an-expertos { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: #fff; margin: 0 0 14px; min-height: 1.6em; }
.an-typed { color: var(--an-wa); }
.an-typed::after { content: "|"; margin-left: 2px; font-weight: 400; color: #fff; animation: an-parpadeo 1s steps(1) infinite; }
@keyframes an-parpadeo { 50% { opacity: 0; } }
.an-hero .an-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--an-claro); max-width: 40ch; margin-bottom: 28px; }
.an-hero .an-tecnologias { margin: 28px 0 0; font-size: 14px; color: var(--an-claro-2); }
.an-hero-img { margin: 0; }
.an-hero-img img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }

/* ---------- Franja de datos ---------- */
.an-sec.an-datos { background: #fff; padding: 36px 24px; border-bottom: 1px solid #E2E4EF; }
.an-dato-num { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--an-indigo); }
.an-dato-txt { margin: 2px 0 0; font-size: 15px; color: var(--an-gris); }

/* Rejilla de 4 que pasa a 2 en tablet y a 1 en celular */
.an-sec .wp-block-columns.an-grid-4 { flex-wrap: wrap !important; }
.an-sec .wp-block-columns.an-grid-4 > .wp-block-column { flex: 1 1 220px !important; min-width: 0; }

/* ---------- Servicios en lista ---------- */
.an-lista { border-top: 1px solid var(--an-linea); }
.an-fila {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	grid-template-areas: "ico tit precio" "ico desc precio";
	column-gap: 22px;
	row-gap: 2px;
	align-items: center;
	padding: 24px 0;
	border-bottom: 1px solid var(--an-linea);
}
.an-fila > * { margin: 0 !important; }
.an-fila::before {
	content: "";
	grid-area: ico;
	width: 52px; height: 52px; border-radius: 14px;
	background: var(--an-tinte) center / 24px 24px no-repeat;
}
.an-ico-web::before    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9h18M8 21h8'/%3E%3C/svg%3E"); }
.an-ico-medida::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5 9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.an-ico-tienda::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.4a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L22 7H6'/%3E%3C/svg%3E"); }
.an-ico-seo::before    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E"); }
.an-ico-redes::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E"); }
.an-ico-mant::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4 2.5-2.5z'/%3E%3C/svg%3E"); }
.an-fila-titulo { grid-area: tit; font-size: 20px; font-weight: 600; line-height: 1.3; }
.an-sec .an-fila-titulo a { color: var(--an-tinta); text-decoration: none; }
.an-sec .an-fila-titulo a::after { content: ""; position: absolute; inset: 0; }
.an-sec .an-fila:hover .an-fila-titulo a { color: var(--an-indigo); }
.an-fila-desc { grid-area: desc; font-size: 15px; color: var(--an-gris); }
.an-fila-precio { grid-area: precio; font-weight: 600; color: var(--an-indigo); white-space: nowrap; }
.an-sectores { margin: 24px 0 0; font-size: 15px; color: var(--an-gris); }
.an-img-suave { margin: 28px 0 0; }
.an-img-suave img { width: 100%; max-width: 400px; height: auto; border-radius: 24px; background: #fff; }

/* ---------- Portafolio ---------- */
.an-sec .wp-block-columns.an-encabezado { margin-bottom: 44px; align-items: flex-end; }
.an-encabezado .an-h2 { margin-bottom: 12px; }
.an-encabezado .an-texto-sec { margin-bottom: 0; }
.an-alinear-derecha .wp-block-buttons { justify-content: flex-end; margin-top: 0; }
.an-sec .an-proyectos { gap: 24px; }
.an-proyecto { margin: 0; }
.an-proyecto img {
	display: block;
	width: 100%;
	height: 440px;
	object-fit: cover;
	object-position: top center;
	border-radius: 18px;
	border: 1px solid #E2E4EF;
	background: #fff;
	transition: object-position 3.5s ease-in-out;
}
.an-proyecto:hover img { object-position: bottom center; }
.an-proyecto .wp-element-caption { margin: 14px 0 0; text-align: left; font-size: 17px; font-weight: 600; color: var(--an-tinta); }

/* ---------- Ventajas ---------- */
.an-sec .an-ventajas { gap: 48px; margin-top: 44px; }
.an-ventaja { position: relative; padding-left: 44px; }
.an-ventaja::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 28px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.an-ventaja h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.an-ventaja p { margin: 0; font-size: 16px; color: var(--an-gris); }

/* ---------- Proceso ---------- */
.an-sec .an-pasos { counter-reset: an-paso; gap: 40px; margin-top: 48px; }
.an-paso { counter-increment: an-paso; }
.an-paso::before {
	content: counter(an-paso);
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 18px;
	border-radius: 50%;
	background: var(--an-indigo); color: #fff;
	font-size: 20px; font-weight: 700;
}
.an-paso h3 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.an-paso p { margin: 0; font-size: 16px; color: var(--an-gris); }

/* ---------- Video ---------- */
.an-video { margin: 0; }
.an-video video { display: block; width: 100%; max-height: 640px; border-radius: 20px; background: #000; }
.an-video .wp-element-caption { margin-top: 12px; font-size: 14px; color: var(--an-claro-2); text-align: left; }

/* ---------- Planes ---------- */
.an-sec .an-planes { gap: 20px; margin-top: 52px; align-items: stretch; }
.an-plan {
	display: flex; flex-direction: column;
	padding: 36px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--an-borde-osc);
}
.an-plan h3 { font-size: 23px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.an-plan .an-plan-desc { margin: 0; font-size: 15px; color: var(--an-claro); }
.an-plan .an-precio { margin: 24px 0 0; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.an-plan .an-plazo { margin: 4px 0 24px; font-size: 14px; color: var(--an-claro-2); }
.an-check { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; font-size: 15px; line-height: 1.5; color: #E3E5F8; }
.an-check li { position: relative; padding-left: 30px; margin: 0; }
.an-check li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325D366' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.an-plan .an-plan-boton { margin-top: auto; }
.an-plan .an-plan-boton .wp-block-button { width: 100%; }
.an-plan .an-plan-boton .wp-block-button__link { width: 100%; }

.an-plan.an-plan-destacado { background: #fff; color: var(--an-tinta); border-color: #fff; }
.an-plan-destacado h3::after {
	content: "El más pedido";
	display: inline-block; vertical-align: middle;
	margin-left: 10px; padding: 3px 10px; border-radius: 8px;
	background: var(--an-tinte); color: var(--an-indigo);
	font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.an-plan-destacado .an-plan-desc, .an-plan-destacado .an-plazo { color: var(--an-gris); }
.an-plan-destacado .an-check { color: var(--an-tinta); }
.an-plan-destacado .an-check li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.an-nota-planes { margin: 32px 0 0; font-size: 15px; color: var(--an-claro); }
.an-sec .an-nota-planes a { color: #fff; font-weight: 600; }

/* ---------- Preguntas frecuentes ---------- */
.an-faq { border-top: 1px solid var(--an-linea); }
.an-faq .wp-block-details { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--an-linea); }
.an-faq summary {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
	cursor: pointer; list-style: none;
	font-size: 18px; font-weight: 600; line-height: 1.4;
}
.an-faq summary::-webkit-details-marker { display: none; }
.an-faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--an-indigo); }
.an-faq details[open] summary::after { content: "\2212"; }
.an-faq details p { margin: 12px 0 0; color: var(--an-gris); max-width: 64ch; }

/* ---------- Contacto ---------- */
.an-datos-contacto { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.an-datos-contacto li {
	position: relative; margin: 0; padding-left: 64px; min-height: 48px;
	display: flex; flex-direction: column; justify-content: center;
	font-size: 14px; line-height: 1.45; color: var(--an-gris);
}
.an-datos-contacto li strong { font-size: 16px; color: var(--an-tinta); }
.an-sec .an-datos-contacto a { text-decoration: none; }
.an-datos-contacto li::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 12px;
	background: var(--an-tinte) center / 22px 22px no-repeat;
}
.an-datos-contacto .an-c-wa::before { background-color: var(--an-wa); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1035' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.1-5.6A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E"); }
.an-datos-contacto .an-c-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.an-datos-contacto .an-c-lugar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }

/* ---------- Formulario a WhatsApp ---------- */
.an-form {
	font-family: var(--an-fuente);
	display: grid; gap: 16px;
	padding: clamp(24px, 4vw, 36px);
	border-radius: 24px;
	background: var(--an-fondo);
	border: 1px solid #E2E4EF;
}
.an-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--an-tinta); }
.an-form input, .an-form select, .an-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid #C5C9DC; border-radius: 10px; background: #fff;
	font: inherit; font-size: 16px; font-weight: 400; color: var(--an-tinta);
	box-sizing: border-box;
}
.an-form textarea { resize: vertical; min-height: 110px; }
.an-form-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.an-form-boton {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; border: 0; border-radius: 12px;
	background: var(--an-wa); color: #0B1035;
	font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.an-form-boton:hover { background: var(--an-wa-hover); }
.an-form-nota { margin: 0; font-size: 13px; color: var(--an-gris); text-align: center; }
.an-form-error { margin: 0; font-size: 14px; color: #B42318; }

/* ---------- Encabezado ---------- */
.an-header { position: relative; z-index: 50; background: var(--an-noche); color: #fff; font-family: var(--an-fuente); }
.an-header-in { max-width: 1248px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.an-logo { display: flex; flex: none; }
.an-logo img { display: block; height: 48px; width: auto; }
.an-nav { margin-left: auto; }
.an-menu-btn { display: none; }
.an-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.an-menu li { position: relative; margin: 0; }
.an-menu a { display: block; padding: 10px 0; color: #D9DCF5; text-decoration: none; font-size: 15px; font-weight: 500; }
.an-menu a:hover, .an-menu .current-menu-item > a { color: #fff; }
.an-menu .menu-item-has-children > a { padding-right: 16px; }
.an-menu .menu-item-has-children > a::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.an-menu .sub-menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 280px;
	list-style: none; margin: 0; padding: 10px;
	background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(7, 10, 36, .28);
}
.an-menu li:hover > .sub-menu, .an-menu li:focus-within > .sub-menu { display: block; }
.an-menu .sub-menu a { padding: 10px 12px; border-radius: 8px; color: var(--an-tinta); font-size: 14px; }
.an-menu .sub-menu a:hover { background: var(--an-tinte); color: var(--an-indigo); }
.an-menu .sub-menu .menu-item-has-children > a::after { display: none; }
.an-header-cta {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 12px;
	background: var(--an-wa); color: #0B1035 !important; font-size: 15px; font-weight: 600; text-decoration: none;
}
.an-header-cta:hover { background: var(--an-wa-hover); }

@media (max-width: 1000px) {
	.an-header-in { flex-wrap: wrap; }
	.an-nav { order: 3; margin-left: 0; flex-basis: 100%; }
	.an-menu-btn {
		order: 2; margin-left: 0;
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; padding: 0;
		border: 1px solid var(--an-borde-osc); border-radius: 12px;
		background: transparent; color: #fff; cursor: pointer;
	}
	.an-header-cta { order: 1; margin-left: auto; }
	.an-nav { display: none; }
	.an-header.an-nav-abierta .an-nav { display: block; }
	.an-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
	.an-menu > li { border-top: 1px solid #1C2160; }
	.an-menu a { padding: 14px 0; font-size: 16px; }
	.an-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 8px 16px; background: transparent; box-shadow: none; }
	.an-menu .sub-menu a { color: var(--an-claro-2); padding: 10px 0; }
	.an-menu .sub-menu a:hover { background: transparent; color: #fff; }
	.an-menu .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 520px) {
	.an-logo img { height: 40px; }
	.an-header-cta { padding: 0 14px; font-size: 0; gap: 0; }
	.an-header-cta svg { width: 22px; height: 22px; }
}

/* ---------- Pie de página ---------- */
.an-footer { background: var(--an-noche); color: var(--an-claro-2); font-family: var(--an-fuente); font-size: 15px; line-height: 1.6; padding: 72px 24px 28px; }
.an-footer-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.an-footer a { color: var(--an-claro-2); text-decoration: none; }
.an-footer a:hover { color: #fff; }
.an-footer-marca img { display: block; height: 52px; width: auto; margin-bottom: 16px; }
.an-footer-marca p { margin: 0 0 20px; max-width: 34ch; }
.an-redes { display: flex; gap: 10px; }
.an-redes a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--an-borde-osc); border-radius: 12px; color: #fff; }
.an-redes a:hover { border-color: #fff; }
.an-footer-col { display: flex; flex-direction: column; gap: 10px; }
.an-footer-titulo { margin: 0 0 4px; color: #fff; font-weight: 600; }
.an-footer-base { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #1C2160; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.an-footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 900px) {
	.an-footer-in { grid-template-columns: 1fr 1fr; }
	.an-footer-marca { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.an-footer-in { grid-template-columns: 1fr; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.an-wa-flotante {
	position: fixed; right: 20px; bottom: 20px; z-index: 999;
	width: 60px; height: 60px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--an-wa); color: #fff;
	box-shadow: 0 8px 24px rgba(7, 10, 36, .3);
}
.an-wa-flotante:hover { background: var(--an-wa-hover); color: #fff; }

/* ---------- Celular ---------- */
@media (max-width: 781px) {
	.an-sec { padding-left: 20px; padding-right: 20px; }
	.an-fila { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "ico tit" "ico desc" "ico precio"; column-gap: 16px; }
	.an-fila::before { width: 48px; height: 48px; }
	.an-fila-precio { margin-top: 6px !important; }
	.an-alinear-derecha .wp-block-buttons { justify-content: flex-start; }
	.an-proyecto img { height: 380px; }
	.an-sec .an-ventajas { gap: 32px; margin-top: 32px; }
	.an-sec .an-ventajas + .an-ventajas { margin-top: 32px; }
	.an-plan { padding: 28px; }
	.an-hero-img img { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
	.an-typed::after { animation: none; }
	.an-proyecto img { transition: none; }
	.an-proyecto:hover img { object-position: top center; }
}

/* =========================================================
   v2: páginas de servicio, nichos, tienda, blog y extras
   ========================================================= */

/* Hero de páginas internas */
.an-h1.an-h1-sub { font-size: clamp(34px, 4.4vw, 56px); }
.an-sec.an-hero-corto { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.an-hero-corto .an-lead { max-width: 60ch; }
.an-hero-redonda img { border-radius: 24px; max-width: 540px; }
.an-hero .wp-block-column > .an-hero-img { margin: 0; }

.an-insignias { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--an-claro); }
.an-insignias li { position: relative; padding-left: 24px; margin: 0; }
.an-insignias li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325D366' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tarjetas */
.an-sec .an-tarjetas { gap: 20px; margin-top: 40px; }
.an-sec .an-tarjetas + .an-tarjetas { margin-top: 20px; }
.an-tarjeta { position: relative; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid #E2E4EF; }
.an-blanco .an-tarjeta { background: var(--an-fondo); border-color: transparent; }
.an-tarjeta h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.an-tarjeta p { margin: 0; font-size: 16px; color: var(--an-gris); }
.an-sec .an-tarjeta-enlace h3 a { color: var(--an-tinta); text-decoration: none; }
.an-sec .an-tarjeta-enlace h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.an-tarjeta-enlace:hover { border-color: var(--an-indigo); }
.an-sec .an-tarjeta-enlace:hover h3 a { color: var(--an-indigo); }

/* Listas con check sobre fondo claro */
.an-check.an-check-claro { color: var(--an-tinta); font-size: 16px; }
.an-check.an-check-claro li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
@media (min-width: 640px) { .an-check.an-dos-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }

/* Caja "Gratis con tu plan" */
.an-gratis { padding: 32px; border-radius: 24px; background: var(--an-degradado); color: #fff; }
.an-gratis h3 { font-size: 20px; font-weight: 600; margin: 0 0 18px; color: #fff; }
.an-gratis .an-check { margin: 0; }

/* Galería */
.an-sec .an-galeria { gap: 24px; margin-top: 40px; }
.an-galeria-img { margin: 0; }
.an-galeria-img img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid #E2E4EF; background: #fff; }
.an-galeria-img .wp-element-caption { margin: 12px 0 0; text-align: left; font-weight: 600; color: var(--an-tinta); }
.an-sec .wp-block-columns.an-galeria-3 { flex-wrap: wrap !important; }
.an-sec .an-galeria-3 > .wp-block-column { flex: 1 1 260px !important; }
.an-proyecto .wp-element-caption a { color: var(--an-tinta); text-decoration: none; }
.an-proyecto .wp-element-caption a:hover { color: var(--an-indigo); }

/* Lista de sectores */
.an-sectores-lista { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.an-sectores-lista li { margin: 0; }
.an-sec .an-sectores-lista a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 14px 18px; border-radius: 14px;
	background: #fff; border: 1px solid #E2E4EF; color: var(--an-tinta);
	font-weight: 500; text-decoration: none;
}
.an-blanco .an-sectores-lista a { background: var(--an-fondo); border-color: transparent; }
.an-sec .an-sectores-lista a::after {
	content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg);
}
.an-sec .an-sectores-lista a:hover { border-color: var(--an-indigo); color: var(--an-indigo); }

/* Llamado final */
.an-cta-final .an-h2 { max-width: 760px; }
.an-cta-final .wp-block-buttons { justify-content: center; margin-top: 24px; }

/* Caja de precio */
.an-precio-caja { padding: 36px; border-radius: 24px; background: #fff; border: 1px solid #E2E4EF; }
.an-blanco .an-precio-caja { background: var(--an-fondo); border-color: transparent; }
.an-precio-caja > * { margin-top: 0; }
.an-precio-etiqueta { margin: 0; font-size: 14px; color: var(--an-gris); }
.an-precio-caja .an-precio { margin: 0; font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--an-tinta); }
.an-precio-caja .an-plazo { margin: 4px 0 20px; font-size: 14px; color: var(--an-gris); }

/* Páginas legales */
.an-legal { max-width: 760px; margin: 0 auto; }
.an-legal .an-h1-legal { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.an-legal-fecha { font-size: 14px; color: var(--an-gris); margin-bottom: 36px; }
.an-legal h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 40px 0 12px; }
.an-legal p, .an-legal li { color: #33384F; }
.an-legal ul { padding-left: 22px; margin: 0 0 16px; }
.an-legal li { margin-bottom: 6px; }

/* Logos de clientes */
.an-sec .wp-block-columns.an-logos { flex-wrap: wrap !important; gap: 24px 40px; margin-top: 40px; align-items: center; }
.an-sec .an-logos > .wp-block-column { flex: 1 1 120px !important; }
.an-logo-cliente { margin: 0; }
.an-logo-cliente img { display: block; max-height: 72px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.an-logo-cliente img:hover { filter: none; opacity: 1; }

/* Productos (tienda) */
.an-sec .an-productos { gap: 20px; margin-top: 40px; }
.an-sec .an-productos + .an-productos { margin-top: 20px; }
.an-producto { display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid #E2E4EF; }
.an-blanco .an-producto { background: var(--an-fondo); border-color: transparent; }
.an-producto h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.an-producto-desc { margin: 0; font-size: 15px; color: var(--an-gris); }
.an-producto-precio { margin: 20px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.an-producto .an-plazo { margin: 2px 0 20px; font-size: 14px; color: var(--an-gris); }
.an-producto .wp-block-buttons { margin-top: auto; }
.an-producto .wp-block-button, .an-producto .wp-block-button__link { width: 100%; }

/* Módulos del curso */
.an-modulos { margin: 0 0 28px; padding-left: 22px; font-size: 14px; line-height: 1.5; color: #E3E5F8; }
.an-modulos li { margin: 0 0 6px; }
.an-plan-destacado .an-modulos { color: var(--an-tinta); }

/* Comunidad (enlaces tipo bio) */
.an-bio { max-width: 580px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.an-avatar { margin: 0 auto 8px; }
.an-avatar img { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.2); }
.an-h1.an-h1-bio { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.an-bio .an-lead { margin: 0 auto 12px; }
.an-enlace { position: relative; padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--an-borde-osc); }
.an-enlace h3 { font-size: 17px; font-weight: 600; margin: 0; }
.an-sec .an-enlace h3 a { color: #fff; text-decoration: none; }
.an-sec .an-enlace h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.an-enlace p { margin: 4px 0 0; font-size: 14px; color: var(--an-claro); }
.an-enlace:hover { border-color: #fff; }
.an-enlace.an-enlace-destacado { background: #fff; border-color: #fff; }
.an-sec .an-enlace-destacado h3 a { color: var(--an-tinta); }
.an-enlace-destacado p { color: var(--an-gris); }

/* Mockup de sitio web por sector */
.an-mock { position: relative; max-width: 540px; margin: 0 auto; padding-bottom: 36px; font-family: var(--an-fuente); }
.an-mock-browser { overflow: hidden; border-radius: 16px; background: #fff; color: var(--an-tinta); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.an-mock-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ECEEF4; }
.an-mock-barra i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #C5C9D6; }
.an-mock-url { flex: 1; margin-left: 10px; padding: 4px 10px; border-radius: 6px; background: #fff; font-size: 11px; color: var(--an-gris); }
.an-mock-nav { display: flex; align-items: center; gap: 14px; padding: 12px 20px; font-size: 11px; color: var(--an-gris); border-bottom: 1px solid #ECEEF4; }
.an-mock-nav strong { margin-right: auto; font-size: 14px; font-weight: 700; color: var(--an-mock); }
.an-mock-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px 20px 26px; background: #F5F6FA; background: color-mix(in srgb, var(--an-mock) 9%, #fff); }
.an-mock-titulo { max-width: 20ch; font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; line-height: 1.2; color: var(--an-tinta); }
.an-mock-texto { font-size: 12px; color: var(--an-gris); }
.an-mock-boton { margin-top: 6px; padding: 8px 14px; border-radius: 8px; background: var(--an-mock); color: #fff; font-size: 11px; font-weight: 600; }
.an-mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px 20px 22px; }
.an-mock-cards span { position: relative; padding: 38px 10px 12px; border: 1px solid #E2E4EF; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 1.3; }
.an-mock-cards span::before { content: ""; position: absolute; top: 12px; left: 10px; width: 18px; height: 18px; border-radius: 6px; background: var(--an-mock); opacity: .2; }
.an-mock-aviso {
	position: absolute; right: -6px; bottom: 0; display: flex; align-items: center; gap: 10px;
	padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--an-tinta);
	font-size: 13px; font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
.an-mock-aviso svg { flex: none; color: #1DA851; }
@media (max-width: 520px) {
	.an-mock-nav span { display: none; }
	.an-mock-aviso { right: 8px; }
}

/* Blog */
.an-blog-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.an-blog-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid #E2E4EF; }
.an-blog-card:hover { border-color: var(--an-indigo); }
.an-blog-img img { display: block; width: 100%; height: 200px; object-fit: cover; }
.an-blog-cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 24px; flex: 1; }
.an-blog-fecha { margin: 0; font-size: 13px; color: var(--an-gris); }
.an-blog-titulo { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; }
.an-sec .an-blog-titulo a { color: var(--an-tinta); text-decoration: none; }
.an-sec .an-blog-titulo a::after { content: ""; position: absolute; inset: 0; }
.an-blog-extracto { margin: 0; font-size: 15px; color: var(--an-gris); }
.an-blog-leer { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--an-indigo); }
.an-paginacion { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.an-paginacion .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid #E2E4EF; color: var(--an-tinta); text-decoration: none; }
.an-paginacion .current { background: var(--an-indigo); border-color: var(--an-indigo); color: #fff; }
.an-vacio { max-width: 560px; }

.an-articulo-meta { margin: 0 0 14px; font-size: 14px; color: var(--an-claro-2); }
.an-hero .an-articulo-meta a { color: #fff; }
.an-articulo-cabecera { max-width: 820px; }
.an-articulo-img { max-width: 960px; margin: 0 auto 40px; }
.an-articulo-img img { display: block; width: 100%; height: auto; border-radius: 20px; }
.an-post { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: #2A2F48; }
.an-post h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 44px 0 14px; color: var(--an-tinta); }
.an-post h3 { font-size: 21px; font-weight: 600; margin: 32px 0 10px; color: var(--an-tinta); }
.an-post p { margin: 0 0 20px; }
.an-post ul, .an-post ol { padding-left: 24px; margin: 0 0 22px; }
.an-post li { margin-bottom: 8px; }
.an-post a { color: var(--an-indigo); }
.an-post img { border-radius: 16px; }

/* Menú: submenús largos en dos columnas */
@media (min-width: 1001px) {
	.an-menu .sub-menu:has(> li:nth-child(9)) { columns: 2; column-gap: 8px; min-width: 520px; }
	.an-menu .sub-menu:has(> li:nth-child(9)) li { break-inside: avoid; }
}

/* Capturas largas: recortadas desde arriba */
.an-galeria-img img { max-height: 560px; object-fit: cover; object-position: top center; }
.an-proyectos .an-galeria-img img { height: 440px; }
.an-hero-redonda img { max-height: 520px; object-fit: cover; object-position: top center; }
@media (max-width: 781px) { .an-proyectos .an-galeria-img img { height: 380px; } }

/* =========================================================
   v3: fondo casi negro, home más rica, proceso, portafolio
   ========================================================= */
:root {
	--an-noche: #04050F;
	--an-degradado: radial-gradient(130% 100% at 100% 0%, #2A33C8 0%, #151B7E 22%, #0A0D3A 48%, #04050F 80%);
	--an-rojo: #FF4D5E;
}

/* Defensa contra estilos de botones del tema (Hello Elementor y similares) */
body.an-page .an-header .an-menu-btn { display: none !important; }
body.an-page button.an-menu-btn { border: 1px solid var(--an-borde-osc); background: transparent; color: #fff; border-radius: 12px; padding: 0; box-shadow: none; }
body.an-page button.an-menu-btn:hover, body.an-page button.an-menu-btn:focus { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 1000px) {
	body.an-page .an-header .an-menu-btn { display: inline-flex !important; }
}
body.an-page .an-form-boton { border: 0; text-transform: none; }
body.an-page figcaption { font-style: normal; }
body.an-page h1, body.an-page h2, body.an-page h3 { font-family: var(--an-fuente); }

/* Encabezado transparente sobre la portada */
body.an-page { position: relative; }
.an-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.an-header.an-nav-abierta { background: var(--an-noche); }
.an-main > .an-hero:first-child,
.an-main > .an-articulo:first-child > .an-hero:first-child { padding-top: calc(clamp(32px, 5vw, 56px) + 84px); }
.an-main > .an-hero.an-hero-corto:first-child,
.an-main > .an-articulo:first-child > .an-hero.an-hero-corto:first-child { padding-top: calc(clamp(48px, 7vw, 88px) + 84px); }
.an-footer { background: var(--an-noche); }

/* Portada de la home */
.an-sec.an-hero-home {
	background:
		radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px) 0 0 / 26px 26px,
		var(--an-degradado);
	padding-bottom: clamp(110px, 11vw, 150px);
}
.an-typed { color: var(--an-rojo); text-shadow: 0 0 28px rgba(255, 77, 94, .45); }
.an-typed::after { color: var(--an-rojo); }

.an-hero-visual { position: relative; }
.an-flotante {
	position: absolute; z-index: 2; margin: 0 !important;
	display: flex; align-items: center; gap: 10px; max-width: 250px;
	padding: 12px 16px 12px 12px; border-radius: 16px;
	background: rgba(255, 255, 255, .1);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3;
	animation: an-flotar 6s ease-in-out infinite;
}
.an-flotante::before {
	content: ""; flex: none; width: 32px; height: 32px; border-radius: 10px;
	background: var(--an-wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1035' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.an-flotante-1 { left: -12px; bottom: 12%; }
.an-flotante-2 { right: -8px; top: 10%; animation-delay: -3s; }
.an-flotante-2::before {
	background: var(--an-rojo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@keyframes an-flotar { 50% { transform: translateY(-8px); } }

.an-logos-tec { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.an-logos-tec > * { margin: 0 !important; }
.an-logos-tec-txt { flex-basis: 100%; font-size: 13px; color: var(--an-claro-2); }
.an-logo-tec img { display: block; height: 30px; width: auto; opacity: .85; }

/* Datos elevados sobre la portada */
.an-main > .an-sec.an-datos { margin-top: -84px !important; position: relative; z-index: 3; }
.an-sec.an-datos { background: transparent; padding: 0 24px; border: 0; }
.an-sec .an-datos-cards { gap: 18px; }
.an-dato {
	position: relative; padding: 26px 24px; border-radius: 22px; background: #fff;
	border: 1px solid rgba(213, 216, 232, .7);
	box-shadow: 0 2px 4px rgba(5, 6, 26, .04), 0 28px 60px -18px rgba(5, 6, 26, .35);
}
.an-dato::before {
	content: ""; display: block; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px;
	background: center / 22px no-repeat, linear-gradient(135deg, #2E35C9, #6A70F5);
	box-shadow: 0 10px 22px -8px rgba(46, 53, 201, .7);
}
.an-dato-1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.5 13.5L17 22l-5-3-5 3 1.5-8.5'/%3E%3C/svg%3E"), linear-gradient(135deg, #2E35C9, #6A70F5); }
.an-dato-2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' 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"), linear-gradient(135deg, #2E35C9, #6A70F5); }
.an-dato-3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M12 8v13M3 12h18M12 8c-2-4-6-4-6-1.5S10 8 12 8zm0 0c2-4 6-4 6-1.5S14 8 12 8z'/%3E%3C/svg%3E"), linear-gradient(135deg, #1DA851, #25D366); }
.an-dato-4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5L5 19'/%3E%3Ccircle cx='7' cy='7' r='2.5'/%3E%3Ccircle cx='17' cy='17' r='2.5'/%3E%3C/svg%3E"), linear-gradient(135deg, #FF4D5E, #FF8A5C); }
.an-dato .an-dato-num { font-size: 32px; color: var(--an-tinta); letter-spacing: -0.02em; }
.an-dato .an-dato-txt { margin-top: 4px; font-size: 15px; line-height: 1.5; }

/* Ventajas tipo bento */
.an-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.an-bento-item {
	position: relative; display: flex; flex-direction: column; min-height: 210px;
	padding: 28px; border-radius: 24px; background: var(--an-fondo); overflow: hidden;
}
.an-sec:not(.an-blanco) .an-bento-item { background: #fff; border: 1px solid #E2E4EF; }
.an-bento-item > * { margin: 0 !important; }
.an-bento-item::before {
	content: ""; display: block; width: 48px; height: 48px; margin-bottom: auto; border-radius: 14px;
	background: var(--an-tinte) center / 24px no-repeat;
}
.an-bento-item h3 { margin-top: 28px !important; margin-bottom: 8px !important; font-size: 20px; font-weight: 600; line-height: 1.3; }
.an-bento-item p { color: var(--an-gris); font-size: 16px; }
.an-bento-item:nth-child(1), .an-bento-item:nth-child(4), .an-bento-item:nth-child(6) { grid-column: span 2; }
.an-sec .an-bento-item:nth-child(1) { background: var(--an-degradado); color: #fff; border: 0; min-height: 240px; }
.an-sec .an-bento-item:nth-child(6) { background: var(--an-indigo); color: #fff; border: 0; }
.an-bento-item:nth-child(1) p, .an-bento-item:nth-child(6) p { color: var(--an-claro); }
.an-bento-item:nth-child(1)::before, .an-bento-item:nth-child(6)::before { background-color: rgba(255, 255, 255, .12); }
.an-bento-item:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' 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"); }
.an-bento-item:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.an-bento-item:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.an-bento-item:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.an-bento-item:nth-child(5)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E35C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.an-bento-item:nth-child(6)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
@media (max-width: 900px) {
	.an-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.an-bento-item:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 600px) {
	.an-bento { grid-template-columns: 1fr; }
	.an-bento-item:nth-child(n) { grid-column: auto; min-height: 0; }
}

/* Proceso: pasos conectados */
.an-sec .an-pasos { gap: 20px; margin-top: 48px; }
.an-paso {
	position: relative; padding: 30px 26px; border-radius: 22px; background: #fff;
	border: 1px solid #E2E4EF; box-shadow: 0 24px 50px -28px rgba(5, 6, 26, .35);
}
.an-blanco .an-paso { background: var(--an-fondo); border-color: transparent; box-shadow: none; }
.an-paso::before {
	content: counter(an-paso, decimal-leading-zero);
	width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px;
	background: var(--an-degradado); font-size: 19px; letter-spacing: .02em;
	box-shadow: 0 12px 24px -10px rgba(46, 53, 201, .8);
}
.an-paso:last-child::before { background: linear-gradient(135deg, #1DA851, #25D366); color: #0B1035; box-shadow: 0 12px 24px -10px rgba(29, 168, 81, .8); }
.an-paso:not(:last-child)::after {
	content: ""; position: absolute; top: 58px; left: 94px; right: -21px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--an-indigo) 0 8px, transparent 8px 14px); opacity: .45;
}
.an-paso h3 { font-size: 19px; }
@media (max-width: 1150px) { .an-paso:not(:last-child)::after { display: none; } }

/* Portafolio: rejilla fija y marco de navegador */
.an-sec .wp-block-columns.an-proyectos { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 24px; }
.an-sec .wp-block-columns.an-proyectos > .wp-block-column { flex: none !important; width: auto; min-width: 0; margin: 0 !important; }
.an-proyecto, .an-proyectos .an-galeria-img {
	position: relative; margin: 0; padding-top: 30px; overflow: hidden;
	border-radius: 18px; background: #fff; border: 1px solid #E2E4EF;
	box-shadow: 0 22px 44px -26px rgba(5, 6, 26, .4);
	transition: transform .25s ease, box-shadow .25s ease;
}
.an-proyecto::before, .an-proyectos .an-galeria-img::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px;
	border-bottom: 1px solid #E2E4EF;
	background:
		radial-gradient(circle, #FF6159 3.5px, transparent 4px) 10px 50% / 14px 14px no-repeat,
		radial-gradient(circle, #FFBD2E 3.5px, transparent 4px) 24px 50% / 14px 14px no-repeat,
		radial-gradient(circle, #28C840 3.5px, transparent 4px) 38px 50% / 14px 14px no-repeat,
		#F3F4F8;
}
.an-sec .an-proyecto img, .an-sec .an-proyectos .an-galeria-img img {
	height: 420px; width: 100%; max-height: none; border: 0; border-radius: 0;
	object-fit: cover; object-position: top center; transition: object-position 4s ease-in-out;
}
.an-proyecto:hover, .an-proyectos .an-galeria-img:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -26px rgba(5, 6, 26, .5); }
.an-proyecto:hover img, .an-proyectos .an-galeria-img:hover img { object-position: bottom center; }
.an-proyecto .wp-element-caption, .an-proyectos .an-galeria-img .wp-element-caption {
	margin: 0; padding: 14px 18px; border-top: 1px solid #E2E4EF; background: #fff;
	font-size: 16px; font-weight: 600; text-align: left; color: var(--an-tinta);
}
@media (max-width: 781px) { .an-sec .an-proyecto img, .an-sec .an-proyectos .an-galeria-img img { height: 380px; } }

/* Planes por sector (sin precio) */
.an-plan .an-plan-ideal {
	align-self: flex-start; margin: 20px 0 24px; padding: 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .1); color: var(--an-claro); font-size: 13px; font-weight: 500; line-height: 1.4;
}
.an-plan-destacado .an-plan-ideal { background: var(--an-tinte); color: var(--an-indigo); }

/* Celular */
@media (max-width: 781px) {
	.an-flotante { font-size: 12px; max-width: 190px; padding: 9px 12px 9px 9px; }
	.an-flotante::before { width: 26px; height: 26px; }
	.an-flotante-1 { left: 0; bottom: 6%; }
	.an-flotante-2 { right: 0; top: 4%; }
	.an-main > .an-sec.an-datos { margin-top: -64px !important; padding: 0 16px; }
	.an-sec .wp-block-columns.an-datos-cards { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.an-flotante { animation: none; }
	.an-proyecto, .an-proyectos .an-galeria-img, .an-sec .an-proyecto img { transition: none; }
}
.an-sec:not(.an-blanco) .an-form { background: #fff; }
.an-sec .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; }
.an-flotante-1 { bottom: -2%; }
@media (max-width: 781px) {
	.an-sec .wp-block-columns.an-datos-cards > .wp-block-column.an-dato { flex: 1 1 140px !important; gap: 0; padding: 18px 16px; border-radius: 18px; }
	.an-dato::before { width: 38px; height: 38px; margin-bottom: 12px; background-size: 18px, cover; }
	.an-dato .an-dato-num { font-size: 22px; }
	.an-dato .an-dato-txt { font-size: 13px; }
	.an-flotante-1 { bottom: -4%; }
}

/* v3.1: espacios más compactos para menos scroll */
.an-sec { padding-top: clamp(56px, 6.5vw, 88px); padding-bottom: clamp(56px, 6.5vw, 88px); }
.an-sec.an-hero { padding-bottom: clamp(56px, 6vw, 80px); }
.an-sec.an-hero-home { padding-bottom: clamp(104px, 10vw, 132px); }
.an-sec.an-hero-corto { padding-bottom: clamp(44px, 5vw, 64px); }
.an-main > .an-hero.an-hero-corto:first-child,
.an-main > .an-articulo:first-child > .an-hero.an-hero-corto:first-child { padding-top: calc(clamp(32px, 4vw, 56px) + 84px); }
.an-sec.an-datos { padding-top: 0; padding-bottom: 0; }
.an-main > .an-sec.an-datos + .an-sec { padding-top: clamp(56px, 6vw, 80px); }
.an-h2 { margin-bottom: 14px; }
.an-texto-sec { margin-bottom: 12px; }
.an-sec .an-tarjetas, .an-sec .an-galeria, .an-bento, .an-sec .an-ventajas, .an-sec .an-productos { margin-top: 32px; }
.an-sec .an-pasos, .an-sec .an-planes { margin-top: 36px; }
.an-sectores-lista { margin-top: 28px; }
.an-sec .wp-block-columns.an-encabezado { margin-bottom: 32px; }
.an-bento-item { min-height: 180px; }
.an-sec .an-bento-item:nth-child(1) { min-height: 200px; }
.an-fila { padding: 20px 0; }
.an-faq .wp-block-details { padding: 16px 0; }
@media (max-width: 781px) {
	.an-sec { padding-top: 48px; padding-bottom: 48px; }
	.an-sec .an-gap-xl { gap: 32px; }
	.an-img-suave { display: none; }
}

/* Datos: tarjetas con sombra más marcada y leve elevación al pasar el mouse */
.an-dato { transition: transform .25s ease, box-shadow .25s ease; }
.an-dato:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(5, 6, 26, .05), 0 34px 70px -18px rgba(5, 6, 26, .45); }
@media (prefers-reduced-motion: reduce) { .an-dato { transition: none; } .an-dato:hover { transform: none; } }
