/*
Theme Name: Nanoweh Child
Theme URI: https://nanoweh.com
Description: Tema hijo de Hello Elementor para el sitio de Nanoweh. Aquí van los módulos propios (prefijo nanoweh-).
Author: Nanoweh
Template: hello-elementor
Version: 1.0.0
Text Domain: nanoweh-child
*/

/* Estilos propios con prefijo nanoweh- */
.nanoweh-js summary { cursor: pointer; }
.nanoweh-js summary::-webkit-details-marker { display: none; }
/* Home B: hover en el interruptor invierte fondos y letras y mueve el botón */
body.page-id-9 .elementor-element-65f6e953,
body.page-id-9 .elementor-element-3b5ecbb8,
body.page-id-9 .elementor-element-65f6e953 *,
body.page-id-9 .elementor-element-3b5ecbb8 * { transition: background-color .5s ease, color .5s ease; }
body.page-id-9 .elementor-element-25b8aedd { transition: transform .5s cubic-bezier(.65,0,.35,1); }
body.page-id-9:has(.elementor-element-102498a7:hover) .elementor-element-25b8aedd { transform: translateX(124px); }
body.page-id-9:has(.elementor-element-102498a7:hover) .elementor-element-65f6e953 { background-color: #fff !important; }
body.page-id-9:has(.elementor-element-102498a7:hover) .elementor-element-3b5ecbb8 { background-color: #000 !important; }
body.page-id-9:has(.elementor-element-102498a7:hover) .elementor-element-65f6e953 * { color: #000 !important; }
body.page-id-9:has(.elementor-element-102498a7:hover) .elementor-element-3b5ecbb8 * { color: #fff !important; }
body.page-id-9 .e-2c298cd6-67da,
body.page-id-9 .e-1d857894-193e { mix-blend-mode: difference; color: #fff !important; }
body.page-id-9:has(.elementor-element-102498a7:hover) .elementor-element-3b5ecbb8 .e-2c298cd6-67da,
body.page-id-9:has(.elementor-element-102498a7:hover) .elementor-element-3b5ecbb8 .e-1d857894-193e { color: #fff !important; }
body.page-id-9 .e-9ec45d1-f211,
body.page-id-9 .e-3cdbe306-eb96 { mix-blend-mode: difference; color: #fff !important; transition: opacity .5s ease, font-weight .5s ease; }
body.page-id-9 .e-3cdbe306-eb96 { opacity: .5; }
body.page-id-9:has(.elementor-element-102498a7:hover) .e-9ec45d1-f211 { opacity: .5; font-weight: 400; }
body.page-id-9:has(.elementor-element-102498a7:hover) .e-3cdbe306-eb96 { opacity: 1; font-weight: 700; }
/* SEO: titular "Mismas personas, todos los meses" con pastilla de imagen y ojo */
body.page-id-140 #nw-4 h2 span:first-of-type { width: 1.9em; border-radius: .4em; background: url(/wp-content/uploads/2026/11/nw-photograph-of-an-abstract-minimal-shape-64d6a0f0.webp) center/cover; }
body.page-id-140 #nw-4 h2 span { display: inline-block; height: .72em; vertical-align: -.04em; }
body.page-id-140 #nw-6 h2 span { display: inline-block; height: .72em; vertical-align: -.04em; }
body.page-id-140 #nw-6 h2 > span:first-of-type { width: 1.9em; border-radius: .4em; background: url(/wp-content/uploads/2026/11/nw-a-photograph-of-a-team-in-an-office-ar-1-e64acf19.webp) center / cover no-repeat; }
body.page-id-140 #nw-12, body.page-id-140 #nw-13 { display: grid !important; grid-template-columns: 1fr 1.3fr; column-gap: 60px; align-items: start; }
body.page-id-140 #nw-12 > .e-accordion-base, body.page-id-140 #nw-13 > .e-accordion-base, body.page-id-140 #nw-12 > [data-element_type="e-accordion"], body.page-id-140 #nw-13 > [data-element_type="e-accordion"] { grid-column: 2; grid-row: 1 / span 3; }
body.page-id-140 #nw-4 h2 em span, body.page-id-140 #nw-6 h2 em span { width: .72em; border-radius: 50%; background: radial-gradient(circle, #000 0 14%, #e0143c 15% 36%, #f7a8c8 37% 100%); }
/* SEO · Qué hacemos: brazo fundido con el fondo blanco y "desde" pequeño */
body.page-id-140 #nw-2 > .e-image-base,
body.page-id-140 #nw-2 > div:first-child img { mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 62% 48%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 60% 55% at 62% 48%, #000 30%, transparent 78%); }
body.page-id-140 #nw-2 em { font-size: .42em; font-weight: 500; }
/* Home B: bloque Paid vs SEO más arriba para que el CTA entre en el primer scroll */
body.page-id-9 .nwh-d { height: 760px; }
body.page-id-9 .nwh-d > .half { height: 760px; }
body.page-id-9 .nwh-d > :nth-child(n+5):nth-child(-n+19) { margin-top: -100px !important; }
/* SEO: hero compacto (ojo más pequeño) para que el CTA se vea sin hacer scroll */
body.page-id-140 .nwf-d #inicio { height: 700px; }
body.page-id-140 .nwf-d #inicio > :nth-child(2) { top: 88px !important; left: 628px !important; width: 184px !important; height: 184px !important; }
body.page-id-140 .nwf-d #inicio > :nth-child(3) { top: 292px !important; }
body.page-id-140 .nwf-d #inicio > :nth-child(4) { top: 390px !important; }
body.page-id-140 .nwf-d #inicio > :nth-child(5) { top: 466px !important; }
body.page-id-140 .nwf-d #inicio > :nth-child(6) { top: 538px !important; }
body.page-id-140 .nwf-d #inicio > :nth-child(7) { top: 628px !important; }
/* Paid: mismo hero compacto (ojo, logo, claim, texto, CTA y datos) */
/* (índices reajustados: los títulos de varias líneas ahora van dentro de un único h2/h3) */
body.page-id-52 .nwf-d > .nwf-c > :nth-child(77) { top: 88px !important; left: 628px !important; width: 184px !important; height: 184px !important; }
body.page-id-52 .nwf-d > .nwf-c > :nth-child(78) { top: 292px !important; }
body.page-id-52 .nwf-d > .nwf-c > :nth-child(79) > * { top: 390px !important; }
body.page-id-52 .nwf-d > .nwf-c > :nth-child(80) { top: 466px !important; }
body.page-id-52 .nwf-d > .nwf-c > :nth-child(82) { top: 538px !important; }
body.page-id-52 .nwf-d > .nwf-c > :nth-child(83) { top: 628px !important; }
/* MÓVIL: mismos ajustes que en escritorio (CTA en el primer scroll, ojo más pequeño) */
/* Home B móvil: bloque Paid vs SEO más compacto */
body.page-id-9 .nwh-m { height: 760px; }
body.page-id-9 .nwh-m > .half { height: 380px !important; }
body.page-id-9 .nwh-m > :nth-child(2) { top: 380px !important; }
body.page-id-9 .nwh-m > :nth-child(n+6):nth-child(-n+9) { margin-top: -30px !important; }
body.page-id-9 .nwh-m > :nth-child(n+10):nth-child(-n+13) { margin-top: -72px !important; }
body.page-id-9 .nwh-m > :nth-child(14),
body.page-id-9 .nwh-m > :nth-child(15),
body.page-id-9 .nwh-m > :nth-child(16) { margin-top: -42px !important; }
body.page-id-9 .nwh-m > :nth-child(17) { margin-top: -84px !important; }
/* SEO y Paid móvil: hero compacto */
body.page-id-140 .nwf-m > .nwf-c > :first-child,
body.page-id-52 .nwf-m > .nwf-c > :first-child { height: 600px !important; }
/* SEO: el menú es el primer hijo del hero, así que ojo = 2.º hijo */
body.page-id-140 .nwf-m > .nwf-c > :first-child > :nth-child(2) { top: 100px !important; left: 120px !important; width: 150px !important; height: 150px !important; }
body.page-id-140 .nwf-m > .nwf-c > :first-child > :nth-child(3) { top: 270px !important; }
body.page-id-140 .nwf-m > .nwf-c > :first-child > :nth-child(4) { top: 318px !important; }
body.page-id-140 .nwf-m > .nwf-c > :first-child > :nth-child(5) { top: 372px !important; }
body.page-id-140 .nwf-m > .nwf-c > :first-child > :nth-child(6) { top: 456px !important; }
body.page-id-140 .nwf-m > .nwf-c > :first-child > :nth-child(7) { top: 534px !important; }
/* Paid: el menú es el último hijo del hero, así que ojo = 1.er hijo */
body.page-id-52 .nwf-m > .nwf-c > :first-child > :nth-child(1) { top: 100px !important; left: 120px !important; width: 150px !important; height: 150px !important; }
body.page-id-52 .nwf-m > .nwf-c > :first-child > :nth-child(2) { top: 270px !important; }
body.page-id-52 .nwf-m > .nwf-c > :first-child > :nth-child(3) > * { top: 318px !important; }
body.page-id-52 .nwf-m > .nwf-c > :first-child > :nth-child(4) { top: 372px !important; }
body.page-id-52 .nwf-m > .nwf-c > :first-child > :nth-child(5) { top: 456px !important; }
body.page-id-52 .nwf-m > .nwf-c > :first-child > :nth-child(6) { top: 534px !important; }
/* Paid: vídeos de animación sobre las fotos (fundido de entrada) */
/* clip-path: recorta 3 px a cada lado para ocultar la línea vertical que algunos vídeos traen en el borde */
.nwf video.nanoweh-motion { opacity: 0; transition: opacity .9s ease; pointer-events: none; clip-path: inset(0 3px 0 3px); }
.nwf video.nanoweh-motion.is-on { opacity: 1; }
/* Botón WhatsApp flotante (escritorio): abajo a la derecha, como en el Figma (flotante) */
.nwf.nwf-d a.nwf-wa.nwf-wa { top: auto !important; left: auto !important; right: 32px !important; bottom: 32px !important; transform: none !important; }
/* Home: las etiquetas VER PAID / VER SEO no deben quitar el hover a la mitad, si no el toggle salta a Paid estando en SEO */
.nwh-d > p, .nwh-m > p { pointer-events: none !important; }
/* Encabezados semánticos (h1/h2/h3 con display:contents): sus líneas siguen comportándose como bloques */
.nwf h1 > span, .nwf h2 > span, .nwf h3 > span { display: block; }
/* Texto solo para lectores de pantalla y buscadores (h1/h2 semánticos sin cambiar el diseño) */
.nw-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* SEO: el lema del hero es un encabezado (envoltorio display:contents), se mantiene su posición compacta */
body.page-id-140 .nwf-d #inicio > h2 > * { top: 390px !important; }
body.page-id-140 .nwf-m > .nwf-c > :first-child > h2 > * { top: 318px !important; }
/* Interruptor Paid/SEO de la cabecera: ojo visible en ordenador; en móvil, sin ojo (solo botón circular liso) */
@media (max-width: 899px) {
  .nwf-hd p ~ div > div:nth-child(3) { display: none !important; }
}
/* Zona negra: botón negro con letras blancas */
.nwf.nwf-d a.nwf-wa.nwf-wa, .nanoweh-wa-float { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.nwf.nwf-d a.nwf-wa.nwf-wa.nw-dark { background-color: #000 !important; border-color: rgba(255,255,255,.5) !important; }
.nwf.nwf-d a.nwf-wa.nwf-wa.nw-dark * { color: #fff !important; }
/* Zona clara: botón blanco con letras negras (igual en SEO y Paid) */
.nwf.nwf-d a.nwf-wa.nwf-wa:not(.nw-dark) { background-color: #fff !important; border-color: #111 !important; }
.nwf.nwf-d a.nwf-wa.nwf-wa:not(.nw-dark) * { color: #111 !important; }
.nanoweh-wa-float.nw-dark { background: #000 !important; color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
/* Botón WhatsApp flotante (móvil) */
.nanoweh-wa-float { display: none; }
@media (max-width: 899px) {
  .nanoweh-wa-float { display: flex; align-items: center; gap: 7px; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #fff; color: #000; border: 1.5px solid #000; border-radius: 999px; padding: 5px 13px 5px 5px; font: 700 11px/1 "Space Mono", monospace; letter-spacing: .2px; text-decoration: none; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
  .nanoweh-wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .nanoweh-wa-float img { width: 26px; height: 26px; display: block; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
