/* ==========================================================================
   VERTEC · Portada (manual §7 y §8). Se carga solo en la página de inicio.
   Por defecto el banner es estático (sin JavaScript o con movimiento reducido).
   hero.js agrega .vx-hero--animated y controla la expansión ligada al scroll.
   ========================================================================== */

body.vx-front .site-content > .ast-container { max-width: none; padding: 0; display: block; }
body.vx-front .entry-content > * { margin-top: 0; margin-bottom: 0; }
body.vx-front .entry-content { margin: 0; }
body.vx-front article.page { margin: 0; padding: 0; }
body.vx-front .vx-footer { margin-top: 0; }

.vx-home { background: var(--bg); color: var(--ink); }
.vx-home p { margin: 0; }
.vx-home h1, .vx-home h2, .vx-home h3 { margin: 0; }
.vx-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Banner ---------- */
.vx-hero { position: relative; }
.vx-hero__stage { position: relative; height: 620px; overflow: hidden; background: var(--bg); max-width: var(--max); margin: 0 auto; }

.vx-hero__title { position: absolute; z-index: 3; left: var(--gutter); top: 69px; width: 45%; }
.vx-hero__title h1 { margin: 22px 0 22px; }
.vx-hero__title h1 .vx-eyebrow { display: block; margin: 0 0 22px; }
.vx-hero__title h1 em { color: var(--red); font-style: normal; }
.vx-hero__title p { max-width: 380px; font-size: 16px; line-height: 1.65; color: var(--sub); }
.vx-hero__title .vx-button { margin-top: 26px; }

.vx-hero__media {
	position: absolute; top: 38px; bottom: 46px; left: 53%; right: var(--gutter);
	overflow: hidden; border-radius: var(--radius-media); isolation: isolate; background: var(--soft);
}
.vx-hero__photo { position: absolute; inset: -4%; } /* margen suficiente para el desplazamiento de 18px y la escala 1.06 */
.vx-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.vx-hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--photo-shade); }
.vx-hero__label { position: absolute; left: 23px; bottom: 23px; z-index: 2; color: var(--photo-title); font: 11px var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; }

.vx-hero__reveal { position: absolute; z-index: 4; left: 24px; right: 24px; bottom: 56px; color: var(--photo-title); }
.vx-hero__reveal .vx-eyebrow { color: var(--photo-eyebrow) !important; }
.vx-hero__reveal h2 { color: var(--photo-title) !important; font-size: clamp(28px, 3vw, 36px) !important; line-height: 1.08 !important; letter-spacing: -1.2px !important; margin: 10px 0 !important; }
.vx-hero__reveal p { max-width: 400px; font-size: 15px; line-height: 1.6; color: var(--photo-text); }

.vx-hero__cue { display: none; }

/* Estático en móvil: flujo normal */
@media (max-width: 650px) {
	.vx-hero__stage { height: auto; padding-block: 28px 32px; }
	.vx-hero__title { position: relative; left: auto; top: auto; width: auto; padding-inline: 6%; }
	.vx-hero__title h1 { font-size: 34px !important; }
	.vx-hero__media { position: relative; inset: auto; margin: 28px 6% 0; height: 440px; }
	.vx-hero__reveal { left: 18px; right: 18px; bottom: 48px; }
	.vx-hero__label { left: 15px; bottom: 15px; font-size: 10px; }
}

/* Animado (lo activa hero.js; nunca con movimiento reducido) */
.vx-hero--animated .vx-hero__scene { height: 1060px; }
.vx-hero--animated .vx-hero__stage {
	position: sticky;
	top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
	max-width: none;
}
.vx-hero--animated .vx-hero__title { left: max(var(--gutter), calc((100% - var(--max)) / 2 + 5%)); }
.vx-hero--animated .vx-hero__media { will-change: left, right, top, bottom, border-radius; }
.vx-hero--animated .vx-hero__photo { will-change: transform; }
.vx-hero--animated .vx-hero__reveal { opacity: 0; transform: translateY(30px); left: var(--gutter); right: var(--gutter); bottom: 61px; }
.vx-hero--animated .vx-hero__reveal h2 { font-size: clamp(30px, 4.4vw, 50px) !important; line-height: 1.05 !important; letter-spacing: -1.8px !important; margin: 13px 0 !important; }
.vx-hero--animated .vx-hero__cue {
	display: flex; position: absolute; z-index: 4; bottom: 14px; left: max(var(--gutter), calc((100% - var(--max)) / 2 + 5%));
	align-items: center; gap: 15px; font: 11px var(--font-mono); letter-spacing: 1.5px; color: var(--sub);
}
.vx-hero__cue i { display: block; width: 30px; height: 1px; background: var(--red); }

