/* Portada de ketocis.com: base, intro de la «O» y hero (red de hexágonos, plato de macros y tarjetas flotantes).
   Las secciones siguientes están en portada-secciones.css. Prefijo kp- (portada) y kc-intro- (intro). */
html, body { background-color: #0B1120 !important; overflow-x: clip !important; }
.kp { --kp-fondo: #0B1120; --kp-panel: #111a2e; --kp-borde: rgba(255,255,255,.08); --kp-texto: #e2e8f0; --kp-suave: #94a3b8; --kp-acento: #00C896;
	--kp-azul: #60a5fa; --kp-ambar: #fbbf24; font-family: 'Inter', sans-serif; color: var(--kp-texto); background: var(--kp-fondo); width: 100vw;
	margin: 0 calc(50% - 50vw) !important; max-width: none !important; overflow: hidden; }
.kp *, .kp *::before, .kp *::after { box-sizing: border-box; }
.wp-block-post-content:has(> .kp), main.wp-block-group:has(.kp) { padding-top: 0 !important; margin-top: 0 !important; }
.kp a { color: var(--kp-acento); text-decoration: none; }
.kp h1, .kp h2, .kp h3 { color: #fff; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.kp p { color: var(--kp-suave); line-height: 1.7; margin: 0 0 14px; }
.kp-sec { max-width: 1240px; margin: 0 auto; padding: 96px 20px; position: relative; }
.kp-etiqueta { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--kp-acento); background: rgba(0,200,150,.1); border: 1px solid rgba(0,200,150,.25); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.kp-etiqueta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kp-acento); box-shadow: 0 0 0 0 rgba(0,200,150,.6); animation: kpLatido 2.4s infinite; }
.kp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--kp-acento); transition: transform .25s, box-shadow .25s, background .25s; }
.kp-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,200,150,.25); }
.kp-btn-lleno { background: var(--kp-acento); color: #052e22 !important; }
.kp-btn-borde { color: #fff !important; border-color: rgba(255,255,255,.25); }
.kp-btn-borde:hover { border-color: var(--kp-acento); }

/* Intro: la «O» del logo se llena como un medidor y deja paso al nombre. Solo con html.kc-intro (primera visita de la sesión). */
.kc-intro-capa { display: none; }
html.kc-intro .kc-intro-capa { display: flex; position: fixed; inset: 0; z-index: 100000; background: #0B1120; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	animation: kcIntroFuera .7s ease 2.5s forwards; }
.kc-intro-o { width: 120px; height: 120px; transform: rotate(-90deg); }
.kc-intro-pista { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.kc-intro-arco { fill: none; stroke: #00C896; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 290; stroke-dashoffset: 290; animation: kcIntroArco 1.3s cubic-bezier(.65,0,.35,1) .15s forwards; filter: drop-shadow(0 0 8px rgba(0,200,150,.6)); }
.kc-intro-aguja { stroke: #fff; stroke-width: 7; stroke-linecap: round; transform-origin: 60px 60px; transform: scaleY(0); animation: kcIntroAguja .45s ease 1.35s forwards; }
.kc-intro-marca { font: 800 2.6rem/1 'Inter', sans-serif; color: #fff; letter-spacing: -.03em; opacity: 0; transform: translateY(14px); animation: kcIntroTexto .6s ease 1.55s forwards; }
.kc-intro-marca b { color: #00C896; }
.kc-intro-lema { font: 500 .95rem 'Inter', sans-serif; color: #94a3b8; opacity: 0; animation: kcIntroTexto .6s ease 1.8s forwards; }
@keyframes kcIntroArco { to { stroke-dashoffset: 0; } }
@keyframes kcIntroAguja { to { transform: scaleY(1); } }
@keyframes kcIntroTexto { to { opacity: 1; transform: none; } }
@keyframes kcIntroFuera { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
@keyframes kpLatido { 0% { box-shadow: 0 0 0 0 rgba(0,200,150,.6); } 70% { box-shadow: 0 0 0 10px rgba(0,200,150,0); } 100% { box-shadow: 0 0 0 0 rgba(0,200,150,0); } }

/* Hero */
.kp-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 85px; }
.kp-red { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.kp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 75% 45%, rgba(0,200,150,.14), transparent 70%), linear-gradient(to bottom, transparent 70%, #0B1120); }
.kp-hero-in { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 40px 20px 60px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; width: 100%; }
.kp-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.04; margin-bottom: 22px; }
.kp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #00C896, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kp-hero-txt p { font-size: 1.15rem; max-width: 560px; margin-bottom: 30px; }
.kp-botones { display: flex; gap: 14px; flex-wrap: wrap; }
.kp-cifras { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.kp-cifra strong { display: block; font-size: 1.9rem; color: #fff; font-weight: 800; }
.kp-cifra span { color: var(--kp-suave); font-size: .9rem; }
.kp-plato { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin: 0 auto; }
.kp-anillo { position: absolute; inset: 0; transform: rotate(-90deg); }
.kp-anillo circle { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.kp-anillo .kp-pista { stroke: rgba(255,255,255,.07); }
.kp-seg { stroke-dasharray: 0 100; animation: kpSeg 1.6s cubic-bezier(.65,0,.35,1) both; }
.kp-seg-grasa { stroke: var(--kp-acento); --kp-tramo: 68 100; animation-delay: .3s; }
.kp-seg-prot { stroke: var(--kp-azul); --kp-tramo: 20 100; stroke-dashoffset: -70; animation-delay: .9s; }
.kp-seg-carb { stroke: var(--kp-ambar); --kp-tramo: 6 100; stroke-dashoffset: -92; animation-delay: 1.3s; }
@keyframes kpSeg { from { stroke-dasharray: 0 100; opacity: 0; } 8% { opacity: 1; } to { stroke-dasharray: var(--kp-tramo); opacity: 1; } }
.kp-plato-foto { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 10px rgba(255,255,255,.03); animation: kpGira 60s linear infinite; }
.kp-plato-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
@keyframes kpGira { to { transform: rotate(360deg); } }
.kp-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(17,26,46,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--kp-borde); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 18px 40px rgba(0,0,0,.4); animation: kpFlota 6s ease-in-out infinite; z-index: 3; }
.kp-chip img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.kp-chip b { display: block; color: #fff; font-size: .92rem; }
.kp-chip span { color: var(--kp-acento); font-size: .8rem; font-weight: 700; }
.kp-chip-1 { top: 4%; left: -6%; } .kp-chip-2 { top: 44%; right: -3%; animation-delay: -2s; } .kp-chip-3 { bottom: 4%; left: 2%; animation-delay: -4s; }
@keyframes kpFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.kp-leyenda { display: flex; gap: 16px; justify-content: center; margin-top: 18px; font-size: .82rem; color: var(--kp-suave); flex-wrap: wrap; }
.kp-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Entrada del hero; con la intro en pantalla, todo espera a que la «O» termine. */
.kp-hero-txt > * { animation: kpSube .9s cubic-bezier(.16,1,.3,1) both; }
.kp-hero-txt > :nth-child(2) { animation-delay: .1s; } .kp-hero-txt > :nth-child(3) { animation-delay: .2s; } .kp-hero-txt > :nth-child(4) { animation-delay: .3s; } .kp-hero-txt > :nth-child(5) { animation-delay: .4s; }
.kp-plato-caja { animation: kpSube 1.1s cubic-bezier(.16,1,.3,1) .25s both; }
@keyframes kpSube { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
html.kc-intro .kp-hero-txt > *, html.kc-intro .kp-plato-caja { animation-delay: 2.7s; }
html.kc-intro .kp-seg-grasa { animation-delay: 3s; } html.kc-intro .kp-seg-prot { animation-delay: 3.5s; } html.kc-intro .kp-seg-carb { animation-delay: 3.9s; }

@media (max-width: 968px) {
	.kp-hero-in { grid-template-columns: 1fr; gap: 40px; padding-top: 30px; text-align: left; }
	.kp-sec { padding: 72px 18px; }
	.kp-plato { width: min(86%, 380px); }
	.kp-chip { transform: scale(.88); } .kp-chip-1 { left: -4%; } .kp-chip-2 { right: -6%; }
}
@media (prefers-reduced-motion: reduce) {
	.kp *, .kp *::before { animation: none !important; transition: none !important; }
	.kp-seg-grasa { stroke-dasharray: 68 100; } .kp-seg-prot { stroke-dasharray: 20 100; } .kp-seg-carb { stroke-dasharray: 6 100; }
}
