/* ============================================================
   AstroDeSign Home — frontend.css  v1.1
   Estilo lineal con líneas 3px blancas + bordes redondeados.
   Animaciones GPU (transform/opacity).
   ============================================================ */

:root {
	--adh-margin: 64px;
	--adh-margin-tablet: 32px;
	--adh-margin-mobile: 16px;

	--adh-line-w: 3px;
	--adh-line: rgba(255, 255, 255, 0.92);

	--adh-text: #f4f1ea;
	--adh-text-muted: rgba(244, 241, 234, 0.72);
	--adh-text-dim: rgba(244, 241, 234, 0.50);

	--adh-accent: #bc99ff;   /* lila marca */
	--adh-accent-2: #a370f7;
	--adh-accent-soft: rgba(188, 153, 255, 0.16);
	--adh-bg-soft: rgba(255, 255, 255, 0.02);

	--adh-radius: 24px;
	--adh-radius-sm: 14px;

	--adh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Container ---------- */

.astro-home,
.astro-home * { box-sizing: border-box; }

.astro-home {
	color: var(--adh-text);
	width: 100%;
	max-width: 100%;
	font-family: inherit;
	/* Importante: fondo transparente — hereda el del tema para no generar parches negros al scroll. */
	background: transparent;
}
.astro-section, .astro-section-inner { background: transparent; }

.astro-section { position: relative; width: 100%; }

/* Bounded — dentro de márgenes laterales con LÍNEAS VERTICALES 3px y radio */
.astro-section.is-bounded .astro-section-inner {
	position: relative;
	padding: 56px clamp(24px, 4vw, 56px);
	margin: 0 var(--adh-margin);
	border-left: var(--adh-line-w) solid var(--adh-line);
	border-right: var(--adh-line-w) solid var(--adh-line);
}

/* Conectar secciones contiguas con línea horizontal 3px */
.astro-section.is-bounded + .astro-section.is-bounded .astro-section-inner {
	border-top: var(--adh-line-w) solid var(--adh-line);
}

/* Primera y última sección bounded — esquinas redondeadas para cerrar el "marco" */
.astro-section.is-bounded:first-of-type .astro-section-inner {
	border-top: var(--adh-line-w) solid var(--adh-line);
	border-top-left-radius: var(--adh-radius);
	border-top-right-radius: var(--adh-radius);
}
.astro-section.is-bounded:last-of-type .astro-section-inner {
	border-bottom: var(--adh-line-w) solid var(--adh-line);
	border-bottom-left-radius: var(--adh-radius);
	border-bottom-right-radius: var(--adh-radius);
}

.astro-section.is-full .astro-section-inner {
	padding: 56px var(--adh-margin);
}

/* ---------- Tipografía / utilidades ---------- */

.astro-section-title {
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--adh-text);
}

.astro-eyebrow {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--adh-text-dim);
	margin-bottom: 12px;
}

/* ============================================================
   BOTONES — grandes, borde 2px blanco igualado, hover lila con
   relleno desde la izquierda + icono que avanza.
   ============================================================ */

/* Base — sin slide-fill (causa repaint), sin transform en hover (causa layout shift).
   Solo transición de background-color y border-color. border-radius más sobrio (10px). */
.astro-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 2px solid var(--adh-line);
	color: var(--adh-text) !important;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.25s var(--adh-ease), border-color 0.25s var(--adh-ease), opacity 0.25s var(--adh-ease);
}
.astro-btn__icon { transition: transform 0.25s var(--adh-ease); }
.astro-btn:hover .astro-btn__icon { transform: translateX(4px); }

/* Ghost (borde blanco + transparente) — hover: bg blanco 20%. */
.astro-btn--ghost {
	background: transparent;
	color: var(--adh-text) !important;
	border-color: var(--adh-line);
}
.astro-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.20);
	color: var(--adh-text) !important;
	border-color: var(--adh-line);
}

/* Primary (lila sin borde) — hover: oscurece 30% y texto blanco. */
.astro-btn--primary {
	background: var(--adh-accent);
	color: #ffffff !important;
	border-color: var(--adh-accent);
}
.astro-btn--primary:hover {
	background: #6b50d8;          /* lila ~30% más oscuro */
	border-color: #6b50d8;
	color: #ffffff !important;
}

/* Main (huella) — comparte estética con primary */
.astro-btn--main {
	background: var(--adh-accent);
	color: #ffffff !important;
	border-color: var(--adh-accent);
}
.astro-btn--main:hover {
	background: #6b50d8;
	border-color: #6b50d8;
}