@media (max-width: 650px) {
	.vx-hero--animated .vx-hero__stage { padding: 0; }
	.vx-hero--animated .vx-hero__title { position: absolute; top: 25px; left: 6%; width: 88%; padding: 0; }
	.vx-hero--animated .vx-hero__media { position: absolute; margin: 0; height: auto; }
	.vx-hero--animated .vx-hero__reveal { left: 6%; right: 6%; bottom: 65px; }
	.vx-hero--animated .vx-hero__reveal h2 { font-size: 34px !important; }
	.vx-hero--animated .vx-hero__cue { left: 6%; }
}

/* ---------- Franja de especialidades ---------- */
.vx-ribbon { background: var(--panel); border-block: 1px solid var(--line); }
.vx-ribbon ul { list-style: none; margin: 0 auto; max-width: var(--max); padding: 22px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--sub); }
.vx-ribbon li { margin: 0; }

/* ---------- Secciones ---------- */
.vx-section { padding-block: 64px; }
.vx-section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.vx-section__head h2 { margin-top: 6px; }
.vx-section__head > p { max-width: 320px; font-size: 16px; line-height: 1.6; color: var(--sub); }

.vx-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.vx-area { border-top: 1px solid var(--line); padding-top: 20px; margin: 0; min-width: 0; display: flex; flex-direction: column; }
.vx-area__index { display: block; font: 12px var(--font-mono); letter-spacing: 1px; color: var(--red-text); margin-bottom: 24px; }
.vx-area h3 { font-size: 20px !important; }
.vx-area p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--sub); flex: 1; }
.vx-area__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--ink) !important; text-decoration: none !important; border-bottom: 1px solid var(--line); align-self: flex-start; }
.vx-area__link:hover { border-bottom-color: var(--red); }

