/* LuLü · estilos de la nueva estructura (inicio general + educación, salud y asesorías). Se carga después de estilos.css */

.nav a[aria-current="page"]::after { width: 100%; }
/* Párrafos un poco más juntos */
body { line-height: 1.55; }
main p { margin-top: 0; margin-bottom: .7em; }
.hero-lead { margin-bottom: 22px; }
.about-text p { margin-bottom: .7em; }
.about-text .role { margin: 4px 0 16px; }
/* Portada animada (solo inicio): círculo que gira detrás de la persona y palabra que cambia */
.hero-visual.animada { aspect-ratio: 1056 / 1218; }
.hero-visual.animada .halo { inset: auto; left: 7%; top: 2.46%; width: 85.6%; aspect-ratio: 1; }
.hero-visual.animada .hero-img { position: relative; }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 9px 14px; font-size: .82rem; font-weight: 600; color: var(--negro); box-shadow: 0 10px 28px rgba(17,17,20,.10); white-space: nowrap; }
.chip svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.chip.c1 { top: 16%; left: -8%; animation: flotar 5s ease-in-out infinite; }
.chip.c2 { top: 45%; right: -6%; animation: flotar 5.6s ease-in-out .8s infinite; }
.chip.c3 { bottom: 18%; left: -2%; animation: flotar 6s ease-in-out 1.6s infinite; }
@keyframes flotar { 50% { transform: translateY(-10px); } }
@media (max-width: 760px) { .chip { font-size: .7rem; padding: 6px 10px; } .chip svg { width: 14px; height: 14px; } .chip.c1 { left: -14%; } .chip.c2 { right: -14%; } .chip.c3 { left: -10%; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }
.hero-title .rota { display: inline-block; background: var(--degradado-lineal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rota.entra { animation: palabra .55s ease both; }
@keyframes palabra { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
/* Especialidades: misma grilla de servicios, con foto */
.caminos .feat-grid { grid-template-columns: repeat(3, 1fr); }
.caminos .feat { text-decoration: none; display: block; }
.caminos .feat img { width: 78%; max-width: 280px; height: auto; margin: 0 auto 24px; mix-blend-mode: multiply; }
.caminos .feat:hover img { transform: translateY(-4px); }
.caminos .feat img { transition: transform .3s; }
@media (max-width: 980px) { .caminos .feat-grid { grid-template-columns: 1fr 1fr 1fr; } .caminos .feat { padding: 30px 14px; } }
@media (max-width: 760px) { .caminos .feat-grid { grid-template-columns: 1fr; } .caminos .feat img { width: 60%; } }
@media (max-width: 760px) { .hero-title span { white-space: normal; } }

/* Espacios más compactos en todas las secciones */
.features { padding: 80px 0 0; }
.section-title { line-height: 1.15; margin: 0 auto 40px; }
.feat { padding: 6px 24px 56px; }
.feat svg { margin: 0 auto 16px; }
.feat h3 { margin-bottom: 8px; line-height: 1.25; }
.feat p { line-height: 1.5; }
.feat-link { margin-top: 10px; }
.tools { padding: 50px 0 64px; }
.tools .kicker { margin-bottom: 24px; }
.stats { padding: 72px 0; }
.stat span { margin-top: 6px; line-height: 1.45; }
.about { padding: 24px 0 80px; }
.about-in { gap: 56px; }
.faq { padding: 80px 0; }
.faq-in { gap: 56px; }
.faq-item summary { padding: 18px 40px 18px 0; }
.faq-item p { margin: 0 0 18px; line-height: 1.5; }
.contact { padding: 80px 0; }
.contact-text h2 { margin-bottom: 10px; }
.contact-text > p { margin: 0 0 22px; }
.certificaciones { padding: 80px 0; }
.cert-head { margin-bottom: 32px; }
.cert { padding: 16px 0; }
.cta-final { padding: 80px 0; }
.cta-final h2 { margin: 0 auto 26px; }
.hero { padding: 52px 0 70px; }
.eyebrow { margin-bottom: 28px; }
.hero-bottom { margin-top: 22px; }
.caminos .feat img { margin-bottom: 18px; }
@media (max-width: 980px) { .feat { padding: 30px 20px; } }
@media (max-width: 760px) { .features { padding-top: 56px; } .section-title { margin-bottom: 24px; } .feat, .feat:nth-child(even) { padding: 26px 8px; } .stats, .faq, .contact, .certificaciones, .cta-final { padding: 56px 0; } .about { padding: 16px 0 56px; } .hero { padding: 28px 0 48px; } }
@media (prefers-reduced-motion: reduce) { .rota.entra { animation: none; } }
/* ===== Animación (todas las páginas) ===== */
@keyframes subir { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes abrir { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes flotar-icono { 50% { transform: translateY(-5px); } }
@keyframes chip-entra { from { opacity: 0; } to { opacity: 1; } }
body .hero .eyebrow, body .hero-title .l1, body .hero-title .l2, body .hero-title .l3, body .hero-bottom { animation: subir .8s cubic-bezier(.2,.7,.2,1) both; }
body .hero .eyebrow { animation-delay: .05s; }
body .hero-title .l1 { animation-delay: .15s; }
body .hero-title .l2 { animation-delay: .28s; }
body .hero-title .l3 { animation-delay: .41s; }
body .hero-bottom { animation-delay: .6s; }
body .hero-visual { animation: aparecer 1s cubic-bezier(.2,.7,.2,1) .25s both; }
body .hero-visual .chip.c1 { animation: chip-entra .6s ease .9s both, flotar 5s ease-in-out 1.5s infinite; }
body .hero-visual .chip.c2 { animation: chip-entra .6s ease 1.05s both, flotar 5.6s ease-in-out 1.8s infinite; }
body .hero-visual .chip.c3 { animation: chip-entra .6s ease 1.2s both, flotar 6s ease-in-out 2.1s infinite; }
body .hero-visual .hero-img { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
body .hero-visual .chip { translate: calc(var(--tx, 0px) * -1.8) calc(var(--ty, 0px) * -1.8); transition: translate .5s cubic-bezier(.2,.7,.2,1); }
body .doodle path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: trazo 1.6s ease .9s forwards; }
body .revelar { transform: translateY(56px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
body .revelar.visible { transform: none; }
body .tools-list li.revelar { transform: translateY(18px) scale(.8); transition: opacity .5s ease, transform .7s cubic-bezier(.34,1.56,.64,1), color .2s; }
body .tools-list li.revelar.visible { transform: none; }
body .tools-list li.visible svg { animation: flotar-icono 4s ease-in-out infinite; }
body .tools-list li:nth-child(2) svg { animation-delay: .5s; }
body .tools-list li:nth-child(3) svg { animation-delay: 1s; }
body .tools-list li:nth-child(4) svg { animation-delay: 1.5s; }
body .tools-list li:nth-child(5) svg { animation-delay: 2s; }
body .tools-list li:nth-child(6) svg { animation-delay: 2.5s; }
body .faq-item[open] > p { animation: abrir .4s ease both; }
/* Tarjetas de los 3 caminos: sin cuadro blanco; al pasar el mouse sube la foto */
.caminos .feat img { mix-blend-mode: normal; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.caminos .feat:hover img { transform: translateY(-8px) scale(1.05); }
.caminos .feat h3, .caminos .feat p, .caminos .feat .feat-link { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.caminos .feat:hover h3, .caminos .feat:hover p, .caminos .feat:hover .feat-link { transform: translateY(-4px); }
/* ===== Inicio: movimiento en toda la página, como la referencia ===== */
.hero-title .rota-caja { display: inline-block; position: relative; font-weight: inherit; }
.hero-title .rota-caja .rota { display: inline-block; }
.subrayado { position: absolute; left: 2%; right: 2%; bottom: -.1em; width: 96%; height: .26em; overflow: visible; }
.subrayado path { fill: none; stroke: #ec4c7a; stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 220; stroke-dashoffset: 220; animation: trazo .9s ease .9s forwards; }
.subrayado.otra path { animation: trazo .8s ease .15s forwards; }
.chispa { display: inline-block; width: .9em; height: .9em; margin: -.12em .1em 0 -.2em; vertical-align: top; overflow: visible; }
.chispa path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.chispa path:nth-child(1) { stroke: #4aa8f0; } .chispa path:nth-child(2) { stroke: #ec4c7a; } .chispa path:nth-child(3) { stroke: #f5b642; }
.visible .chispa path, .hero-title .chispa path { animation: trazo .5s ease forwards; }
.visible .chispa path:nth-child(2), .hero-title .chispa path:nth-child(2) { animation-delay: .12s; }
.visible .chispa path:nth-child(3), .hero-title .chispa path:nth-child(3) { animation-delay: .24s; }
.hero-title .chispa path { animation-delay: 1.1s; }
.hero-title .chispa path:nth-child(2) { animation-delay: 1.22s; }
.hero-title .chispa path:nth-child(3) { animation-delay: 1.34s; }
body.pag-inicio .par { translate: 0 var(--py, 0px); }
body.pag-inicio .big-image picture { display: block; overflow: hidden; border-radius: var(--radio) var(--radio) 0 0; }
body.pag-inicio .big-image img { scale: 1.14; }
body.pag-inicio .about-photo::before { animation: flotar-icono 6s ease-in-out infinite; }
@media (max-width: 760px) { body .revelar { transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { animation: none !important; transition: none !important; }
  body .revelar, body .hero-visual .chip { opacity: 1 !important; transform: none !important; }
  body .doodle path, .subrayado path, .chispa path { stroke-dashoffset: 0; }
  body.pag-inicio .par { translate: none; }
}
/* ===== Inicio: cada bloque entra desde un lado distinto, como en la referencia ===== */
@keyframes pop { from { opacity: 0; transform: scale(.55); } 70% { opacity: 1; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes desde-izq-k { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes desde-der-k { from { opacity: 0; transform: translateX(80px) scale(.96); } to { opacity: 1; transform: none; } }
body.pag-inicio .hero-title .l1, body.pag-inicio .hero-title .l2, body.pag-inicio .hero-title .l3, body.pag-inicio .hero .eyebrow, body.pag-inicio .hero-bottom { animation-name: desde-izq-k; animation-duration: 1s; }
body.pag-inicio .hero-visual { animation-name: desde-der-k; animation-duration: 1.2s; }
body.pag-inicio .revelar.desde-izq { transform: translateX(-70px); }
body.pag-inicio .revelar.desde-der { transform: translateX(90px); }
body.pag-inicio .revelar.crece { transform: scale(.86); }
body.pag-inicio .revelar.solo-luz { transform: none; }
body.pag-inicio .revelar.visible.visible { transform: none; }
body.pag-inicio .revelar.barrido { opacity: 1; transform: none; }
body.pag-inicio .revelar.barrido img { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.7,0,.2,1); }
body.pag-inicio .revelar.barrido.visible img { clip-path: inset(0 0 0 0); }
/* servicios: primero salta el icono, luego el texto entra desde la izquierda, columna por columna */
body.pag-inicio .features:not(.caminos) .feat > svg { opacity: 0; }
body.pag-inicio .features:not(.caminos) .feat > h3, body.pag-inicio .features:not(.caminos) .feat > p { opacity: 0; }
body.pag-inicio .features:not(.caminos) .feat.visible > svg { animation: pop .8s cubic-bezier(.34,1.4,.64,1) var(--d, 0ms) both; }
body.pag-inicio .features:not(.caminos) .feat.visible > h3 { animation: desde-izq-k .8s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + 250ms) both; }
body.pag-inicio .features:not(.caminos) .feat.visible > p { animation: desde-izq-k .8s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + 380ms) both; }
/* tarjetas: entran desde la derecha una tras otra y la foto salta */
body.pag-inicio .caminos .feat.visible img { animation: pop .9s cubic-bezier(.34,1.4,.64,1) calc(var(--d, 0ms) + 150ms) both; }
@media (max-width: 760px) {
  body.pag-inicio .revelar.desde-izq { transform: translateX(-36px); }
  body.pag-inicio .revelar.desde-der { transform: translateX(40px); }
}
@media (prefers-reduced-motion: reduce) { body.pag-inicio .revelar.barrido img { clip-path: none; } body.pag-inicio .features .feat > * { opacity: 1 !important; } }
/* ===== Títulos y bloques más compactos en todas las páginas ===== */
.section-title, .faq-in h2, .contact-text h2, .cert-head h2, .about-text h2, .cta-final h2 { line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.kicker { margin-bottom: 8px; }
.section-title { margin-bottom: 34px; }
.faq { padding: 64px 0; }
.faq-in { gap: 48px; }
.contact { padding: 64px 0; }
.contact-text h2 { margin-bottom: 8px; }
.contact-text > p { margin: 0 0 16px; line-height: 1.45; }
.contact-list li { padding: 12px 0; }
.certificaciones { padding: 64px 0; }
.cert-head { margin-bottom: 28px; gap: 20px; }
.cert { padding: 14px 0; }
.cta-final { padding: 60px 0; }
.cta-final h2 { margin: 0 auto 20px; max-width: 760px; }
/* los trazos de colores no empujan el texto */
h2 { position: relative; }
h2 > .chispa { position: absolute; left: -.85em; top: -.45em; margin: 0; }
.section-title > .chispa { left: auto; right: 100%; margin-right: -.2em; }
@media (max-width: 760px) {
  .faq, .contact, .certificaciones { padding: 44px 0; } .cta-final { padding: 44px 0; }
  .faq-in { gap: 24px; } .section-title { margin-bottom: 22px; }
  h2 > .chispa { left: -.2em; top: -.9em; }
}
/* Salud: el título largo no debe quedar debajo de la foto */
body[data-servicio="Marketing para salud"] .hero-title .l3 { padding-left: 10%; }
@media (max-width: 980px) { body[data-servicio="Marketing para salud"] .hero-title .l3 { padding-left: 6%; } }