/* Sparkle SVG (siempre blanco, animado) */
.astro-btn__sparkle {
	color: #ffffff;
	transform-origin: center;
	animation: adh-btn-sparkle 2.4s ease-in-out infinite;
}
.astro-btn.has-sparkle:hover .astro-btn__sparkle { animation-duration: 1.2s; }
@keyframes adh-btn-sparkle {
	0%, 100% { transform: scale(1)    rotate(0deg);   opacity: 0.92; }
	50%      { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

/* Eye SVG — ojo cerrado por defecto, se abre en hover (+25% tamaño) */
.astro-btn__eye { color: #ffffff; overflow: visible; width: 28px; height: 28px; }
.astro-btn__eye .eye-open { opacity: 0; transform: scaleY(0); transform-origin: center; transition: opacity 0.3s var(--adh-ease), transform 0.3s var(--adh-ease); }
.astro-btn__eye .eye-closed { opacity: 1; transition: opacity 0.25s var(--adh-ease); }
.astro-btn.has-eye:hover .astro-btn__eye .eye-open   { opacity: 1; transform: scaleY(1); }
.astro-btn.has-eye:hover .astro-btn__eye .eye-closed { opacity: 0; }

/* IGUALADO: misma altura/padding/min-height en TODOS los botones */
.astro-btn {
	min-height: 48px;
	box-sizing: border-box;
}
.astro-btn__label { display: inline-flex; align-items: center; }

/* Variantes — borde IGUALADO en ambos (2px blanco). El lila aparece SOLO en hover via ::before. */
.astro-btn--primary,
.astro-btn--ghost,
.astro-btn--main {
	background: transparent;
	color: var(--adh-text) !important;
	border-color: var(--adh-line);
}
.astro-btn--primary:hover,
.astro-btn--ghost:hover,
.astro-btn--main:hover {
	color: #0e0e14 !important;
	border-color: var(--adh-accent);
}
/* Excepción: "main" del huella mantiene fondo lila para destacar como CTA principal */
.astro-btn--main { background: var(--adh-accent); color: #0e0e14 !important; border-color: var(--adh-accent); }
.astro-btn--main::before { background: #d4baff; }

/* Botón promo (texto siempre legible aunque cambies bg de la promo) */
.astro-btn--promo {
	background: #ffffff;
	color: #0e0e14 !important;
	border: 2px solid #ffffff;
}
.astro-btn--promo::before { background: #0e0e14; }
.astro-btn--promo:hover { color: #ffffff !important; border-color: #0e0e14; }

/* ============================================================
   HERO — astros + claim + typewriter rotativo
   ============================================================ */

.astro-hero {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
	gap: 64px;
	align-items: center;
}

.astro-hero__chart {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	width: 100%;
	margin: 0 auto;
	border: 0 !important;
	background: transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition: opacity 0.25s var(--adh-ease);
}
.astro-hero__chart:hover { opacity: 0.92; }

/* Mini-mount (widget integrado) — círculo con degradado lila desde el centro */
.astros-mini-mount {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
	background: radial-gradient(circle at 50% 50%,
		rgba(188,153,255,0.30) 0%,
		rgba(124,107,255,0.10) 40%,
		rgba(14,14,20,0) 72%);
	border-radius: 50%;
}
.astros-mini-svg {
	width: 100%; height: 100%;
	display: block;
}

/* Fecha + hora con la tipo del sitio (hereda font-family del tema) */
.astros-mini-datetime {
	font-family: inherit;
	font-size: clamp(0.95rem, 1.1vw, 1.05rem);
	letter-spacing: 0.04em;
	color: var(--adh-text-muted);
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.astro-hero__chart > * { width: 100%; height: 100%; display: block; }

.astro-hero__placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	text-decoration: none !important;
	color: inherit;
}
.astro-hero__wheel {
	width: 90%; aspect-ratio: 1 / 1;
	animation: adh-rotate 60s linear infinite;
}

.astro-hero__title {
	font-size: clamp(2.4rem, 5.2vw, 4rem);
	line-height: 1.02;
	margin: 0 0 0.3em;
	letter-spacing: -0.02em;
	font-weight: 500;
}

.astro-typer {
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	color: var(--adh-accent);
	min-height: 1.6em;
	margin-bottom: 0.8em;
	letter-spacing: 0.02em;
	font-style: italic;
}
.astro-typer__cursor {
	display: inline-block;
	margin-left: 2px;
	animation: adh-blink 0.9s steps(2, end) infinite;
	color: var(--adh-accent);
}

.astro-hero__subtitle {
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	color: var(--adh-text-muted);
	margin: 0 0 1.5em;
	line-height: 1.55;
	max-width: 36ch;
}
.astro-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   AUTORIDAD
   ============================================================ */

.astro-autoridad {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 40px;
	align-items: center;
}
.astro-autoridad.no-photo { grid-template-columns: 1fr; }

.astro-autoridad__photo {
	width: 220px; height: 220px;
	border-radius: var(--adh-radius);
	overflow: hidden;
	border: 2px solid var(--adh-line);
}
.astro-autoridad__photo img {
	width: 100%; height: 100%; object-fit: cover;
	transition: filter 0.4s var(--adh-ease), transform 0.4s var(--adh-ease);
}
.astro-autoridad__photo:hover img { transform: scale(1.04); }
.astro-autoridad__photo.is-bw img { filter: grayscale(1) contrast(1.05); }
.astro-autoridad__photo.is-duotone { background: var(--adh-accent); }
.astro-autoridad__photo.is-duotone img { filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }

.astro-autoridad__text h2 {
	font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	margin: 0 0 0.2em;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.astro-autoridad__tagline { color: var(--adh-text-muted); margin: 0 0 1em; font-size: 14px; letter-spacing: 0.04em; }
.astro-autoridad__bio { color: var(--adh-text-muted); line-height: 1.6; margin: 0 0 1.4em; max-width: 60ch; }

/* ============================================================
   SERVICIOS — 4 cards 350px alto, iconos SVG remotos animados,
   hover lila #a370f7.
   ============================================================ */

.astro-servicios-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 20px;
}
.astro-servicio {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-height: 320px;
	padding: 32px 24px;
	border: 2px solid var(--adh-line);
	border-radius: var(--adh-radius);
	text-decoration: none !important;
	color: var(--adh-text) !important;
	background: transparent;
	text-align: center;
	overflow: hidden;
	transition: background-color 0.4s var(--adh-ease), transform 0.4s var(--adh-ease), border-color 0.4s var(--adh-ease);
}
.astro-servicio:hover { will-change: transform; }
.astro-servicio:hover {
	background-color: var(--adh-accent-2);
	border-color: var(--adh-accent-2);
	transform: translateY(-4px);
}
.astro-servicio__icon {
	width: 96px; height: 96px;
	display: flex; align-items: center; justify-content: center;
	transition: transform 0.4s var(--adh-ease);
}
.astro-servicio__icon img {
	width: 100%; height: auto;
	/* Un único filter (más barato que dos drop-shadow + brightness + invert encadenados) */
	filter: brightness(0) invert(1);
}
.astro-servicio:hover .astro-servicio__icon {
	transform: scale(1.12);
}
.astro-servicio__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	max-width: 14ch;
}
.astro-servicio__subtitle {
	margin: 6px 0 0;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--adh-text-muted);
	max-width: 22ch;
	font-weight: 400;
}
.astro-servicio:hover .astro-servicio__subtitle { color: rgba(255,255,255,0.85); }

/* Animaciones de iconos */
.astro-ani-rotate { animation: adh-icon-rotate 30s linear infinite; }
.astro-ani-pulse  { animation: adh-icon-pulse 4s ease-in-out infinite; }
.astro-ani-float  { animation: adh-icon-float 5s ease-in-out infinite; }
.astro-ani-swing  { animation: adh-icon-swing 6s ease-in-out infinite; }

@keyframes adh-icon-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes adh-icon-pulse  { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes adh-icon-float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes adh-icon-swing  { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ============================================================
   PROMO — ocupa todo el ancho del inner. Botón blanco siempre
   legible.
   ============================================================ */

/* PROMO full-bleed — ocupa toda la sección. Sin bordes redondeados, sin caja dentro de caja. */
.astro-section--promo .astro-section-inner {
	padding: 0 !important;
}
.astro-promo {
	position: relative;
	width: 100%;
	min-height: 240px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	align-items: stretch;
	gap: 0;
	border-radius: 0;
	border: 0;
	background: var(--promo-bg, #7C6BFF);
	color: var(--promo-tc, #fff);
	overflow: hidden;
}
.astro-promo:not(:has(.astro-promo__image)) {
	grid-template-columns: 1fr;
}
.astro-promo__image { min-height: 200px; background: rgba(0,0,0,0.10); }
.astro-promo__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.astro-promo__body {
	padding: 40px clamp(24px, 4vw, 56px);
	display: flex; flex-direction: column; justify-content: center;
	gap: 12px;
}
.astro-promo__title    { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 600; color: inherit; line-height: 1.15; }
.astro-promo__subtitle { margin: 0; opacity: 0.92; font-size: 1.05rem; }
.astro-promo__text     { margin: 4px 0 8px; font-size: 1rem; opacity: 0.88; line-height: 1.55; max-width: 56ch; }
.astro-promo__cta      { align-self: flex-start; margin-top: 8px; }

/* CTA dentro de la promo: blanco con texto oscuro; hover → opacidad del fondo 50% (no se oscurece) */
.astro-btn--promo {
	background: #ffffff !important;
	color: #0e0e14 !important;
	border: 2px solid #ffffff;
	transition: background-color 0.25s var(--adh-ease), color 0.25s var(--adh-ease), border-color 0.25s var(--adh-ease);
}
.astro-btn--promo:hover {
	background: rgba(255, 255, 255, 0.5) !important;
	color: #0e0e14 !important;
	border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   ASTROBRANDING · TU HUELLA — lápiz + chispa SVG animados.
   ============================================================ */

.astro-huella {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
	padding: 1rem 0.5rem;
	gap: 0;
}
.astro-huella__icon-circle {
	width: 130px;
	height: 130px;
	border: 2px solid rgba(244,241,234,0.20);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 2.2rem;
	position: relative;
	transition: border-color 0.5s var(--adh-ease), transform 0.5s var(--adh-ease), box-shadow 0.5s var(--adh-ease);
}
.astro-huella:hover .astro-huella__icon-circle {
	border-color: var(--adh-accent);
	transform: scale(1.06);
	box-shadow: 0 0 40px rgba(188,153,255,0.18);
}
.astro-huella__pencil {
	width: 56px; height: 56px;
	fill: none;
	stroke: var(--adh-text-muted);
	stroke-width: 1.2;
	transform: rotate(-10deg) translate(2px, 2px);
	transition: stroke 0.4s var(--adh-ease);
}
.astro-huella:hover .astro-huella__pencil {
	stroke: var(--adh-accent);
	animation: adh-writing 1.2s infinite alternate ease-in-out;
}
.astro-huella__sparkle {
	position: absolute;
	top: 36px; left: 32px;
	width: 24px; height: 24px;
	fill: var(--adh-accent);
	opacity: 0;
	transform: scale(0);
	transition: opacity 0.4s var(--adh-ease), transform 0.4s var(--adh-ease);
	filter: drop-shadow(0 0 6px var(--adh-accent));
}
.astro-huella:hover .astro-huella__sparkle {
	opacity: 1;
	transform: scale(1);
	animation: adh-twinkle 0.8s infinite alternate;
}
.astro-huella__title {
	font-size: clamp(2rem, 4.4vw, 3rem);
	font-weight: 300;
	line-height: 1.05;
	margin: 0 0 1.2rem;
	letter-spacing: -0.025em;
}
.astro-huella__title em { font-style: italic; color: var(--adh-accent); }
.astro-huella__text {
	font-size: 1.1rem;
	font-weight: 300;
	color: var(--adh-text-muted);
	max-width: 650px;
	margin: 0 0 2.4rem;
	line-height: 1.7;
}
.astro-huella__btns { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

@keyframes adh-writing {
	0%   { transform: rotate(-10deg) translate(2px, 2px); }
	100% { transform: rotate(-20deg) translate(-3px, -2px); }
}
@keyframes adh-twinkle {
	0%   { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
	100% { opacity: 1;   transform: scale(1.3) rotate(45deg); }
}

/* ============================================================
   ARTÍCULOS
   ============================================================ */

.astro-articulos-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-top: 24px;
}
.astro-articulo {
	display: flex; flex-direction: column;
	text-decoration: none !important;
	color: var(--adh-text) !important;
	border: 2px solid var(--adh-line);
	border-radius: var(--adh-radius);
	overflow: hidden;
	background: var(--adh-bg-soft);
	transition: transform 0.45s var(--adh-ease), border-color 0.45s var(--adh-ease), background-color 0.45s var(--adh-ease);
}
.astro-articulo:hover {
	transform: translateY(-4px);
	border-color: var(--adh-accent);
	background-color: var(--adh-accent-soft);
}
/* 59:42 ≈ 1.4048 — crop por abajo siempre (object-position top) */
.astro-articulo__thumb { aspect-ratio: 59 / 42; overflow: hidden; background: var(--adh-bg-soft); }
.astro-articulo__thumb img { object-position: center top; }
.astro-articulo__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--adh-ease); }
.astro-articulo:hover .astro-articulo__thumb img { transform: scale(1.06); }
.astro-articulo__title {
	font-size: 15px;
	line-height: 1.35;
	font-weight: 500;
	margin: 18px 18px 6px;
}
.astro-articulo__date { color: var(--adh-text-dim); font-size: 12px; margin: 0 18px 18px; }

/* ============================================================
   ECLIPSE
   ============================================================ */

.astro-eclipse {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: start;
}
.astro-eclipse__countdown { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.astro-eclipse__cell {
	flex: 1; min-width: 80px;
	background: var(--adh-bg-soft);
	border: 2px solid var(--adh-line);
	border-radius: var(--adh-radius-sm);
	padding: 16px 12px;
	text-align: center;
}
.astro-eclipse__cell strong {
	display: block;
	font-size: clamp(1.6rem, 2.2vw, 2rem);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.astro-eclipse__cell span {
	font-size: 11px;
	color: var(--adh-text-dim);
	letter-spacing: 0.10em;
	text-transform: uppercase;
}
.astro-eclipse__text { color: var(--adh-text-muted); line-height: 1.65; margin: 0 0 1em; }

/* ============================================================
   YOUTUBE
   ============================================================ */

.astro-youtube {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 36px;
	align-items: center;
}
.astro-youtube__body p { color: var(--adh-text-muted); line-height: 1.6; margin: 0.4em 0 1.4em; }
.astro-youtube__embed {
	aspect-ratio: 16 / 9;
	border: 2px solid var(--adh-line);
	border-radius: var(--adh-radius-sm);
	overflow: hidden;
}
.astro-youtube__embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.astro-youtube__embed--placeholder {
	display: flex; align-items: center; justify-content: center;
	background: var(--adh-bg-soft);
	color: var(--adh-text-muted);
	font-size: 56px;
	text-decoration: none !important;
	transition: color 0.3s var(--adh-ease), border-color 0.3s var(--adh-ease);
}
.astro-youtube__embed--placeholder:hover { color: var(--adh-accent); border-color: var(--adh-accent); }

/* ============================================================
   GOOGLE REVIEWS
   ============================================================ */

.astro-reviews { text-align: center; }
.astro-reviews__subtitle { color: var(--adh-text-muted); margin: 0 0 1.4em; }
.astro-reviews__widget { margin-top: 12px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */

.astro-newsletter {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: center;
}
.astro-newsletter__text p { color: var(--adh-text-muted); margin: 0.4em 0 0; }

/* Form universal — cualquier plugin (Mailchimp mc4wp, Newsletter, custom...) */
.astro-newsletter__form form,
.astro-newsletter-fallback {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}
.astro-newsletter__form input[type=email],
.astro-newsletter__form input[type=text],
.astro-newsletter-fallback input[type=email] {
	width: 100%;
	padding: 14px 16px;
	border-radius: 10px;
	border: 2px solid var(--adh-line);
	background: transparent;
	color: var(--adh-text);
	font-size: 15px;
	box-sizing: border-box;
}
.astro-newsletter__form input:focus,
.astro-newsletter-fallback input:focus { outline: none; border-color: var(--adh-accent); }

/* Form 2 líneas compacto: grid 2 columnas → línea 1: nombre + email,
   línea 2: fecha (opcional, span 1) + botón (span 1, derecha). */
.astro-newsletter__form form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
}
.astro-newsletter__form form > *:not(input[type=submit]):not(button[type=submit]) { /* labels y otros */ }
.astro-newsletter__form input[type=email] { grid-column: span 2; }
.astro-newsletter__form input[type=submit],
.astro-newsletter__form button[type=submit] { grid-column: 2; justify-self: end; }

/* Botón "Suscribirme" — ahora ESTILO LINEAL (ghost), con icono móvil animado.
   El input[type=submit] no soporta SVG, así que frontend.js lo reemplaza por <button> con SVG. */
.astro-newsletter__form input[type=submit],
.astro-newsletter__form button[type=submit],
.astro-newsletter-fallback button[type=submit] {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	min-height: 48px;
	border-radius: 10px;
	border: 2px solid var(--adh-line);
	background: transparent;
	color: var(--adh-text) !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s var(--adh-ease), border-color 0.25s var(--adh-ease);
}
.astro-newsletter__form input[type=submit]:hover,
.astro-newsletter__form button[type=submit]:hover,
.astro-newsletter-fallback button[type=submit]:hover {
	background: rgba(255, 255, 255, 0.20);
	border-color: var(--adh-line);
}

/* Icono móvil (inyectado por JS dentro del button) */
.astro-news-phone {
	width: 22px; height: 22px;
	color: currentColor;
	transition: transform 0.3s var(--adh-ease);
}
.astro-newsletter__form button[type=submit]:hover .astro-news-phone {
	animation: adh-phone-shake 0.6s ease-in-out infinite;
}
@keyframes adh-phone-shake {
	0%, 100% { transform: rotate(-6deg) translateX(0); }
	25%      { transform: rotate(6deg)  translateX(1px); }
	50%      { transform: rotate(-6deg) translateX(-1px); }
	75%      { transform: rotate(6deg)  translateX(1px); }
}
.astro-newsletter__note { margin: 6px 0 0; font-size: 12px; color: var(--adh-text-dim); }

/* ============================================================
   ASTROLOGÍA CREATIVA (sección editorial)
   ============================================================ */
.astro-astrologia { max-width: 70ch; }
.astro-astrologia__text { color: var(--adh-text-muted); line-height: 1.7; margin: 0 0 1.4em; font-size: 1.02rem; }
.astro-astrologia__text em { font-style: italic; color: var(--adh-accent); }

/* ============================================================
   FADE & ROTATION
   ============================================================ */

[data-fade] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s var(--adh-ease), transform 0.7s var(--adh-ease);
}
[data-fade].is-animating { will-change: opacity, transform; }
[data-fade].is-in {
	opacity: 1;
	transform: none;
	will-change: auto; /* libera memoria GPU una vez terminada la animación */
}

@keyframes adh-rotate { to { transform: rotate(360deg); } }
@keyframes adh-blink  { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	[data-fade] { opacity: 1; transform: none; transition: none; }
	.astro-hero__wheel,
	.astro-ani-rotate, .astro-ani-pulse, .astro-ani-float, .astro-ani-swing,
	.astro-typer__cursor, .astro-btn__sparkle { animation: none !important; }
	.astro-btn, .astro-servicio, .astro-articulo, .astro-promo { transition: none; }
}

/* Pausar la rueda y los iconos cuando no son visibles (data-out lo añade el JS via IntersectionObserver) */
.astro-home [data-out] .astro-hero__wheel,
.astro-home [data-out] .astro-ani-rotate,
.astro-home [data-out] .astro-ani-pulse,
.astro-home [data-out] .astro-ani-float,
.astro-home [data-out] .astro-ani-swing { animation-play-state: paused; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
	.astro-section.is-bounded .astro-section-inner { margin: 0 var(--adh-margin-tablet); }
	.astro-section.is-full .astro-section-inner { padding: 44px var(--adh-margin-tablet); }

	.astro-hero { grid-template-columns: 1fr; gap: 32px; text-align: left; }
	.astro-hero__chart { max-width: 420px; }
	.astro-articulos-grid { grid-template-columns: repeat(2, 1fr); }
	.astro-servicios-grid { grid-template-columns: repeat(2, 1fr); }
	.astro-youtube, .astro-newsletter, .astro-eclipse { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.astro-section.is-bounded .astro-section-inner { margin: 0 var(--adh-margin-mobile); padding: 32px clamp(16px, 5vw, 24px); }
	.astro-section.is-full .astro-section-inner { padding: 28px var(--adh-margin-mobile); }

	.astro-autoridad { grid-template-columns: 1fr; gap: 18px; text-align: left; }
	.astro-autoridad__photo { width: 160px; height: 160px; }
	.astro-promo { grid-template-columns: 1fr; }
	.astro-promo__image { min-height: 180px; height: 180px; }
	.astro-promo__body { padding: 24px 24px; }
	.astro-eclipse__cell { min-width: calc(50% - 6px); flex: 0 0 calc(50% - 6px); }
	.astro-articulos-grid, .astro-servicios-grid { grid-template-columns: 1fr; }
	.astro-hero__title { font-size: 2.2rem; }
	.astro-btn { padding: 14px 22px; font-size: 13px; }
	.astro-huella__btns { flex-direction: column; width: 100%; }
	.astro-huella__btns .astro-btn { justify-content: center; }
}