/* ---------- Bloque de seguridad ---------- */
.vx-feature { max-width: var(--max); margin: 0 auto 64px; padding-inline: var(--gutter); }
.vx-feature__box { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-block); overflow: hidden; }
/* La foto es vertical (4:5): la columna mantiene esa proporción para no recortarla */
.vx-feature__photo { position: relative; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
.vx-feature__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.vx-feature__copy { padding: 44px; align-self: center; }
.vx-feature__copy h2 { margin: 6px 0 18px; }
.vx-feature__copy p { font-size: 16px; line-height: 1.7; color: var(--sub); }

/* ---------- Proceso ---------- */
.vx-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.vx-process li { border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
.vx-process span { font: 12px var(--font-mono); letter-spacing: 1px; color: var(--red-text); }
.vx-process h3 { font-size: 19px !important; margin: 16px 0 10px !important; }
.vx-process p { font-size: 15px; line-height: 1.7; color: var(--sub); }

/* ---------- Contacto ---------- */
.vx-cta { background: var(--soft); border-top: 1px solid var(--line); }
.vx-cta__inner { max-width: var(--max); margin: 0 auto; padding: 52px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.vx-cta h2 { font-size: clamp(28px, 3vw, 32px) !important; }
.vx-cta p { margin-top: 12px; font-size: 16px; color: var(--sub); }
.vx-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.vx-button--ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.vx-button--ghost:hover { border-color: var(--ink); opacity: 1; }

@media (max-width: 960px) {
	.vx-areas { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
@media (max-width: 650px) {
	.vx-section { padding-block: 44px; }
	.vx-section__head { display: block; }
	.vx-section__head > p { margin-top: 16px; }
	.vx-feature__box { grid-template-columns: 1fr; }
	.vx-feature__photo { aspect-ratio: 4 / 5; max-height: 480px; }
	.vx-feature__copy { padding: 28px; }
	.vx-process { grid-template-columns: 1fr; gap: 24px; }
	.vx-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
	.vx-areas { grid-template-columns: 1fr; }
}

/* ---------- Preguntas frecuentes ---------- */
.vx-faq__list { border-top: 1px solid var(--line); max-width: 880px; }
.vx-faq__item { border-bottom: 1px solid var(--line); }
.vx-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 14px; }
.vx-faq__item summary::-webkit-details-marker { display: none; }
.vx-faq__item summary h3 { font-size: 18px !important; margin: 0 !important; }
.vx-faq__item summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--red); font-size: 20px; line-height: 1; }
.vx-faq__item[open] summary::after { content: "−"; }
.vx-faq__item p { padding: 0 52px 22px 0; font-size: 16px; line-height: 1.7; color: var(--sub); max-width: 72ch; }
@media (max-width: 650px) { .vx-faq__item p { padding-right: 0; } }

/* ---------- Separadores del mensaje del banner ---------- */
.vx-sep { color: var(--red); font-weight: 400; padding-inline: .15em; }

/* ---------- Banda de energía eólica ---------- */
.vx-band { background: var(--soft); border-block: 1px solid var(--line); margin-bottom: 64px; }
.vx-band__inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.vx-band__copy h2 { margin: 6px 0 16px; }
.vx-band__copy p:not(.vx-eyebrow) { font-size: 16px; line-height: 1.65; color: var(--sub); margin-bottom: 24px; max-width: 420px; }
.vx-band__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.vx-band__list li { margin: 0; border-top: 1px solid var(--line); padding-block: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vx-band__list strong { font-size: 17px; font-weight: 500; letter-spacing: -.2px; color: var(--ink); }
.vx-band__list span { font-size: 14px; color: var(--sub); }

/* ---------- Bloque de rescate (sin fotografía por ahora) ---------- */
.vx-feature__box--text { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.vx-feature--rescue .vx-feature__box { border-left: 3px solid var(--red); }
.vx-checklist { list-style: none; margin: 0; padding: 44px 44px 44px 0; align-self: center; display: grid; gap: 0; }
.vx-checklist li { margin: 0; border-top: 1px solid var(--line); padding: 14px 0 14px 30px; position: relative; font-size: 16px; color: var(--ink); }
.vx-checklist li:last-child { border-bottom: 1px solid var(--line); }
.vx-checklist li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-70%) rotate(-45deg); }

/* ---------- Contacto con fondo técnico (igual en ambos temas, como las fotos) ---------- */
.vx-cta { position: relative; overflow: hidden; background: #0B0F11; border-top: 0; isolation: isolate; }
.vx-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; z-index: -2; }
.vx-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 15, 17, .95) 0%, rgba(11, 15, 17, .78) 45%, rgba(11, 15, 17, .25) 100%); }
.vx-cta__inner { padding-block: 88px; }
.vx-cta h2 { color: var(--photo-title) !important; }
.vx-cta p { color: var(--photo-text); }
.vx-cta .vx-button { background: #FFFFFF; color: #13191D !important; border-color: #FFFFFF; }
.vx-cta .vx-button--ghost { background: transparent; color: #FFFFFF !important; border-color: rgba(255, 255, 255, .45); }
.vx-cta .vx-button--ghost:hover { border-color: #FFFFFF; }
.vx-cta :focus-visible { outline-color: #FFFFFF; }

@media (max-width: 960px) {
	.vx-band__inner { grid-template-columns: 1fr; gap: 28px; }
	.vx-feature__box--text { grid-template-columns: 1fr; }
	.vx-checklist { padding: 0 28px 28px; }
}
@media (max-width: 650px) {
	.vx-band__list { grid-template-columns: 1fr; }
	.vx-band__inner { padding-block: 44px; }
	.vx-cta::before { background: linear-gradient(0deg, rgba(11, 15, 17, .95) 0%, rgba(11, 15, 17, .7) 100%); }
	.vx-cta__inner { padding-block: 64px; }
}

/* ---------- v1.2: foto en banda eólica y rescate con foto ---------- */
.vx-band__photo { height: clamp(220px, 32vw, 380px); overflow: hidden; }
.vx-band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.vx-feature__box--reverse .vx-feature__photo { order: 2; }
.vx-feature__box--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.vx-feature--rescue .vx-feature__box { border-left: 1px solid var(--line); }
.vx-feature__copy .vx-checklist { padding: 0; margin-top: 24px; }
@media (max-width: 650px) {
	.vx-feature__box--reverse { grid-template-columns: 1fr; }
	.vx-feature__box--reverse .vx-feature__photo { order: -1; }
}
