.root{box-sizing:border-box}
:root{
	--dark:#071a2b; /* azul oscuro */
	--turquoise:#14b8b0;
	--green:#0b6b4f;
	--muted:#8a96a3;
	--page-bg:#042029; /* base oscura azul verdosa */
	--card-dark:#071722;
	--text-light:#e6f7f4; /* main readable text */
	--nav-height:56px;
	--text-muted:#bcdad6; /* secondary text on dark */
	--cta-contrast:#052334; /* dark text for light CTAs */
}
*{box-sizing:border-box}
/* Primary UI font: prefer Nunito, fallback to Quicksand, M PLUS Rounded 1c, Varela Round, then system */
html{scroll-behavior:smooth;background:var(--page-bg);height:auto;overflow-x:clip}
body{font-family:'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;margin:0;padding:0;border:0;color:#e6f7f4;background:var(--page-bg);line-height:1.45;font-weight:400;position:relative;overflow-x:clip;padding-top:0}

/* Hero */
.hero{background:linear-gradient(180deg,var(--dark),#052334);color:#e8f7f6}
.hero-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:14px}
.logo{width:96px;height:auto}
.hero h1{margin:0;font-size:28px}

/* VISIÓN section: two-column desktop layout with background and strong overlay */
.vision-section{position:relative;padding:10px 0;min-height:350px;max-height:350px;display:flex;align-items:center;overflow:hidden}
/* Background layer (separate pseudo-element for controlled filter/desaturation) */
.vision-section::before{content:'';position:absolute;inset:-40% 0 -40% 0;background-image:url('assets/images/fondo.webp');background-size:cover;background-position:center 35%;background-repeat:no-repeat;filter:saturate(0.75) brightness(0.5);z-index:0;transform-origin:center;transform:translate3d(0, var(--vision-parallax, 0px), 0) scale(var(--vision-scale,1.12));will-change:transform}
/* Dark overlay above background but kept <=60% to keep illustration visible */
.vision-section::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,0.55);pointer-events:none;z-index:1}
.vision-grid{position:relative;display:grid;grid-template-columns:35% 65%;gap:24px;align-items:center;z-index:3;max-width:1100px;margin:0 auto;padding:0 20px}
.vision-image{display:flex;align-items:center;justify-content:flex-start;position:relative;padding-left:8px}
/* subtle turquoise halo behind the character, behind content but above background */
.vision-image::before{content:'';position:absolute;left:6%;top:50%;transform:translateY(-50%);width:340px;height:340px;border-radius:50%;background:radial-gradient(circle at 40% 40%, rgba(20,184,176,0.14), rgba(20,184,176,0.05) 40%, transparent 60%);filter:blur(36px) saturate(95%);z-index:2;pointer-events:none}
/* Character size increased to be visible but balanced */
.vision-image img{width:100%;height:auto;max-width:220px;border-radius:10px;box-shadow:0 12px 34px rgba(2,6,23,0.6);object-fit:contain;position:relative;z-index:3;opacity:0.98}
.vision-copy{display:flex;flex-direction:column;gap:10px;justify-content:center}
.vision-copy h1{font-size:32px;margin:0 0 6px;line-height:1.05}
.vision-copy .lead{color:var(--text-muted);margin:0;font-size:15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:540px}
.hero-ctas{margin-top:12px}

@media (max-width:900px){
	.vision-section{min-height:auto;max-height:none;padding-top:60px;}
	.vision-grid{grid-template-columns:1fr;gap:12px;text-align:center;padding:0 12px}
	.vision-image{justify-content:center}
	.vision-image::before{left:50%;transform:translate(-50%,-50%);width:220px;height:220px}
	.vision-image img{max-width:140px}
	.vision-copy h1{font-size:26px}
}

/* Ensure background always covers: reduce inset/scale on smaller screens */
@media (max-width:900px){
  .vision-section::before{
    inset:-18% 0 -18% 0;
    transform:translate3d(0, var(--vision-parallax, 0px), 0) scale(1.06);
    background-position:center 45%;
  }
}

/* Use rounded game-friendly font for most UI elements (titles, nav, buttons, cards) */
h1,h2,h3,h4,h5,h6{font-family:'Nunito', system-ui, sans-serif;color:var(--text-light);letter-spacing:0.4px}
h1{font-weight:1000}
h2{font-weight:900}
h3,h4{font-weight:600}
.hero-ctas{margin-top:12px}
.btn-primary{box-shadow:0 10px 40px rgba(20,184,176,0.22);transform:translateZ(0)}
.btn-primary, .btn-secondary{position:relative;z-index:4}
.btn-secondary{box-shadow:0 8px 28px rgba(0,0,0,0.45)}

main{max-width:1100px;margin:12px auto;padding:0 16px}

/* Global compacting */
section{padding:10px 0;margin:8px 0}
section .container{padding:12px}
p{margin:0 0 10px;color:var(--text-muted)}
h2{margin:8px 0}
h3,h4{margin:6px 0}

/* Ensure sections compensate for fixed nav */
section, .block-sep{scroll-margin-top: calc(var(--nav-height) + 12px)}

/* Compact cards */
.challenge, .step{padding:10px;border-radius:8px}
.challenge.card{background:linear-gradient(180deg,#02171a,#072427);padding:14px;border-radius:10px;color:var(--text-light);box-shadow:0 8px 20px rgba(2,6,23,0.45)}
.challenge h4{margin:0 0 6px}
.challenge-meta{display:flex;gap:10px;align-items:center;margin-top:8px}
.badge{background:rgba(255,255,255,0.06);padding:6px 8px;border-radius:6px;font-size:13px;color:var(--text-muted)}
.reward{font-weight:600;color:var(--turquoise)}
.challenge-list.compact .challenge{flex:1 1 220px}

h2{color:var(--text-light);margin-top:8px}
.muted{color:var(--muted)}

/* Enhanced title and icon interactions */
/* 1) Slightly increase H2 size (15-20%) */
h2{font-size:calc(1rem * 1.18)}

/* 2) Increase block-title (20-30%) */
.block-title{font-size:calc(1.25rem * 1.25);font-weight:800}

/* 3) Icon interaction: elevation, scale, turquoise glow */
.block-sep .block-icon, h2::before{transition:transform 220ms ease,box-shadow 220ms ease,filter 220ms ease}
.block-sep .block-icon:hover{transform:translateY(-6px) scale(1.08);box-shadow:0 18px 48px rgba(20,184,176,0.12);filter:drop-shadow(0 8px 20px rgba(20,184,176,0.18))}

/* 4) On icon hover, illuminate the associated title (approx) */
.block-sep:hover .block-text .block-title, .block-sep:hover .block-text .block-sub{color:rgba(20,184,176,0.96);text-shadow:0 8px 28px rgba(20,184,176,0.06)}

/* 5) Animated underline for H2 */
h2{position:relative;overflow:visible}
h2::after{content:'';position:absolute;left:0;bottom:-6px;height:3px;width:0;background:linear-gradient(90deg,var(--turquoise),rgba(20,184,176,0.7));transition:width 260ms ease}
h2:hover::after{width:180px}
/* Keep animations subtle and under 300ms */
.block-sep .block-icon, h2::after{transition-duration:260ms}

/* How it works */
.how{background:transparent;padding:12px;border-radius:10px;margin-bottom:8px}
.steps{display:flex;gap:12px;margin-top:16px}
.step{flex:1;background:linear-gradient(180deg,#062c2c,#093233);padding:10px;border-radius:8px;color:var(--text-light)}
.step strong{display:block;font-size:20px;color:var(--turquoise)}

.gallery{margin-bottom:8px}

/* New gallery grid: professional game-folio style */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:start}
.gallery-item{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));border:1px solid rgba(255,255,255,0.04);border-radius:12px;overflow:hidden;transition:transform 260ms ease,box-shadow 260ms ease}
.gallery-item img{display:block;width:100%;height:320px;object-fit:contain;transition:transform 360ms cubic-bezier(.2,.9,.2,1),filter 260ms ease}
.gallery-item figcaption{padding:12px 14px;background:linear-gradient(180deg,rgba(0,0,0,0.04),transparent);color:var(--text-light);font-weight:700;text-align:center;font-size:15px}
.gallery-item:hover{transform:translateY(-4px);box-shadow:0 18px 48px rgba(2,6,23,0.36);border-color:rgba(20,184,176,0.08)}
.gallery-item:hover img{transform:scale(1.03);filter:brightness(1.03)}

@media (max-width:900px){
  .gallery-item img{
    height:auto;
    max-height:none;
  }
}

@media (max-width:600px){
  .gallery-item img{
    height:auto;
    max-height:none;
  }
}


/* Lightbox styles */
#lightbox{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:100000;pointer-events:none}
.lightbox-hidden{visibility:hidden;opacity:0;transition:opacity 260ms ease,visibility 260ms ease}
.lightbox-visible{visibility:visible;opacity:1;pointer-events:auto}
.lightbox-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.75);backdrop-filter:blur(4px)}
.lightbox-panel{position:relative;max-width:1200px;width:92%;max-height:90vh;padding:18px;display:flex;align-items:center;gap:12px}
.lb-content{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.lb-image{max-width:100%;max-height:78vh;object-fit:contain;border-radius:8px;box-shadow:0 30px 90px rgba(0,0,0,0.7);display:block}
.lb-caption{margin-top:12px;color:var(--text-light);font-weight:600;text-align:center}
.lb-close,.lb-prev,.lb-next{position:absolute;background:rgba(0,0,0,0.36);border:1px solid rgba(255,255,255,0.04);color:var(--text-light);padding:8px 12px;border-radius:8px;cursor:pointer}
.lb-close{right:18px;top:12px}
.lb-prev{left:12px;top:50%;transform:translateY(-50%);font-size:28px;padding:10px 14px}
.lb-next{right:12px;top:50%;transform:translateY(-50%);font-size:28px;padding:10px 14px}
.lb-close:focus,.lb-prev:focus,.lb-next:focus{outline:3px solid rgba(20,184,176,0.2);outline-offset:4px}

@media (max-width:700px){
	.lb-prev{left:6px}
	.lb-next{right:6px}
	.lb-close{right:8px}
}

/* More pronounced zoom animation for lightbox image */
@keyframes lbZoomIn{ 
	from { transform: scale(0.94); opacity: 0.92; filter: blur(2px); }
	60% { transform: scale(1.04); opacity: 0.99; filter: blur(0.6px); }
	to { transform: scale(1.06); opacity: 1; filter: blur(0); }
}
.lightbox-visible .lb-image{ animation: lbZoomIn 420ms cubic-bezier(.2,.9,.2,1) both; }
.lightbox-hidden .lb-image{ transform: scale(0.96); opacity:0.92 }
@media (max-width:700px){
	.challenge.card{padding:12px}
}

/* Map */
.map{background:transparent;padding:12px;border-radius:10px;margin-bottom:8px}
.map-wrapper{position:relative;overflow:hidden;border-radius:8px}
.map-wrapper img{width:100%;height:auto;display:block}
/* dark overlay to improve legibility of any captions or nearby text */
.map-wrapper::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,6,23,0.18), rgba(2,6,23,0.32));pointer-events:none}

/* Challenges */
.challenges{margin-bottom:8px}
.challenge-list{display:flex;gap:8px;flex-wrap:wrap}
.challenge{flex:1 1 220px;background:linear-gradient(180deg,#0b3940,#063235);padding:12px;border-radius:8px}
.challenge h3{margin:0 0 6px}
.challenge h4{margin:0 0 6px}

/* Footer */
.site-footer{max-width:1100px;margin:48px auto 0;padding:22px 16px 34px;text-align:center;position:relative}
/* línea fina que se desvanece hacia los lados */
.site-footer::before{content:"";position:absolute;top:0;left:50%;width:min(420px,70%);height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(141,240,216,.25),transparent)}
.footer-note{margin:0;font-size:12px;letter-spacing:.06em;color:var(--text-muted);opacity:.55}
.footer-sep{margin:0 6px;opacity:.6}

/* Footer overall color */

/* Section icons and subtle hover effects */
h2{
  position:relative;
  padding-left:0;
  transition:
    color .25s ease,
    transform .25s ease;
}
h2::before{
  display:none;
}
h2::after{
  content:"";

  position:absolute;

  left:0;
  bottom:-2px;

  width:0;
  height:3px;

  border-radius:999px;

  background:linear-gradient(
    90deg,
    var(--turquoise),
    rgba(20,184,176,.25)
  );

  transition:width .25s ease;
}
h2:hover::before{

  transform:
    translateY(-50%)
    scale(1.08);

  border-color:
    rgba(20,184,176,.8);

  box-shadow:
    0 0 30px rgba(20,184,176,.25),
    0 0 60px rgba(20,184,176,.12);

}
/* Cards elevate slightly on hover with illuminated border */
.card, .challenge.card{transition:transform 200ms ease,box-shadow 220ms ease,border-color 180ms ease}
.card:hover, .challenge.card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(2,6,23,0.36);border:1px solid rgba(20,184,176,0.06)}

/* Buttons: smooth transitions and subtle lift */
.btn{transition:transform 220ms cubic-bezier(.2,.9,.2,1),box-shadow 220ms ease,background 160ms ease}
.btn:hover{transform:scale(1.02);box-shadow:0 18px 40px rgba(20,184,176,0.12)}

/* Discover button: subtle idle "wave" pulses that intensify on hover/focus */
#discover-btn{display:inline-block;position:relative;z-index:71;overflow:visible}
#discover-btn::before, #discover-btn::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(1);border-radius:999px;pointer-events:none;z-index:70}
/* make initial pulses slightly visible so idle effect is noticeable */
#discover-btn::before{width:130%;height:130%;background:radial-gradient(circle, rgba(20,184,176,0.18) 0%, rgba(20,184,176,0.08) 30%, transparent 55%);opacity:0.06}
#discover-btn::after{width:210%;height:210%;background:radial-gradient(circle, rgba(20,184,176,0.12) 0%, rgba(20,184,176,0.05) 30%, transparent 55%);opacity:0.04}

/* Fallback/compatible glow: animate box-shadow for browsers that may not show large pseudo backgrounds */
@keyframes discoverBoxPulse {
  /* expand spread outward and diffuse (no inward bounce) */
  0% { box-shadow: 0 8px 28px rgba(20,184,176,0.12), 0 0 0 0 rgba(20,184,176,0.06); }
  60% { box-shadow: 0 40px 96px rgba(20,184,176,0.10), 0 0 0 40px rgba(20,184,176,0.06); }
 100% { box-shadow: 0 80px 140px rgba(20,184,176,0.04), 0 0 0 80px rgba(20,184,176,0); }
}

/* Attach subtle infinite outward glow to the button itself (Edge-friendly) */
#discover-btn{animation:discoverBoxPulse 3.4s ease-out infinite;}

/* Speed up glow on hover/focus */
#discover-btn:hover, #discover-btn:focus, #discover-btn:focus-visible{animation-duration:1.2s}

@keyframes discoverPulse {
  /* expand from small center to large diffused edge; monotonic outward motion */
  0% { transform:translate(-50%,-50%) scale(0.28); opacity:0.36 }
  50% { transform:translate(-50%,-50%) scale(1.45); opacity:0.14 }
 100% { transform:translate(-50%,-50%) scale(2.6); opacity:0 }
}

/* Idle pulses: overlapping outward-only pulses with ease-out timing */
#discover-btn::before{animation:discoverPulse 3.4s ease-out infinite;animation-fill-mode:both}
#discover-btn::after{animation:discoverPulse 3.4s ease-out infinite 1.7s;animation-fill-mode:both}

/* On hover or focus, speed up and increase opacity slightly while keeping outward expansion */
#discover-btn:hover::before, #discover-btn:focus::before, #discover-btn:focus-visible::before{animation-duration:1.6s;opacity:0.54}
#discover-btn:hover::after, #discover-btn:focus::after, #discover-btn:focus-visible::after{animation-duration:1.6s;opacity:0.42}

/* Also nudge the button itself slightly when hovered/focused to reinforce call-to-action */
#discover-btn:hover, #discover-btn:focus, #discover-btn:focus-visible{transform:translateY(-2px) scale(1.03)}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
	#discover-btn::before, #discover-btn::after{animation:none;opacity:0}
	#discover-btn:hover, #discover-btn:focus{transform:none}
}

/* Icons (SVG) color change on hover */
svg{transition:color 160ms ease,fill 160ms ease,transform 160ms ease}
.music-toggle:hover svg{color:var(--turquoise);fill:var(--turquoise);transform:translateY(-2px)}


/* Floating music toggle */
.music-toggle{position:fixed;right:20px;bottom:20px;background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02));border:1px solid rgba(255,255,255,0.06);color:var(--text-light);width:56px;height:56px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;z-index:9999;box-shadow:0 10px 30px rgba(2,6,23,0.48);backdrop-filter:blur(6px);transition:transform 180ms ease,box-shadow 220ms ease,background 160ms}
.music-toggle .icon-off, .music-toggle .icon-on{width:22px;height:22px;display:block}
.music-toggle .icon-on{display:none}
.music-toggle.on{background:linear-gradient(180deg, rgba(20,184,176,0.14), rgba(20,184,176,0.06));color:var(--turquoise);box-shadow:0 18px 40px rgba(20,184,176,0.16);transform:translateY(-3px)}
.music-toggle.on .icon-on{display:block}
.music-toggle.on .icon-off{display:none}
.music-toggle:focus-visible{outline:3px solid rgba(20,184,176,0.22);outline-offset:6px}

@media (max-width:480px){
	.music-toggle{right:14px;bottom:14px;width:48px;height:48px}
}

/* Responsive */
@media (max-width:800px){
	.steps{flex-direction:column}
}

/* Investor sections */
.investor-section{max-width:1100px;margin:8px auto;padding:8px;background:transparent}
.investor-section .container{background:linear-gradient(180deg,var(--card-dark), #071a22);padding:12px;border-radius:10px;box-shadow:0 6px 18px rgba(2,6,23,0.06)}
.investor-section .container p, .investor-section .container li{color:var(--text-muted)}

/* Corporate look for investor sections: cleaner, more formal */
.investor-section .container{background:linear-gradient(180deg,#06151a,#041018);border-radius:10px;padding:18px;border:1px solid rgba(255,255,255,0.04);box-shadow:0 10px 28px rgba(2,6,23,0.10)}
.investor-section h2{color:var(--text-light);letter-spacing:0.4px}
.investor-section .validators{gap:20px}

/* Visual separator that distinguishes investment -> product areas */
.product-section::before, .universe-section::before{
	content:"";
	display:block;
	width:100%;
	height:56px;
	margin:18px 0;
	background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(20,184,176,0.045) 25%, rgba(255,255,255,0.02));
	position:relative;
	border-top:1px solid rgba(255,255,255,0.03);
	border-bottom:1px solid rgba(255,255,255,0.02);
	box-shadow:inset 0 1px 0 rgba(255,255,255,0.02);
}

/* Immersive look for product/universe sections */
.product-section .container, .universe-section .container{background:linear-gradient(180deg, rgba(1,8,12,0.72), rgba(0,0,0,0.35));border-radius:14px;padding:18px;border:1px solid rgba(20,184,176,0.04);box-shadow:0 30px 80px rgba(2,6,23,0.6)}
.product-section h2, .universe-section h2{color:var(--text-light);text-shadow:0 18px 46px rgba(20,184,176,0.06)}

/* Slight accent bars for product area headings */
.product-section h2::before, .universe-section h2::before{content:"";display:inline-block;width:36px;height:6px;margin-right:10px;background:linear-gradient(90deg,var(--turquoise),rgba(20,184,176,0.6));vertical-align:middle;border-radius:4px}
.validators{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

/* Custom animated cursor (desktop only) */
#custom-cursor{display:none;pointer-events:none}

@media (hover: hover) and (pointer: fine){
	/* use a class to toggle global native-cursor hiding */
	.has-custom-cursor:not(.custom-cursor-paused) *:not(input):not(textarea):not(select):not([contenteditable]){cursor:none !important}
	.custom-cursor-paused #custom-cursor{display:none !important}

	#custom-cursor{display:block;position:fixed;left:0;top:0;width:44px;height:44px;z-index:99999;pointer-events:none;transform:translate(-50%,-50%);mix-blend-mode:normal}
	
	/* translucent white outer ring */
	#custom-cursor .cursor-outer{position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);border-radius:50%;border:2px solid rgba(255,255,255,0.28);opacity:1;transition:transform 220ms cubic-bezier(.2,.9,.2,1),border-color 180ms ease,opacity 180ms,box-shadow 220ms ease;will-change:transform,opacity;box-shadow:0 6px 20px rgba(255,255,255,0.03)}
	/* small solid white dot */
	#custom-cursor .cursor-inner{position:absolute;left:50%;top:50%;width:10px;height:10px;background:rgba(255,255,255,0.95);border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 10px 30px rgba(255,255,255,0.08);transition:transform 160ms ease,background 160ms ease,opacity 160ms ease,width 160ms ease,height 160ms ease;will-change:transform,opacity}

	/* ensure solid appearance regardless of page blending */
	#custom-cursor .cursor-inner, #custom-cursor .cursor-outer{mix-blend-mode:normal}

	/* Hover over clickable: enlarge outer, reduce opacity for depth, enlarge inner slightly */
	#custom-cursor.cursor--hover .cursor-outer{transform:translate(-50%,-50%) scale(1.6);border-color:rgba(255,255,255,0.96);opacity:0.85}
	#custom-cursor.cursor--hover .cursor-inner{transform:translate(-50%,-50%) scale(1.3);width:12px;height:12px;opacity:0.98}

	/* Active click */
	#custom-cursor.cursor--active .cursor-inner{transform:translate(-50%,-50%) scale(0.7);box-shadow:none;opacity:0.9}

	/* Dragging state */
	#custom-cursor.cursor--dragging .cursor-outer{transform:translate(-50%,-50%) scale(1.15) rotate(12deg);border-color:rgba(255,255,255,0.78)}
}

.hero-ctas{margin-top:8px;display:flex;gap:8px}
.btn{padding:10px 14px;border-radius:8px;text-decoration:none;display:inline-block;font-weight:700}
.btn-primary{background:var(--turquoise);color:var(--cta-contrast);box-shadow:0 14px 40px rgba(20,184,176,0.2);padding:12px 18px;font-weight:700}
/* Contact button: white text for high contrast on translucent bg */
.btn-secondary{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.12);color:#ffffff;backdrop-filter:blur(4px);padding:12px 18px;font-weight:600}

/* Focus and hover accessibility */
.btn:focus{outline:3px solid rgba(20,184,176,0.22);outline-offset:3px}
.btn:hover{transform:translateY(-2px)}

@media (max-width:600px){
	.hero-ctas{flex-direction:column}
}

/* Team collage specific styles */
.team-section .team-collage{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:1fr;gap:18px;align-items:stretch}
.team-section .member-card{background:linear-gradient(180deg,#062c2c,#042827);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:12px;align-items:flex-start;overflow:hidden;position:relative;border:1px solid rgba(255,255,255,0.03);transition:transform 220ms ease,box-shadow 220ms ease,border-color 180ms;min-height:auto;height:auto;}
.team-section .member-card .avatar-wrap{width:88px;height:88px;border-radius:50%;overflow:hidden;flex:0 0 88px;border:2px solid rgba(255,255,255,0.04);box-shadow:0 12px 30px rgba(2,6,23,0.35);display:flex;align-items:center;justify-content:center}
.team-section .member-card .avatar{width:100%;height:100%;object-fit:cover;display:block}
.team-section .member-meta{display:flex;flex-direction:column;gap:8px;width:100%;flex:1}
.team-section .member-meta .member-name{margin:0;font-size:18px;font-weight:700}
.team-section .member-meta .role{font-size:13px;color:var(--turquoise);font-weight:700}
.team-section .member-meta .bio-short{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:0}
.team-section .member-card .view-profile{margin-top:auto;align-self:stretch;text-align:center;border:1px solid rgba(255,255,255,0.08);background:rgba(255,255,255,0.04);color:var(--text-light);cursor:pointer;font:inherit;font-weight:700}
.team-section .member-card:hover{transform:translateY(-6px);box-shadow:0 30px 80px rgba(2,6,23,0.6);border-color:rgba(20,184,176,0.08)}
.team-section .member-card.expanded .bio-short{display:block;-webkit-line-clamp:unset;line-clamp:unset}
.team-section .member-card.expanded{box-shadow:0 36px 100px rgba(2,6,23,0.68);transform:translateY(-8px)}

@media (max-width:1000px){
	.team-section .team-collage{grid-template-columns:repeat(2,1fr);grid-auto-rows:1fr}
	.team-section .member-card .avatar-wrap{width:72px;height:72px;flex-basis:72px}
}

@media (max-width:1000px){
	.team-section .team-collage{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:600px){
	.team-section .team-collage{grid-template-columns:repeat(1,1fr)}
	.team-section .member-card{height:auto}
}
.landing-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
/* Make #landing a normal block so the fixed canvas beneath fills viewport; remove background image */
#landing{position:relative;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--text-light);z-index:10}
.landing-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(1,6,12,0.45), rgba(1,6,12,0.55));z-index:12;pointer-events:none}
/* Full-width top bar */
.landing-top{position:fixed;left:0;right:0;top:0;height:var(--nav-height);display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:8px 18px;z-index:60;pointer-events:auto;background:#042029;border:0;border-bottom:0;border-top:0;box-shadow:none;backdrop-filter:none}
.sound-toggle{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);color:var(--text-light);padding:8px;border-radius:8px;cursor:pointer;backdrop-filter:blur(6px);display:inline-flex;align-items:center;justify-content:center}
.sound-toggle svg{width:18px;height:18px}

/* Small arrow indicator on button */

/* Accessibility focus */
.sound-toggle .sound-on{display:none}
.sound-toggle.on .sound-on{display:block}
.sound-toggle.on .sound-off{display:none}

.landing-content{position:relative;z-index:3;text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px;padding:24px}
.landing-logo{width:200px;max-width:48vw;height:auto;filter:drop-shadow(0 30px 80px rgba(2,6,23,0.8));transform-origin:center}
.landing-tagline{font-family:'Cinzel', Georgia, serif;font-size:20px;max-width:780px;margin:0;color:var(--text-light);opacity:0.95;font-weight:500}
.landing-cta .btn-primary{padding:14px 22px;font-size:18px}

/* Gentle entrance animation, respect prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference){
	.landing-logo{animation:popIn 700ms cubic-bezier(.2,.9,.2,1) 200ms both}
	.landing-tagline{animation:fadeUp 700ms cubic-bezier(.2,.9,.2,1) 420ms both}
	.landing-cta .btn-primary{animation:fadeUp 700ms cubic-bezier(.2,.9,.2,1) 640ms both}
}
@keyframes popIn{from{opacity:0;transform:translateY(-8px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.landing-cta .btn-primary:hover{box-shadow:0 28px 80px rgba(20,184,176,0.12);transform:translateY(-3px)}

/* Discrete back link in proyecto.html */
.back-to-cover{color:var(--text-light);padding:6px 8px;border-radius:6px;border:1px solid rgba(255,255,255,0.04);font-size:13px;text-decoration:none;display:inline-block}
.nav-back{margin-right:8px;opacity:0.9}

@media (max-width:700px){
	.landing-logo{width:140px}
	.landing-tagline{font-size:16px;padding:0 12px}
	.landing-cta .btn-primary{font-size:16px;padding:12px 18px}
	.landing-top{padding:8px 12px;top:0;height:56px}
}

/* Top navigation must stay at the top of the viewport while scrolling without being offset by the document scroll. */
.top-nav{position:sticky !important;top:0 !important;left:0 !important;right:0 !important;width:100% !important;margin:0 !important;height:var(--nav-height);display:flex;align-items:center;z-index:10010;background:#042029 !important;backdrop-filter:none;border-top:0;border-right:0;border-left:0;border-bottom:1px solid rgba(255,255,255,0.04);box-shadow:none;transform:none !important;will-change:auto}
.top-nav .nav-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:0 16px;width:100%}
.top-nav .nav-left{display:flex;align-items:center;gap:12px}
.top-nav .nav-logo img{width:76px;height:auto;display:block}
.top-nav .nav-links{display:flex;gap:18px;list-style:none;margin:0;padding:0;flex:1;justify-content:center}
.top-nav .nav-links a{color:var(--text-light);text-decoration:none;padding:10px 6px;border-radius:6px;position:relative;transition:color 180ms ease}
.top-nav .nav-links a::after{content:"";position:absolute;left:8px;right:8px;bottom:6px;height:2px;background:linear-gradient(90deg, transparent, transparent);transform:scaleX(0);transform-origin:left;transition:transform 220ms cubic-bezier(.2,.9,.2,1)}
.top-nav .nav-links a:hover, .top-nav .nav-links a:focus{color:var(--turquoise)}
.top-nav .nav-links a:hover::after, .top-nav .nav-links a:focus::after{background:var(--turquoise);transform:scaleX(1)}
.top-nav .nav-right{display:flex;align-items:center;gap:8px}
.top-nav .nav-toggle{display:none;background:transparent;border:none;color:var(--text-light);font-size:20px;padding:8px;cursor:pointer}
.top-nav .nav-back{display:none}

/* Active link state */
.top-nav .nav-links a.active{color:var(--turquoise);font-weight:700}
.top-nav .nav-links a.active::after{background:var(--turquoise);transform:scaleX(1)}

/* Mobile behaviour */
@media (max-width:900px){
	.top-nav{height:52px}
	.top-nav .nav-links{position:fixed;left:0;right:0;top:52px;background:linear-gradient(180deg, rgba(1,6,10,0.97), rgba(1,6,10,0.92));backdrop-filter:blur(8px);flex-direction:column;gap:0;display:flex;padding:8px 12px 12px;z-index:10011;box-shadow:0 18px 40px rgba(0,0,0,.45)}
	.top-nav .nav-links li{width:100%}
	.top-nav .nav-links a{display:block;padding:12px 10px;border-radius:8px}
	.top-nav .nav-toggle{display:block}
	.top-nav .nav-back{display:inline-block}
}

/* Block separator styles */
.block-sep{padding:12px 0;margin:20px 0}
.block-sep .block-inner{display:flex;align-items:center;gap:18px}
.block-sep .block-icon{width:56px;height:56px;border-radius:10px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(20,184,176,0.04));display:flex;align-items:center;justify-content:center;font-size:22px;box-shadow:0 8px 20px rgba(2,6,23,0.18);border:1px solid rgba(255,255,255,0.04)}
.block-sep .block-title{margin:0;font-size:24px;letter-spacing:0.8px}
.block-sep .block-sub{margin:2px 0 0;color:var(--text-muted);font-size:14px}
.block-sep .block-deco{flex:1;height:4px;border-radius:4px;background:linear-gradient(90deg, rgba(20,184,176,0.14), rgba(20,184,176,0.04));margin-left:12px}
.block-sep.block-sep-immersive .block-inner{background:linear-gradient(90deg, rgba(20,184,176,0.02), rgba(255,255,255,0.01));padding:8px;border-radius:12px}

/* Place music toggle inside nav when present */
.top-nav .music-toggle{position:relative;right:auto;bottom:auto;margin-left:6px;width:36px;height:36px;border-radius:8px}
.top-nav .music-toggle .icon-on, .top-nav .music-toggle .icon-off{width:18px;height:18px}

/* Accessibility: focus-visible for nav links */
.top-nav .nav-links a:focus-visible{outline:3px solid rgba(20,184,176,0.16);outline-offset:4px}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
	.gallery-item img, .btn, .member-card, .top-nav .nav-links a{transition:none}
}

/* Avatar initials for team members */
.avatar-initials{width:96px;height:96px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0b486b,#14b8b0);color:white;font-weight:700;font-size:28px}
@media (max-width:700px){.avatar-initials{width:48px;height:48px;font-size:16px}}

/* === Section visual differentiation === */
/* Investor sections: clean, corporate, higher contrast */
#problem, #validation, #differentiation, #status, #market, #team, #ask {
	padding:18px 0;
}
#problem .container, #validation .container, #differentiation .container, #status .container, #market .container, #team .container, #ask .container{
	background: linear-gradient(180deg, #0b2a34, #051018);
	border: 1px solid rgba(255,255,255,0.04);
	box-shadow: 0 10px 30px rgba(2,6,23,0.12);
	border-radius:12px;
	padding:20px;
}
#problem h2, #validation h2, #differentiation h2, #status h2, #market h2, #team h2, #ask h2{
	color: #dff7f4;
	font-weight:700;
	letter-spacing:0.6px;
}
#problem .container p, #validation .container p, #differentiation .container p, #status .container p, #market .container p, #team .container p, #ask .container p,
#problem .container li, #validation .container li, #differentiation .container li, #status .container li, #market .container li, #team .container li, #ask .container li{
	color: var(--text-muted);
}

/* Subtle corporate accent for lists and badges */
#problem .badge, #validation .badge, #differentiation .badge, #status .badge, #market .badge, #team .badge, #ask .badge{
	background: rgba(255,255,255,0.04);
	color: var(--text-muted);
}

/* Game sections: immersive, textured, fantasy look */
#how, #product, #demo, #challenges, #universe{
	padding:22px 0;
}
#how .container, #product .container, #demo .container, #challenges .container, #universe .container{
	background: radial-gradient(1200px 400px at 10% 10%, rgba(20,184,176,0.035), transparent 6%), linear-gradient(180deg, rgba(2,12,14,0.6), rgba(0,0,0,0.25));
	border-radius:16px;
	padding:22px;
	border:1px solid rgba(10,60,56,0.06);
	box-shadow: 0 28px 80px rgba(2,6,23,0.6);
	position:relative;
	overflow:hidden;
}

/* Decorative shimmer and faint particles for game areas */
#how .container::before, #product .container::before, #demo .container::before, #challenges .container::before, #universe .container::before{
	content:"";
	position:absolute;inset:0;pointer-events:none;
	background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.02) 0, transparent 20%), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.015) 0, transparent 18%);
	mix-blend-mode:screen;opacity:0.7;filter:blur(6px);
}

#how h2, #product h2, #demo h2, #challenges h2, #universe h2{
	color: #eafefb;
	text-shadow: 0 10px 30px rgba(10,80,70,0.45);
}

/* Slight inner glow on CTA buttons inside game sections */
#how .btn-primary, #product .btn-primary, #challenges .btn-primary, #universe .btn-primary{
	box-shadow: 0 14px 40px rgba(20,184,176,0.18), 0 0 30px rgba(20,184,176,0.04) inset;
}

/* Make code-safe: ensure investor section contrast remains readable on small screens */
@media (max-width:700px){
	#problem .container, #validation .container, #differentiation .container, #status .container, #market .container, #team .container, #ask .container{padding:14px}
	#how .container, #product .container, #demo .container, #challenges .container, #universe .container{padding:14px}
}
.validator-author{
  text-align:center;
  margin-top:2rem;
}

.validator-author p{
  margin-bottom:1rem;
}

.validator-author .btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.validation-quote{
  text-align:center;
  font-size:1.3rem;
  line-height:1.6;
  max-width:850px;
  margin:2rem auto;
  padding:1.5rem;
  color:#ffffff;
  border-left:none;
  font-style:italic;
}
.validation-card{
  flex:1;
  background:linear-gradient(
    180deg,
    rgba(20,184,176,.12),
    rgba(20,184,176,.04)
  );

  border:1px solid rgba(20,184,176,.2);
  padding:1.5rem;
  border-radius:16px;
  min-height:240px;
display:flex;
flex-direction:column;
justify-content:flex-start;
}
.validation-seal{
  display:inline-block;
  padding:.5rem 1rem;
  margin-bottom:1rem;
  border-radius:999px;
  background:rgba(20,184,176,.15);
  color:#8df0d8;
  font-weight:700;
}
@media (max-width: 900px){

  .nav-back{
    display:none !important;
  }

}
.step img{
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}

.step figure{
  margin:0;
}
@media (max-width:768px){

  .team-section .team-collage{
    grid-template-columns:1fr;
    grid-auto-rows:auto;
  }

  .team-section .member-card{
    height:auto;
    min-height:auto;
  }

}
@media (max-width:768px){

  .top-nav .nav-logo img{
    width:60px;
  }

}
@media (max-width:768px){

  .vision-copy .lead{
    display:block;
    overflow:visible;
    -webkit-line-clamp:unset;
    line-clamp:unset;
    max-width:none;
  }

}
@media (max-width:768px){

  .hero-ctas{
    flex-direction:column;
  }

  .hero-ctas .btn{
    width:100%;
    text-align:center;
  }

}
@media (max-width:768px){

  .block-inner{
    flex-direction:column;
    text-align:center;
  }

  .block-icon{
    margin-bottom:12px;
  }

  .block-title{
    font-size:1.8rem;
  }

}
@media (max-width:768px){

  .steps{
    flex-direction:column;
    gap:20px;
  }

  .step{
    width:100%;
  }

  .step img{
    width:100%;
    height:auto;
    object-fit:contain;
    max-height:none;
  }

}


@media (max-width:768px){

  .team-section .member-card{
    min-height:auto;
    height:auto;
  }

  .team-section .member-meta .bio-short{
    display:block;
    -webkit-line-clamp:unset;
    line-clamp:unset;
  }


  .team-section .view-profile{
    display:none;
  }

}

@media (max-width:900px){

  .gallery-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

}
@media (max-width:480px){

  .gallery-grid{
    grid-template-columns:1fr;
  }

}
/* Shader canvas fixed to viewport so it always fills available space */
html,body{height:auto;min-height:100%}
#bg-canvas{position:fixed;left:0;top:0;right:0;bottom:0;width:100%;height:100%;z-index:-2;pointer-events:auto;display:block}

/* Top bar: reserve space for language and volume controls */
.landing-top{position:fixed;left:0;right:0;top:0;height:var(--nav-height);display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:8px 18px;z-index:60;pointer-events:auto;background:#042029 !important;border:0;border-top:0;border-bottom:0;box-shadow:none;backdrop-filter:none}
/* Give landing a top padding to avoid overlap with fixed bar */
#landing{position:relative;padding-top:0;min-height:100vh}

/* Ensure overlay/content stack above shader */
.landing-overlay{position:absolute;inset:0;z-index:5;pointer-events:none}
.landing-content{position:relative;z-index:70}

/* Center CTA button hover/active styling */
.landing-cta .btn-primary{transition:transform 180ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, background 160ms ease}
.landing-cta .btn-primary:hover{transform:translateY(-6px) scale(1.04);box-shadow:0 18px 64px rgba(20,184,176,0.22);filter:brightness(1.04)}
.landing-cta .btn-primary:active{transform:translateY(-2px) scale(0.99);box-shadow:0 10px 36px rgba(20,184,176,0.18)}

/* Make language button and sound toggle visually grouped */

/* Ensure language and sound/music controls align and share sizing across pages */
.sound-toggle, .music-toggle{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:6px;border-radius:8px}
.landing-top .lang-switch, .landing-top .sound-toggle{margin-right:8px}
.top-nav .music-toggle{width:36px;height:36px;margin-left:6px}


/* =========================================
   FULLSCREEN LANDING
   ========================================= */

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow-x: clip;
}

html {
    min-height: 100%;
    background: var(--page-bg);
}

body {
    min-height: 100vh;
    background: var(--page-bg);
}

/* Shader background */
#bg-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	margin: 0;
	padding: 0;
	z-index: -2;
	pointer-events: auto;
}

/* Fullscreen landing */
main#landing {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.impact-grid{
  display:grid;
  grid-template-columns:28% 72%;
  gap:32px;
  width:min(1500px,96%);
  margin:0 auto;
}

.impact-grid .investor-section{
  margin:0;
}
@media (max-width:900px){

  .impact-grid{
    grid-template-columns:1fr;
  }

}
.validation-card h3{
  min-height:70px;
}
.problem-subtitle{
  font-size:1rem;
  font-weight:700;
  line-height:1.35;

  color:#fff;

  border-left:5px solid var(--turquoise);

  padding-left:14px;

  margin:1rem 0 1.2rem;
}
.problem-highlight{
  font-size:1.2rem;
  font-weight:700;
  color:var(--turquoise);
  text-align:center;
  margin-top:1.5rem;
}
@media (max-width:900px){

  .impact-grid{
    grid-template-columns:1fr;
    gap:20px;
    width:100%;
  }

  .validators{
    grid-template-columns:1fr;
    gap:14px;
  }

  .validation-card{
    min-height:auto;
  }

  .validation-card h3{
    min-height:auto;
  }

  #problem .container,
  #validation .container{
    padding:18px;
  }

}
@media (max-width:900px){

  .problem-subtitle{
    font-size:1rem;
    line-height:1.3;
  }

  .problem-highlight{
    font-size:1.05rem;
  }

}
.screen-time-demo{
  margin:1.5rem 0;
  padding:1rem;

  border-radius:16px;

  background:rgba(255,255,255,.04);

  border:1px solid rgba(255,255,255,.08);

  text-align:center;

  max-width:320px;
}

.screen-time-icon{
  font-size:2rem;
  margin-bottom:.3rem;
}

.screen-time-label{
  font-size:.85rem;
  color:var(--text-muted);
}

.screen-time-counter{
  font-size:1.8rem;
  font-weight:800;
  color:#fff;
}
.advantage-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);

  gap:16px;

  max-width:900px;

  margin:24px auto 0;
}

.advantage-mini{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:14px;

  min-height:90px;

  border-radius:12px;

  background:rgba(20,184,176,.08);

  border:1px solid rgba(20,184,176,.12);

  text-align:center;

  transition:.2s ease;
}

.advantage-mini:hover{
  transform:translateY(-3px);
}

.advantage-mini span{
  font-size:1.8rem;
  margin-bottom:6px;
}

.advantage-mini p{
  margin:0;
  color:#fff;
  font-size:.9rem;
  font-weight:700;
}
.roadmap{
  display:flex;

  align-items:center;
  justify-content:center;

  gap:5px;

  flex-wrap:wrap;

  margin-top:24px;
}
.roadmap-arrow{

  font-size:2rem;

  color:var(--turquoise);

  opacity:.8;
}


.roadmap::before{
  display:none;
}

.roadmap-step{

  width:220px;

  padding:18px;

  text-align:center;

  border-radius:16px;

  background:rgba(255,255,255,.04);

  border:1px solid rgba(255,255,255,.08);
}
@media(max-width:900px){

  .roadmap{
    flex-direction:column;
    align-items:center;
  }

  .roadmap-step{
    width:100%;
    max-width:280px;
  }

  .roadmap-arrow{
    transform:rotate(90deg);
    font-size:1.6rem;
  }

}

.roadmap-icon{
  font-size:2rem;
  margin-bottom:10px;
}

.roadmap-status{
  display:inline-block;

  margin-top:12px;

  padding:6px 10px;

  border-radius:999px;

  background:rgba(20,184,176,.15);

  color:#8df0d8;

  font-size:.85rem;
  font-weight:700;
}

.milestones-strip{

  display:flex;

  flex-wrap:wrap;

  justify-content:center;

  gap:10px;

  margin-top:24px;
}

.milestone-card{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(20,184,176,.08);
  border:1px solid rgba(20,184,176,.12);
  color:var(--text-light);
  font-size:.85rem;
  white-space:nowrap;
}
.ask-grid{
  display:grid;

  grid-template-columns:repeat(3,1fr);

  gap:18px;

  margin-top:24px;
}

.ask-card{

  padding:20px;

  border-radius:16px;

  text-align:center;

  background:rgba(20,184,176,.08);

  border:1px solid rgba(20,184,176,.12);

  transition:.25s ease;
}

.ask-card:hover{
  transform:translateY(-4px);
}

.ask-icon{
  font-size:2rem;
  margin-bottom:10px;
}

.ask-card h3{
  margin:8px 0;
}

@media(max-width:900px){

  .ask-grid{
    grid-template-columns:1fr;
  }

}

/* =========================================
   AÑADIDOS 2026-11: accesibilidad, portada, contacto
   ========================================= */

/* Portada sin scroll */
body.cover-page{overflow:hidden;height:100vh;isolation:isolate;touch-action:pinch-zoom}

/* Enlace para saltar al contenido (visible solo con teclado) */
.skip-link{position:absolute;left:12px;top:-60px;z-index:100001;padding:10px 14px;border-radius:8px;background:var(--turquoise);color:var(--cta-contrast);font-weight:800;text-decoration:none;transition:top 160ms ease}
.skip-link:focus{top:12px}

/* Foco visible para imágenes ampliables y opciones de idioma */
.gallery-item img:focus-visible, .map-wrapper img:focus-visible, .view-profile:focus-visible{outline:3px solid var(--turquoise);outline-offset:3px}
.gallery-item img, .map-wrapper img{cursor:zoom-in}

/* Títulos de los pasos (antes eran h2) */
.step-title{font-size:calc(1rem * 1.18);font-weight:900;margin:8px 0}

/* Listas semánticas sin estilo de lista */
.team-section .team-collage, .roadmap{list-style:none;margin:0;padding:0}
.team-section .team-collage{margin-top:12px}

/* Sección de contacto */
.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 12px}
.contact-actions .btn{border:0;cursor:pointer;font:inherit;font-weight:700}
.contact-alt{margin:0}
.contact-alt a, .contact-success a{color:#8df0d8;font-weight:800}
@media (max-width:600px){
  .contact-actions .btn{width:100%;text-align:center}
}

/* Pop-up de contacto */
.contact-dialog{width:min(860px, calc(100% - 24px));max-height:calc(100vh - 24px);padding:0;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(180deg,#0b2a34,#051018);color:var(--text-light);box-shadow:0 30px 90px rgba(0,0,0,.6)}
.contact-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}
.contact-dialog[open]{animation:dialogIn 220ms cubic-bezier(.2,.9,.2,1)}
@keyframes dialogIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.contact-dialog-panel{position:relative;padding:clamp(18px,4vw,34px)}
.contact-dialog-close{position:absolute;right:14px;top:14px;width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:var(--text-light);font-size:16px;cursor:pointer}
.contact-dialog-close:hover, .contact-dialog-close:focus-visible{border-color:var(--turquoise);color:var(--turquoise)}
.contact-dialog-header{text-align:center;margin:0 0 20px;padding:0 36px}
.contact-dialog-header h2{margin:0 0 8px;font-size:clamp(1.5rem,4vw,2.2rem);line-height:1.1}
.contact-dialog-header h2::after{display:none}
.contact-kicker{display:inline-block;margin:0 0 12px;padding:7px 14px;color:#8df0d8;background:rgba(20,184,176,.15);border:1px solid rgba(20,184,176,.25);border-radius:999px;font-size:.82rem;font-weight:800;letter-spacing:.12em}

.growtale-form{display:grid;gap:20px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.form-field{display:flex;flex-direction:column;gap:7px}
.form-label, .form-legend{color:var(--text-light);font-weight:800}
.form-help{margin:0;color:var(--text-muted);font-size:.85rem;line-height:1.4}
.form-control{width:100%;padding:12px 14px;color:var(--text-light);background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.11);border-radius:10px;outline:none;font:inherit;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
.form-control:focus{border-color:var(--turquoise);background:rgba(20,184,176,.055);box-shadow:0 0 0 4px rgba(20,184,176,.10)}
textarea.form-control{min-height:140px;resize:vertical}
.participation-group{margin:0;padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.022)}
.form-legend{padding:0 7px}
.participation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 18px;margin-top:6px}
.check-option{display:flex;align-items:flex-start;gap:9px;color:var(--text-muted);line-height:1.45;cursor:pointer}
.check-option input{flex:0 0 auto;width:17px;height:17px;margin:3px 0 0;accent-color:var(--turquoise)}
.form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.form-actions .btn{border:0;cursor:pointer;font:inherit;font-weight:800}
.contact-success{padding:28px;text-align:center;border:1px solid rgba(20,184,176,.30);border-radius:16px;background:rgba(20,184,176,.09)}
.contact-success h2{margin:0 0 10px}
.contact-success h2::after{display:none}
.contact-success p{max-width:620px;margin:0 auto 12px;color:var(--text-muted);line-height:1.6}
.contact-success .btn{border:0;cursor:pointer;font:inherit;font-weight:700;margin-top:6px}
@media (max-width:700px){
  .form-grid, .participation-options{grid-template-columns:1fr}
  .form-actions, .form-actions .btn{width:100%;text-align:center}
  .contact-dialog-header{padding:0 28px}
}
@media (prefers-reduced-motion: reduce){
  .contact-dialog[open]{animation:none}
}


/* Equipo: enlace a LinkedIn / Bandcamp */
.team-section .member-link{align-self:flex-start;color:#8df0d8;font-size:13px;font-weight:800;text-decoration:none;border-bottom:1px solid rgba(141,240,216,.35)}
.team-section .member-link:hover, .team-section .member-link:focus-visible{color:var(--turquoise);border-color:var(--turquoise)}

/* Selector de idioma: interruptor deslizable (ESP <-> ENG) */
.lang-switch{position:relative;display:inline-flex;align-items:center;width:84px;height:34px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);cursor:pointer;font:inherit;flex:0 0 auto;transition:background 300ms ease,border-color 300ms ease}
.lang-switch:hover{border-color:rgba(20,184,176,.5)}
.lang-switch:focus-visible{outline:2px solid var(--turquoise);outline-offset:3px}
.lang-switch-knob{position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.45),0 0 0 2px var(--turquoise);transition:transform 380ms cubic-bezier(.65,0,.35,1)}
.lang-switch-knob .flag{position:absolute;inset:0;width:100%;height:100%;transition:opacity 260ms ease}
.lang-switch-knob .flag-en{opacity:0}
.lang-switch-text{position:absolute;top:50%;transform:translateY(-50%);font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--text-light);transition:opacity 260ms ease,transform 380ms cubic-bezier(.65,0,.35,1)}
.lang-switch-es{right:12px}
.lang-switch-en{left:12px;opacity:0;transform:translate(-8px,-50%)}
.lang-switch[aria-checked="true"] .lang-switch-knob{transform:translateX(50px)}
.lang-switch[aria-checked="true"] .flag-es{opacity:0}
.lang-switch[aria-checked="true"] .flag-en{opacity:1}
.lang-switch[aria-checked="true"] .lang-switch-es{opacity:0;transform:translate(8px,-50%)}
.lang-switch[aria-checked="true"] .lang-switch-en{opacity:1;transform:translate(0,-50%)}
@media (prefers-reduced-motion: reduce){
  .lang-switch-knob, .lang-switch-text, .lang-switch-knob .flag{transition:none}
}

/* Equipo: el botón se oculta si la bio ya cabe entera */
.team-section .view-profile[hidden]{display:none}


/* =========================================
   Portada: intro (primera visita) y transición de salida
   ========================================= */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes leaveContent{to{opacity:0;transform:scale(1.08);filter:blur(6px)}}
@media (prefers-reduced-motion: no-preference){
  /* El botón tiene su propio pulso, así que la aparición va en su contenedor */
  .landing-cta{animation:fadeUp 700ms cubic-bezier(.2,.9,.2,1) 640ms both}

  /* Intro: los elementos aparecen cuando el pulso del fondo ya se ha expandido */
  html.intro .landing-logo{animation:popIn 900ms cubic-bezier(.2,.9,.2,1) 800ms both}
  html.intro .landing-tagline{animation:fadeUp 800ms cubic-bezier(.2,.9,.2,1) 1150ms both}
  html.intro .landing-cta{animation:fadeUp 800ms cubic-bezier(.2,.9,.2,1) 1450ms both}
  html.intro .landing-top{animation:fadeIn 700ms ease 1700ms both}

  /* Salida al pulsar "Descubre GrowTale" */
  html.leaving #custom-cursor{opacity:0;transition:opacity 300ms ease}

  /* Llegada a proyecto.html */
  html.arrive body{animation:fadeIn 700ms ease both}
}

/* =========================================
   Vuelta del proyecto a la portada
   ========================================= */
@keyframes fadeOut{to{opacity:0}}
@keyframes returnIn{from{opacity:0;transform:scale(1.08);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@media (prefers-reduced-motion: no-preference){
  /* proyecto.html se funde con el fondo antes de navegar */
  html.leaving-project body{animation:fadeOut 420ms ease forwards}
  /* la portada recupera el foco mientras el vapor hace el zoom inverso (shader.js) */
  html.return .landing-content{animation:returnIn 800ms cubic-bezier(.2,.9,.2,1) 250ms both}
  html.return .landing-logo, html.return .landing-tagline, html.return .landing-cta{animation:none}
  html.return .landing-top{animation:fadeIn 500ms ease 600ms both}
  html.return .landing-overlay{animation:fadeIn 900ms ease both}
}

/* =========================================
   Menú móvil: apertura animada e icono ☰ → ✕
   ========================================= */
.top-nav .nav-toggle{line-height:0}
.nav-toggle-bars{position:relative;display:block;width:22px;height:16px}
.nav-toggle-bars span{position:absolute;left:0;width:100%;height:2px;border-radius:2px;background:currentColor;transition:transform 320ms cubic-bezier(.65,0,.35,1),opacity 200ms ease,top 320ms cubic-bezier(.65,0,.35,1)}
.nav-toggle-bars span:nth-child(1){top:0}
.nav-toggle-bars span:nth-child(2){top:7px}
.nav-toggle-bars span:nth-child(3){top:14px}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1){top:7px;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2){opacity:0;transform:scaleX(.2)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3){top:7px;transform:rotate(-45deg)}

@media (max-width:900px){
  /* El panel baja y aparece; visibility evita que se pueda tabular cuando está cerrado */
  .top-nav .nav-links{opacity:0;visibility:hidden;transform:translateY(-10px);clip-path:inset(0 0 100% 0);pointer-events:none;
    transition:opacity 260ms ease,transform 360ms cubic-bezier(.2,.9,.2,1),clip-path 360ms cubic-bezier(.2,.9,.2,1),visibility 0s linear 360ms}
  .top-nav .nav-links.open{opacity:1;visibility:visible;transform:none;clip-path:inset(0 0 0 0);pointer-events:auto;
    transition:opacity 260ms ease,transform 360ms cubic-bezier(.2,.9,.2,1),clip-path 360ms cubic-bezier(.2,.9,.2,1),visibility 0s}
  /* Enlaces escalonados */
  .top-nav .nav-links li{opacity:0;transform:translateY(-6px);transition:opacity 220ms ease,transform 300ms cubic-bezier(.2,.9,.2,1)}
  .top-nav .nav-links.open li{opacity:1;transform:none}
  .top-nav .nav-links.open li:nth-child(1){transition-delay:60ms}
  .top-nav .nav-links.open li:nth-child(2){transition-delay:100ms}
  .top-nav .nav-links.open li:nth-child(3){transition-delay:140ms}
  .top-nav .nav-links.open li:nth-child(4){transition-delay:180ms}
  .top-nav .nav-links.open li:nth-child(5){transition-delay:220ms}
}
@media (max-width:900px) and (prefers-reduced-motion: reduce){
  .top-nav .nav-links, .top-nav .nav-links.open, .top-nav .nav-links li, .nav-toggle-bars span{transition:none}
}


/* =========================================
   Barra superior: negra translúcida y alineación común (portada y proyecto)
   ========================================= */
.landing-top, .top-nav{background:rgba(3,8,12,.42) !important;-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);border-bottom:1px solid rgba(255,255,255,.06) !important}
.landing-top{padding:0 16px;gap:10px}
.landing-top .lang-switch, .landing-top .sound-toggle{margin:0}
.top-nav .nav-inner{padding:0 16px}
.top-nav .nav-right{margin-left:auto;gap:10px}
/* Botón de sonido: mismo tamaño y aspecto en las dos páginas, sin desplazarse al activarse */
.landing-top .sound-toggle, .top-nav .music-toggle{width:36px;height:36px;padding:0;margin:0;border-radius:10px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--text-light);box-shadow:none;transform:none}
.top-nav .music-toggle.on, .landing-top .sound-toggle.on{color:var(--turquoise);border-color:rgba(20,184,176,.45);background:rgba(20,184,176,.12);box-shadow:none;transform:none}
.landing-top .sound-toggle:hover, .top-nav .music-toggle:hover{border-color:rgba(20,184,176,.5)}
@media (max-width:900px){
  .landing-top{height:52px}
  /* ☰ al final, junto a idioma y sonido */
  .top-nav .nav-right{order:2}
  .top-nav .nav-toggle{order:3;margin-left:2px;padding:8px 4px}
}

/* =========================================
   Portada: legibilidad del logo y la frase sobre el vapor (y la linterna)
   ========================================= */
.landing-content::before{content:"";position:absolute;inset:-8% -14%;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side, rgba(2,8,12,.6), rgba(2,8,12,.32) 55%, transparent);filter:blur(12px)}
.landing-logo{filter:drop-shadow(0 4px 16px rgba(0,0,0,.6)) drop-shadow(0 24px 60px rgba(2,6,23,.7))}
.landing-tagline{text-shadow:0 2px 10px rgba(0,0,0,.8),0 0 2px rgba(0,0,0,.6)}

/* =========================================
   Pop-ups: entrada y salida animadas
   ========================================= */
@keyframes dialogOut{to{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes backdropIn{from{opacity:0}}
@keyframes backdropOut{to{opacity:0}}
@media (prefers-reduced-motion: no-preference){
  .contact-dialog[open]::backdrop{animation:backdropIn 260ms ease}
  .contact-dialog.closing{animation:dialogOut 200ms ease-in forwards}
  .contact-dialog.closing::backdrop{animation:backdropOut 200ms ease-in forwards}
  .lightbox-visible{transition:opacity 260ms ease,visibility 0s}
  .lightbox-hidden{transition:opacity 260ms ease,visibility 0s linear 260ms}
  .lb-image, .lb-caption{transition:transform 260ms ease,opacity 260ms ease}
  .lightbox-hidden .lb-image{transform:scale(.94);opacity:0}
}

/* =========================================
   Guía de estilo del juego ("UI ELEMENTS - GrowTale"): tipografías y botones
   Poppins = interfaz y texto · Fredoka = títulos y textos "de juego"
   ========================================= */
:root{
  --font-ui:'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-game:'Fredoka', 'Poppins', system-ui, sans-serif;   /* diálogos */
  --btn-teal:#2aa1af;      --btn-teal-pressed:#a5d6d0;   /* Secondary (principal en la web) */
  --btn-deep:#0e4957;      --btn-deep-pressed:#092533;   /* Primary 2 (secundario en la web) */
  --btn-gold:#a58749;      --btn-gold-pressed:#d7c178;   /* Success / Important */
  --btn-red:#bf4039;       --btn-red-pressed:#762723;    /* Danger */
}
body, button, input, select, textarea{font-family:var(--font-ui)}
/* En el juego, Poppins es la tipografía de títulos e interfaz; Fredoka solo se usa en los diálogos */
h1,h2,h3,h4,h5,h6,.block-title,.step-title,.contact-kicker{font-family:var(--font-ui)}
.landing-tagline,.validation-quote{font-family:var(--font-game)}
h1, h2, .block-title{font-weight:600}
h3, h4{font-weight:500}
.landing-tagline{font-weight:500;letter-spacing:.01em;font-size:22px}
@media (max-width:700px){ .landing-tagline{font-size:17px} }

/* Botones: rectángulo redondeado plano, Poppins Medium, estado "pulsado" con otro tono */
.btn{font-family:var(--font-ui);font-weight:500;font-size:16px;line-height:1.2;padding:12px 24px;border:0;border-radius:12px;
  box-shadow:none;text-align:center;backdrop-filter:none;
  transition:background-color 150ms ease,color 150ms ease,transform 150ms ease,filter 150ms ease}
.btn:hover{transform:translateY(-1px);filter:brightness(1.1);box-shadow:none}
.btn:active{transform:translateY(1px);filter:none}
.btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.btn-primary{background:var(--btn-teal);color:#fff}
.btn-primary:active{background:var(--btn-teal-pressed);color:var(--btn-deep)}
.btn-secondary{background:var(--btn-deep);color:#fff;border:0}
.btn-secondary:active{background:var(--btn-deep-pressed)}
.btn-important{background:var(--btn-gold);color:#fff}
.btn-important:active{background:var(--btn-gold-pressed);color:#3b2d10}
.btn-danger{background:var(--btn-red);color:#fff}
.btn-danger:active{background:var(--btn-red-pressed)}
/* Variantes con estilos propios anteriores */
.landing-cta .btn-primary{font-size:18px;padding:14px 28px}
#how .btn-primary, #product .btn-primary, #challenges .btn-primary, #universe .btn-primary{box-shadow:none}
.team-section .member-card .view-profile{background:var(--btn-deep);border:0;color:#fff}
.team-section .member-card .view-profile:active{background:var(--btn-deep-pressed)}

/* =========================================
   Barra superior idéntica en portada y proyecto
   (mismo ancho, márgenes y color, sin depender del fondo que haya detrás)
   ========================================= */
.landing-top, .top-nav{background:rgba(2,7,10,.8) !important}
.top-nav .nav-inner{max-width:none;padding:0 16px}

/* =========================================
   Transición portada -> proyecto: siempre igual
   Las animaciones de intro/regreso (con "fill") tapaban la salida según la visita,
   así que la salida se declara al final para que siempre tenga prioridad.
   ========================================= */
@media (prefers-reduced-motion: no-preference){
  html.leaving .landing-content{animation:leaveContent 600ms cubic-bezier(.5,0,.75,0) both}
  html.leaving .landing-top{animation:fadeOut 300ms ease forwards}
  html.leaving .landing-overlay{animation:fadeOut 600ms ease forwards}
}

/* =========================================
   Mapa interactivo de Mindveil (sección Universo)
   ========================================= */
.world-map{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);gap:32px;align-items:center;margin-top:20px}
.world-map-stage{position:relative;aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;isolation:isolate;border-radius:24px;
  background:radial-gradient(circle at 50% 48%, #0a8fc4 0%, #007dad 42%, #015a85 75%, #023b5a 100%);
  box-shadow:inset 0 0 90px rgba(0,18,36,.55), 0 30px 80px rgba(2,6,23,.5);border:1px solid rgba(255,255,255,.08)}
/* Ondas del mar: dos capas de un patrón SVG que se desplazan a distinta velocidad */
.world-sea, .world-sea::after{position:absolute;inset:-60px;pointer-events:none;z-index:-1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M8 22 q8 -7 16 0 M68 52 q8 -7 16 0' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size:120px 60px;opacity:.22}
.world-sea::after{content:"";inset:0;background-size:180px 90px;opacity:.6}
.world-island{position:relative;width:90%}
.world-island img{display:block;width:100%;height:auto;filter:drop-shadow(0 18px 28px rgba(0,30,60,.45))}

/* Nodos: rombo (como en la guía de UI) desplazado encima o debajo de su lugar,
   unido a él por una línea con un punto, para no tapar la ilustración */
.map-spot{--spot:var(--btn-teal);--spot-ring:rgba(42,161,175,.35);--dy:-34px;
  position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,calc(-50% + var(--dy)));
  width:38px;height:38px;padding:0;border:0;background:none;cursor:pointer;z-index:2}
.map-spot[data-dir="down"]{--dy:34px}
.map-spot-source{--spot:#44d17f;--spot-ring:rgba(68,209,127,.35)}
.map-spot-optional{--spot:#a184e6;--spot-ring:rgba(161,132,230,.35)}
.map-spot::before{content:"";position:absolute;inset:10px;border-radius:4px;transform:rotate(45deg);background:var(--spot);border:2px solid #fff;
  box-shadow:0 0 0 4px var(--spot-ring),0 4px 12px rgba(0,0,0,.5);transition:transform 200ms ease,filter 200ms ease,box-shadow 200ms ease}
.map-spot::after{content:"";position:absolute;left:50%;width:8px;margin-left:-4px;height:34px;top:50%;z-index:-1;pointer-events:none;
  background:linear-gradient(rgba(255,255,255,.8),rgba(255,255,255,.8)) center top/2px calc(100% - 6px) no-repeat,
             radial-gradient(circle,#fff 2.5px,transparent 3px) center bottom/8px 8px no-repeat}
.map-spot[data-dir="down"]::after{top:auto;bottom:50%;
  background:linear-gradient(rgba(255,255,255,.8),rgba(255,255,255,.8)) center bottom/2px calc(100% - 6px) no-repeat,
             radial-gradient(circle,#fff 2.5px,transparent 3px) center top/8px 8px no-repeat}
.map-spot:hover::before, .map-spot:focus-visible::before{transform:rotate(45deg) scale(1.18);filter:brightness(1.2)}
.map-spot[aria-pressed="true"]::before{transform:rotate(45deg) scale(1.3);box-shadow:0 0 0 4px rgba(255,255,255,.85),0 0 18px var(--spot),0 4px 12px rgba(0,0,0,.5)}
.map-spot:focus-visible{outline:none}
.map-spot-label{position:absolute;left:50%;bottom:calc(100% + 2px);transform:translate(-50%,4px);white-space:nowrap;padding:4px 10px;border-radius:8px;
  background:rgba(3,12,18,.88);color:#fff;font:500 12px/1.3 var(--font-ui);opacity:0;pointer-events:none;transition:opacity 180ms ease,transform 180ms ease}
.map-spot[data-dir="down"] .map-spot-label{bottom:auto;top:calc(100% + 2px);transform:translate(-50%,-4px)}
.map-spot:hover .map-spot-label, .map-spot:focus-visible .map-spot-label{opacity:1;transform:translate(-50%,0)}

/* Tarjeta de la región (estilo de los modales del juego) */
.region-card{position:relative;text-align:center;padding:32px 26px 24px;border-radius:18px;border:2px solid #127d86;
  background:linear-gradient(180deg,#0b2733,#071820);box-shadow:0 24px 60px rgba(2,6,23,.5)}
.region-card::before{content:"";position:absolute;top:-14px;left:50%;width:26px;height:26px;border-radius:4px;transform:translateX(-50%) rotate(45deg);
  background:var(--btn-deep);border:2px solid #127d86}
.region-chapter{margin:0 0 8px;font:600 12px/1 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--btn-teal)}
.region-card h4{margin:0 0 10px;font:600 22px/1.2 var(--font-ui);color:#fff}
.region-card p{color:var(--text-muted)}
.region-theme{margin:16px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);font-size:14px}
.region-theme strong{color:var(--btn-gold-pressed);font-weight:500}
.region-card-source{border-color:#2f9e5a}
.region-card-source::before{border-color:#2f9e5a;background:#0f3b26}
.region-card-source .region-chapter{color:#44d17f}
.region-card-optional{border-color:#7a5cc0}
.region-card-optional::before{border-color:#7a5cc0;background:#2a1f45}
.region-card-optional .region-chapter{color:#b9a0f0}
.region-optional{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:999px;background:rgba(161,132,230,.18);color:#d5c6fa;letter-spacing:.08em;font-size:10px;vertical-align:1px}

@media (prefers-reduced-motion: no-preference){
  .world-sea{animation:seaDrift 60s linear infinite}
  .world-sea::after{animation:seaDrift 40s linear infinite reverse}
  .world-island{animation:islandFloat 8s ease-in-out infinite}
  .map-spot::before{animation:spotPulse 2.6s ease-out infinite}
  .region-card:not([hidden]){animation:regionIn 320ms cubic-bezier(.2,.9,.2,1)}
}
@keyframes seaDrift{to{transform:translate(120px,60px)}}
@keyframes islandFloat{50%{transform:translateY(-6px)}}
@keyframes spotPulse{50%{box-shadow:0 0 0 8px var(--spot-ring),0 4px 12px rgba(0,0,0,.5)}}
@keyframes regionIn{from{opacity:0;transform:translateY(8px)}}

@media (max-width:900px){
  .world-map{grid-template-columns:1fr;gap:28px}
  .map-spot{width:34px;height:34px}
}
/* El nodo seleccionado mantiene su halo fijo en lugar del pulso */
.map-spot[aria-pressed="true"]::before{animation:none}

/* =========================================
   Iconografía del juego (sustituye a los emojis)
   Los SVG se usan como máscara para pintarlos de un mismo color.
   .gt-icon = icono suelto · .gt-tile = icono en baldosa, como en la barra del juego
   ========================================= */
.gt-icon{display:inline-block;width:1em;height:1em;flex:0 0 auto;vertical-align:-.15em;background:currentColor;
  -webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.gt-tile{display:inline-grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border-radius:12px;
  background:var(--btn-deep);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 6px 16px rgba(2,6,23,.35)}
.gt-tile::before{content:"";width:58%;height:58%;background:#fff;
  -webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}

/* Títulos con baldosa */
h3.has-tile{display:flex;align-items:center;gap:12px}
h3.has-tile .gt-tile{width:40px;height:40px;border-radius:11px}

/* Separadores de bloque */
.block-sep .block-icon{background:var(--btn-deep);border-color:rgba(255,255,255,.08)}
.block-sep .block-icon .gt-icon{width:28px;height:28px;color:#fff}

/* Sello de validación */
.validation-seal{display:inline-flex;align-items:center;gap:8px}
.validation-seal .gt-icon{width:20px;height:20px;color:#8df0d8}

/* Nuestra ventaja */
.advantage-mini .gt-tile{margin-bottom:8px}

/* Roadmap: estado en la baldosa y rombos en lugar de flechas */
.roadmap-icon{font-size:0}
.roadmap-icon .gt-tile{width:52px;height:52px;border-radius:14px}
.roadmap-step.completed .gt-tile::before{background:#a5d6d0}
.roadmap-step.progress .gt-tile{background:var(--btn-teal)}
.roadmap-step.next .gt-tile::before{background:var(--btn-gold-pressed)}
.roadmap-arrow{position:relative;width:34px;height:14px;font-size:0;opacity:1}
.roadmap-arrow::before{content:"";position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;background:linear-gradient(90deg,transparent,rgba(42,161,175,.7),transparent)}
.roadmap-arrow::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;transform:rotate(45deg);background:var(--btn-teal);border-radius:2px}
@media (max-width:900px){
  .roadmap-arrow{transform:rotate(90deg)}
}

/* Qué buscamos */
.ask-icon{font-size:0}
.ask-icon .gt-tile{width:56px;height:56px;border-radius:16px}
.ask-card:first-child .gt-tile::before{background:var(--btn-gold-pressed)}

/* Iconos de título un poco mayores dentro de su baldosa */
h3.has-tile .gt-tile::before,
.advantage-mini .gt-tile::before,
.ask-icon .gt-tile::before,
.roadmap-icon .gt-tile::before{width:70%;height:70%}
.block-sep .block-icon .gt-icon{width:36px;height:36px}

/* =========================================
   Retos diarios con el formato del juego:
   rombo con icono + barra con progreso y punta; dorada al completarse
   ========================================= */
.daily-list{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:16px;max-width:780px}
.daily{position:relative;display:flex;align-items:center;min-height:76px}
.daily-icon{position:relative;z-index:2;flex:0 0 auto;display:grid;place-items:center;width:72px;height:72px}
.daily-icon::before{content:"";position:absolute;inset:10px;transform:rotate(45deg);border-radius:8px;
  background:#21404b;box-shadow:inset 0 0 0 3px #2e5a66,0 6px 16px rgba(2,6,23,.45)}
.daily-icon .gt-icon{position:relative;width:30px;height:30px;color:#e6e8c8}
.daily-bar{position:relative;flex:1 1 auto;display:flex;align-items:center;gap:12px;margin-left:-30px;
  padding:12px 34px 12px 44px;min-height:64px;color:#e6e8c8;
  background:linear-gradient(90deg,#007980 0 var(--progress),#16363f var(--progress) 100%);
  clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%);
  border-radius:10px 0 0 10px;transition:filter .2s ease}
.daily:hover .daily-bar{filter:brightness(1.08)}
.daily-text{flex:1 1 auto;min-width:0}
.daily-type{display:block;font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.daily-bar h4{margin:2px 0 2px;font-size:1.02rem;color:inherit}
.daily-bar p{margin:0;font-size:.9rem;line-height:1.35;color:inherit;opacity:.88}
@property --progress{syntax:'<percentage>';inherits:true;initial-value:0%}
.daily{transition:--progress .45s cubic-bezier(.2,.8,.2,1)}
.daily-end{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;margin-right:-8px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.08);color:inherit;font:700 1.5rem/1 var(--font-ui);cursor:pointer;
  transition:background .18s ease,transform .12s ease}
.daily-end:hover{background:rgba(255,255,255,.18)}
.daily-end:active{transform:scale(.88)}
.daily-end:focus-visible{outline:2px solid #e6e8c8;outline-offset:2px}
.daily[data-state="done"] .daily-end{background:rgba(42,29,12,.12)}
.daily[data-state="done"] .daily-end:hover{background:rgba(42,29,12,.22)}
.daily.just-done .daily-icon{animation:dailyPop .5s ease}
@keyframes dailyPop{40%{transform:scale(1.18)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.daily{transition:none}.daily.just-done .daily-icon{animation:none}}
.daily-end::before{content:"+"}
/* Completado: barra dorada, rombo marrón y ✓ */
.daily[data-state="done"] .daily-bar{background:var(--btn-gold);color:#2a1d0c}
.daily[data-state="done"] .daily-icon::before{background:#7a5a3a;box-shadow:inset 0 0 0 3px #9b7a4c,0 6px 16px rgba(2,6,23,.45)}
.daily[data-state="done"] .daily-icon .gt-icon{color:#f3e6bf}
.daily[data-state="done"] .daily-end::before{content:"\2713";font-size:1.35rem}
@media (max-width:600px){
  .daily-icon{width:60px;height:60px}
  .daily-icon .gt-icon{width:24px;height:24px}
  .daily-bar{margin-left:-26px;padding:10px 28px 10px 36px}
  .daily-bar p{font-size:.84rem}
}

/* =========================================
   Bestiario: las distracciones convertidas en enemigos del juego
   ========================================= */
.bestiary{padding:18px 0}
.bestiary .container{width:min(1500px,96%);max-width:none;margin:0 auto;padding:22px;border-radius:12px;
  background:linear-gradient(180deg,#0b2a34,#051018);border:1px solid rgba(255,255,255,.04);box-shadow:0 10px 30px rgba(2,6,23,.12)}
.bestiary h2{color:#dff7f4;font-weight:700;letter-spacing:.6px}
.enemy-grid{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.enemy-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:#0d2630;
  border:1px solid rgba(255,255,255,.06);box-shadow:0 8px 22px rgba(2,6,23,.35);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;outline:none}
.enemy-card:hover,.enemy-card:focus-visible{transform:translateY(-4px);border-color:rgba(42,161,175,.45);box-shadow:0 16px 36px rgba(2,6,23,.45)}
.enemy-art{position:relative;aspect-ratio:1/1;background:#30364a;overflow:hidden}
.enemy-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s ease,opacity .35s ease}
.enemy-card:hover .enemy-art img{transform:scale(1.04)}
/* Flicker: arte final sobre un halo; al pasar el ratón se ve su boceto */
.enemy-art-final{background:radial-gradient(circle at 50% 45%,#1d5a63 0,#1a3442 55%,#30364a 100%)}
.enemy-art-final img{object-fit:contain;padding:6px}
.enemy-art-final .enemy-sketch-over{object-fit:cover;padding:0;opacity:0}
.enemy-card:hover .enemy-sketch-over,.enemy-card:focus-visible .enemy-sketch-over{opacity:1}
.enemy-body{padding:12px 14px 16px}
.enemy-dist{display:block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--btn-gold-pressed)}
.enemy-body h3{margin:4px 0 6px;font-size:1.08rem;color:#fff}
.bestiary .enemy-body p{margin:0;font-size:.9rem;line-height:1.4;color:var(--text-muted)}
.bestiary-note{margin:16px 0 0;font-size:.85rem;color:var(--text-muted);opacity:.8}
@media (max-width:1100px){ .enemy-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:700px){
  .bestiary .container{width:100%;padding:14px}
  .enemy-grid{grid-template-columns:1fr;gap:10px}
  .enemy-card{flex-direction:row;align-items:stretch}
  .enemy-art{flex:0 0 112px;aspect-ratio:auto;min-height:112px}
  .enemy-body{padding:10px 12px;align-self:center}
  .enemy-body h3{font-size:1rem;margin:2px 0 4px}
  .bestiary .enemy-body p{font-size:.84rem}
}
@media (prefers-reduced-motion:reduce){ .enemy-card,.enemy-art img{transition:none} }

/* Bestiario: datos de combate del Notion */
.enemy-body{display:flex;flex-direction:column}
.bestiary .enemy-body p.enemy-trait{margin-top:10px;padding:8px 10px;border-radius:8px;background:rgba(42,161,175,.1);border-left:3px solid var(--btn-teal);font-size:.82rem;color:#dff7f4}
.enemy-trait strong{color:#8df0d8}
.bestiary .enemy-body p.enemy-beat{margin-top:8px;font-size:.82rem}
.enemy-beat-label{display:block;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8df0d8;margin-bottom:2px}
.enemy-skills{list-style:none;margin:auto 0 0;padding:10px 0 0;display:flex;flex-wrap:wrap;gap:5px}
.enemy-skills li{padding:2px 8px;border-radius:999px;font-size:.68rem;font-weight:600;color:#e6e8c8;background:#16363f;border:1px solid rgba(255,255,255,.08)}
.enemy-card{height:100%}
/* "Cómo vencerlo" más visible */
.bestiary .enemy-body p.enemy-beat{margin-top:10px;padding:8px 10px;border-radius:8px;background:rgba(165,135,73,.12);border-left:3px solid var(--btn-gold);font-size:.84rem;line-height:1.45;color:#f1ead2}
.enemy-beat-label{color:var(--btn-gold-pressed)}

/* =========================================
   Nodos del mapa (iconografía del Figma): círculo turquesa con anillo claro
   ========================================= */
.map-node{--n:20px;display:inline-grid;place-items:center;width:var(--n);height:var(--n);border-radius:50%;
  background:radial-gradient(circle at 50% 35%,#1aa6b0,#0b6b78);box-shadow:0 0 0 2px #bff5ec,0 3px 8px rgba(2,6,23,.55)}
.map-node::before{content:"";width:58%;height:58%;background:#fff;-webkit-mask:var(--glyph) center/contain no-repeat;mask:var(--glyph) center/contain no-repeat}
.map-node[data-type="main-quest"]{--glyph:url(assets/icons/nodes/main-quest.svg)}
.map-node[data-type="side-quest"]{--glyph:url(assets/icons/nodes/side-quest.svg)}
.map-node[data-type="combat"]{--glyph:url(assets/icons/nodes/combat.svg)}
.map-node[data-type="tip"]{--glyph:url(assets/icons/nodes/tip.svg)}
/* Tipos de nodo bajo el mapa */
.node-types{margin-top:26px}
.node-types-title{margin:0 0 12px;font-size:1.05rem;color:#dff7f4}
.node-type-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.node-type{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:12px;background:#0d2630;border:1px solid rgba(255,255,255,.06)}
.node-type .map-node{--n:38px;flex:0 0 auto}
.node-type h4{margin:2px 0 4px;font-size:.98rem;color:#fff}
.node-type p{margin:0;font-size:.86rem;line-height:1.4;color:var(--text-muted)}
@media (max-width:1100px){ .node-type-list{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:600px){ .node-type-list{grid-template-columns:1fr;gap:10px} .node-type{padding:12px} }

/* =========================================
   Liria, la guía: aparece en varias secciones con un bocadillo como el del juego
   ========================================= */
.liria-tip{display:flex;align-items:center;gap:14px;margin:16px 0;max-width:620px}
.liria-tip-img{flex:0 0 auto;width:78px;height:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));animation:liriaFloat 4.5s ease-in-out infinite}
.liria-bubble{position:relative;margin:0;padding:12px 16px;border-radius:6px;font-family:var(--font-game);font-size:1rem;line-height:1.4;
  color:#e6e8c8;background:linear-gradient(180deg,#0b1d24,#02080a);border:3px solid #12505c;box-shadow:0 8px 20px rgba(2,6,23,.35)}
.liria-bubble::before{content:"";position:absolute;left:-9px;top:50%;width:14px;height:14px;margin-top:-7px;transform:rotate(45deg);
  background:#071318;border-left:3px solid #12505c;border-bottom:3px solid #12505c}
.liria-name{display:block;font-family:var(--font-ui);font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8df0d8;margin-bottom:2px}
#problem .container p.liria-bubble, #status .container p.liria-bubble, #contact .container p.liria-bubble{color:#e6e8c8}
@keyframes liriaFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@media (max-width:600px){ .liria-tip{gap:10px} .liria-tip-img{width:62px} .liria-bubble{font-size:.92rem;padding:10px 12px} }
@media (prefers-reduced-motion:reduce){ .liria-tip-img{animation:none} }

/* =========================================
   Pruébalo: modal de reto diario y habilidades (recreados de la guía de UI del juego)
   ========================================= */
.tryit{margin-top:34px}
.tryit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:16px;align-items:start}
.tryit-item{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 18px 24px;border-radius:16px;background:rgba(2,12,16,.45);border:1px solid rgba(255,255,255,.06)}
.tryit-item h4{margin:0 0 4px;font-size:1.05rem;color:#fff}
.tryit-hint{margin:0 0 44px;font-size:.88rem;color:var(--text-muted)}

/* Modal de reto */
.dc-modal{position:relative;width:min(100%,340px);padding:46px 20px 20px;border-radius:22px;background:#0a2431;border:4px solid #007980;color:#e6e8c8}
.dc-modal.bump{animation:tryBump .35s ease}
@keyframes tryBump{40%{transform:scale(.97)}100%{transform:scale(1)}}
.dc-badge{position:absolute;left:50%;top:-30px;width:56px;height:56px;margin-left:-28px;display:grid;place-items:center;transform:rotate(45deg);background:#21404b;border:4px solid #007980}
.dc-badge .gt-icon{transform:rotate(-45deg);width:28px;height:28px;color:#c9cdc9}
.dc-title{margin:0 0 16px;font-size:1.3rem;font-weight:500;color:#e6e8c8}
.dc-progress{position:relative;height:8px;margin:0 10px;background:#04111a;border-radius:2px}
.dc-progress::before,.dc-progress::after{content:"";position:absolute;top:50%;width:12px;height:12px;margin-top:-6px;transform:rotate(45deg)}
.dc-progress::before{left:-6px;background:#007980}
.dc-progress::after{right:-6px;background:#04111a}
.dc-progress-fill{position:absolute;left:0;top:0;bottom:0;background:#007980;transition:width .35s ease}
.dc-progress-fill::after{content:"";position:absolute;right:-10px;top:50%;width:18px;height:18px;margin-top:-9px;transform:rotate(45deg);background:var(--btn-teal)}
.dc-count{margin:12px 0 14px;font-size:.95rem;color:#8fc4c0}
.dc-sep{border:0;height:3px;border-radius:2px;background:#04111a;margin:0 0 14px}
.dc-label{margin:0 0 8px;font-size:1.05rem;color:#fff}
.dc-difficulty{display:flex;align-items:center;justify-content:space-between;padding:6px;border-radius:16px;background:#020d14;font-size:1.15rem;color:#fff}
.dc-step{width:38px;height:38px;border:0;border-radius:12px;background:transparent;color:#fff;font:600 1.4rem/1 var(--font-ui);cursor:pointer;transition:background .15s ease}
.dc-step:hover:not(:disabled){background:rgba(255,255,255,.08)}
.dc-step:disabled{opacity:.3;cursor:default}
.dc-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.dc-btn{display:flex;align-items:center;justify-content:center;gap:10px;padding:11px 10px;border:0;border-radius:16px;color:#fff;font:500 1.05rem var(--font-ui);cursor:pointer;transition:background .15s ease,transform .1s ease}
.dc-btn .gt-icon{width:22px;height:22px}
.dc-btn:active{transform:scale(.96)}
.dc-ban{background:var(--btn-gold)}
.dc-ban:hover:not(:disabled){background:#b3955a}
.dc-ban:disabled{opacity:.45;cursor:not-allowed}
.dc-swap{background:var(--btn-teal)}
.dc-swap:hover{background:#33b2c0}
.dc-apply{margin-top:16px;min-width:150px;padding:11px 28px;border:0;border-radius:16px;background:var(--btn-teal);color:#fff;font:500 1.1rem var(--font-ui);cursor:pointer;transition:background .15s ease,transform .1s ease}
.dc-apply:hover{background:#33b2c0}
.dc-apply:active{transform:scale(.96);background:var(--btn-teal-pressed,#a5d6d0)}
.dc-toast{min-height:1.4em;margin:12px 0 0;font-size:.88rem;color:#d7c178;opacity:0;transition:opacity .25s ease}
.dc-toast.show{opacity:1}

/* Habilidades */
.skill-card{width:min(100%,360px);padding:18px 20px;border-radius:18px;text-align:left;background:linear-gradient(180deg,#0b1a2c,#050d17);border:2px solid #1c4a5a;box-shadow:inset 0 0 0 6px #050d17,inset 0 0 0 7px rgba(42,161,175,.25)}
.skill-card.bump{animation:tryBump .3s ease}
.skill-card-head{display:flex;align-items:center;gap:14px;padding-bottom:12px;border-bottom:2px solid rgba(42,161,175,.25)}
.skill-card .skill-glyph{width:52px;height:52px}
.skill-card-name{margin:0;font-size:1.35rem;font-weight:600;color:#fff}
.skill-card-state{margin:0;font-style:italic;color:#c9d6e0}
.skill-card-quote{margin:12px 0 6px;font-style:italic;color:#b8c6cf;text-align:center}
.skill-card-effect{margin:0 0 10px;color:#fff;text-align:center}
.skill-card-steps{margin:0;font-style:italic;color:#d7c178;text-align:center}
.skill-glyph{display:inline-block;flex:0 0 auto;width:30px;height:30px;background:#9fdbe6;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.skill-glyph[data-skill="smite"]{background:#e6c873}
.skill-glyph[data-skill="gust"]{background:#c9cdc9}
.skill-glyph[data-skill="frost"]{background:#a4e1ea}
.skill-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}
.skill-btn{position:relative;display:flex;align-items:center;gap:10px;padding:10px 18px;border:2px solid #0f5561;color:#fff;cursor:pointer;
  background:linear-gradient(180deg,#1b6470,#11454f);clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,12px 100%,0 50%);
  transition:filter .15s ease,transform .1s ease}
.skill-btn:hover{filter:brightness(1.12)}
.skill-btn:active{transform:scale(.96)}
.skill-btn[aria-pressed="true"]{background:linear-gradient(180deg,#2aa1af,#1b7d88);box-shadow:inset 0 0 0 2px #bff5ec}
.skill-btn.cooldown{filter:saturate(.5) brightness(.85)}
.skill-btn.cooldown:hover{filter:saturate(.6) brightness(.95)}
.skill-btn-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.skill-btn-name{font-weight:600;font-size:1rem}
.skill-btn-state{font-size:.78rem;font-style:italic;opacity:.85}
@media (max-width:800px){ .tryit-grid{grid-template-columns:1fr} }
@media (prefers-reduced-motion:reduce){ .dc-modal.bump,.skill-card.bump{animation:none} .dc-progress-fill{transition:none} }

/* =========================================
   Cómo se hace: comparadores boceto → final
   ========================================= */
.making{padding:18px 0}
.making .container{width:min(1500px,96%);max-width:none;margin:0 auto;padding:22px;border-radius:12px;
  background:linear-gradient(180deg,#0b2a34,#051018);border:1px solid rgba(255,255,255,.04)}
.making h2{color:#dff7f4}
.ba-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px;align-items:start}
.ba-item{margin:0}
.ba{position:relative;overflow:hidden;border-radius:14px;background:#0d2630;border:1px solid rgba(255,255,255,.08);touch-action:pan-y;user-select:none}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ba-before{clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.ba-handle{position:absolute;top:0;bottom:0;left:var(--pos);width:3px;margin-left:-1.5px;background:#e6e8c8;box-shadow:0 0 8px rgba(0,0,0,.5);pointer-events:none}
.ba-handle::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;transform:rotate(45deg);
  background:var(--btn-teal);border:3px solid #e6e8c8;border-radius:3px;box-shadow:0 3px 10px rgba(0,0,0,.45)}
.ba-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none}
.ba-range:focus-visible + *, .ba:focus-within{outline:2px solid #e6e8c8;outline-offset:3px}
.ba-tag{position:absolute;top:10px;padding:3px 10px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;pointer-events:none}
.ba-tag-before{left:10px;color:#1b1b1b;background:rgba(230,232,200,.9)}
.ba-tag-after{right:10px;color:#2a1d0c;background:var(--btn-gold-pressed)}
.ba-item figcaption{margin-top:10px;font-size:.9rem;line-height:1.4;color:var(--text-muted)}
.ba-item figcaption strong{display:block;color:#fff;font-size:1rem;margin-bottom:2px}
.making-process-title{margin-top:30px}
.process{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;counter-reset:step}
.process-step{position:relative;counter-increment:step}
.process-step img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:#e8e8e8}
.process-step::before{content:counter(step);position:absolute;left:10px;top:10px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;
  background:var(--btn-teal);color:#fff;font-weight:700;font-size:.9rem;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.process-step p{margin:10px 0 0;font-size:.9rem;line-height:1.4;color:var(--text-muted)}
.process-step p strong{display:block;color:#fff}
.process-step:not(:last-child)::after{content:"";position:absolute;right:-14px;top:calc(31% - 5px);width:10px;height:10px;transform:rotate(45deg);background:var(--btn-teal)}
@media (max-width:1000px){ .ba-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:700px){
  .making .container{width:100%;padding:14px}
  .ba-grid,.process{grid-template-columns:1fr}
  .process-step:not(:last-child)::after{display:none}
}
.process-step img{object-fit:contain;aspect-ratio:4/3;height:auto}
.process-step:nth-child(1) img{background:#fff}
.process-step:nth-child(2) img{background:#3d3d3d}
.process-step:nth-child(3) img{object-fit:cover;object-position:50% 45%;background:#fff}
.process-step:not(:last-child)::after{top:calc(37% - 5px)}

/* Pruébalo como sección propia */
#demo .tryit{margin-top:0}
#demo .challenges{margin-top:34px}

/* =========================================
   Galería en carrusel: scroll-snap + botones rombo + puntos
   ========================================= */
.carousel{position:relative;margin-top:12px}
.carousel-track{list-style:none;margin:0;padding:6px 0 10px;display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  scrollbar-width:none;-ms-overflow-style:none;outline:none}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-slide{flex:0 0 auto;scroll-snap-align:center;transition:opacity .3s ease,transform .3s ease;opacity:.45;transform:scale(.94)}
.carousel-slide.is-active{opacity:1;transform:none}
.carousel-slide:first-child{margin-left:calc(50% - 110px)}
.carousel-slide:last-child{margin-right:calc(50% - 110px)}
.carousel .gallery-item{margin:0}
.carousel .gallery-item:hover{transform:none}
.carousel .gallery-item img{height:440px;width:auto;max-width:min(80vw,640px);object-fit:contain;cursor:zoom-in}
.carousel-btn{position:absolute;top:calc(50% - 40px);z-index:2;width:48px;height:48px;border:0;padding:0;cursor:pointer;background:transparent}
.carousel-btn::before{content:"";position:absolute;inset:8px;transform:rotate(45deg);border-radius:6px;background:var(--btn-deep);border:2px solid var(--btn-teal);box-shadow:0 6px 16px rgba(2,6,23,.5);transition:background .15s ease}
.carousel-btn::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -7px;border-top:3px solid #fff;border-right:3px solid #fff;transform:rotate(45deg)}
.carousel-prev{left:6px}
.carousel-prev::after{margin-left:-3px;transform:rotate(-135deg)}
.carousel-next{right:6px}
.carousel-btn:hover:not(:disabled)::before{background:var(--btn-teal)}
.carousel-btn:disabled{opacity:.35;cursor:default}
.carousel-dots{display:flex;justify-content:center;gap:12px;margin-top:10px}
.carousel-dot{width:12px;height:12px;padding:0;border:0;transform:rotate(45deg);border-radius:2px;background:rgba(255,255,255,.2);cursor:pointer;transition:background .2s ease}
.carousel-dot[aria-selected="true"]{background:var(--btn-teal)}
@media (max-width:700px){
  .carousel .gallery-item img{height:360px}
  .carousel-slide:first-child{margin-left:calc(50% - 85px)}
  .carousel-slide:last-child{margin-right:calc(50% - 85px)}
  .carousel-btn{display:none}
}
@media (prefers-reduced-motion:reduce){ .carousel-track{scroll-behavior:auto} .carousel-slide{transition:none} }

/* =========================================
   Separación entre secciones: más aire y un ornamento de línea con rombo
   ========================================= */
main > section{margin-top:28px}
main > section + section::before, main > .product-section::before, main > .universe-section::before{content:"";display:block;border:0;box-shadow:none;position:static;width:min(520px,70%);height:14px;margin:0 auto 30px;
  background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 14%27%3E%3Crect x=%273%27 y=%273%27 width=%278%27 height=%278%27 transform=%27rotate(45 7 7)%27 fill=%27%230a2431%27 stroke=%27%232aa1af%27 stroke-width=%272%27/%3E%3C/svg%3E") center/14px 14px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 14' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%232aa1af' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%232aa1af' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%232aa1af' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='6.5' width='520' height='1' fill='url(%23g)'/%3E%3C/svg%3E") center/100% 100% no-repeat}
main > section{position:relative}
.block-sep{margin-top:56px}
.impact-grid{margin-top:8px}

/* =========================================
   Retos diarios centrados
   ========================================= */
#demo .challenges{text-align:center}
#demo .challenges .liria-tip{margin-left:auto;margin-right:auto;text-align:left;width:fit-content}
.daily-list{margin-left:auto;margin-right:auto;text-align:left}

/* =========================================
   Equipo: foto de Sergio más cerca
   ========================================= */
.team-section .member-card .avatar.avatar-zoom{object-position:48% 32%;transform:scale(1.75);transform-origin:48% 40%}

/* =========================================
   Visor de documentos
   ========================================= */
.doc-viewer{width:min(1100px,calc(100% - 24px));height:calc(100vh - 40px);max-height:none}
.doc-viewer-panel{display:flex;flex-direction:column;height:100%}
.doc-viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px 12px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.doc-viewer-title{margin:0;font-size:1.05rem;color:#dff7f4}
.doc-viewer-title::after{display:none}
.doc-viewer-actions{display:flex;align-items:center;gap:10px}
.doc-viewer-link{font-size:.85rem;font-weight:600;color:var(--btn-teal);text-decoration:none;padding:8px 10px;border-radius:10px}
.doc-viewer-link:hover,.doc-viewer-link:focus-visible{background:rgba(42,161,175,.12)}
.doc-viewer .doc-viewer-close{position:static}
.doc-viewer-body{position:relative;flex:1 1 auto;min-height:0;background:#1e2326}
.doc-viewer-body iframe{display:block;width:100%;height:100%;border:0}
.doc-viewer-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center}
.doc-viewer-fallback[hidden]{display:none}
@media (max-width:600px){
  .doc-viewer{height:calc(100vh - 24px)}
  .doc-viewer-bar{flex-wrap:wrap;padding:10px 12px}
  .doc-viewer-link{padding:6px 8px;font-size:.8rem}
}

/* =========================================
   Cursor: más pequeño y con un hover más marcado (el círculo se rellena)
   ========================================= */
@media (hover:hover) and (pointer:fine){
  #custom-cursor{z-index:2147483000;width:30px;height:30px}
  #custom-cursor .cursor-outer{width:30px;height:30px;border-width:1.5px;background:rgba(42,161,175,0);
    transition:transform 240ms cubic-bezier(.2,.9,.2,1),background 200ms ease,border-color 200ms ease,opacity 200ms ease}
  #custom-cursor .cursor-inner{width:6px;height:6px}
  #custom-cursor.cursor--hover .cursor-outer{transform:translate(-50%,-50%) scale(1.55);background:rgba(42,161,175,.38);border-color:rgba(165,214,208,.95);opacity:1;
    box-shadow:0 0 18px rgba(42,161,175,.45)}
  #custom-cursor.cursor--hover .cursor-inner{transform:translate(-50%,-50%) scale(0);opacity:0;width:6px;height:6px}
  #custom-cursor.cursor--active .cursor-outer{transform:translate(-50%,-50%) scale(1.15);background:rgba(42,161,175,.6)}
  #custom-cursor.cursor--hover.cursor--active .cursor-outer{transform:translate(-50%,-50%) scale(1.3)}
}

/* =========================================
   Portada del proyecto a pantalla completa
   ========================================= */
#vision.hero-full{min-height:calc(100svh - var(--nav-height, 64px));max-height:none;padding:40px 0 70px;align-items:center}
#vision.hero-full::before{background-image:image-set(url('assets/images/hero/hero-valley-960.webp') 1x, url('assets/images/hero/hero-valley.webp') 2x);
  background-image:url('assets/images/hero/hero-valley.webp');background-position:center 60%;filter:saturate(.95) brightness(.85);
  animation:heroKenBurns 28s ease-in-out infinite alternate}
#vision.hero-full::after{background:
  linear-gradient(90deg,rgba(3,18,24,.92) 0%,rgba(3,18,24,.72) 38%,rgba(3,18,24,.15) 70%,rgba(3,18,24,.25) 100%),
  linear-gradient(180deg,rgba(3,18,24,0) 55%,var(--page-bg, #031218) 100%)}
@keyframes heroKenBurns{from{transform:translate3d(0,var(--vision-parallax,0px),0) scale(1.08)}to{transform:translate3d(-2%,var(--vision-parallax,0px),0) scale(1.16)}}
#vision.hero-full .vision-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);max-width:1240px;width:100%;gap:40px}
#vision.hero-full .vision-copy{gap:14px}
#vision.hero-full .vision-copy h1{font-size:clamp(2.2rem,4.6vw,3.9rem);line-height:1.04;max-width:14ch;text-shadow:0 6px 30px rgba(0,0,0,.45)}
#vision.hero-full .vision-copy .lead{font-size:clamp(1rem,1.4vw,1.2rem);max-width:520px;-webkit-line-clamp:unset;line-clamp:unset;display:block;color:#d6ece9}
#vision.hero-full .hero-ctas{margin-top:10px;flex-wrap:wrap;gap:10px}
.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0;width:fit-content;padding:6px 12px;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#bff5ec;background:rgba(14,73,87,.6);border:1px solid rgba(42,161,175,.5)}
.hero-eyebrow-dot{width:8px;height:8px;transform:rotate(45deg);background:var(--btn-teal);box-shadow:0 0 10px var(--btn-teal)}
.hero-facts{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px 28px}
.hero-facts li{display:flex;flex-direction:column;padding-left:12px;border-left:2px solid rgba(42,161,175,.6)}
.hero-facts strong{font-size:1.15rem;color:#fff}
.hero-facts span{font-size:.82rem;color:#a9cfca}
#vision.hero-full .vision-image{justify-content:center;padding:0}
#vision.hero-full .vision-image::before{display:none}
.hero-halo{position:absolute;left:50%;top:50%;width:min(420px,80%);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle,rgba(0,255,255,.28) 0,rgba(42,161,175,.12) 45%,transparent 70%);filter:blur(10px);animation:heroHalo 5s ease-in-out infinite}
#vision.hero-full .vision-image img{position:relative;max-width:min(360px,100%);width:100%;box-shadow:none;border-radius:0;
  filter:drop-shadow(0 26px 30px rgba(0,0,0,.45));animation:heroFloat 6s ease-in-out infinite}
@keyframes heroFloat{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-16px) rotate(1.5deg)}}
@keyframes heroHalo{0%,100%{opacity:.75;transform:translate(-50%,-50%) scale(.95)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}}
/* Motas de luz que suben */
.hero-motes{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.hero-motes span{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:50%;background:#bffcf4;
  box-shadow:0 0 10px 2px rgba(120,255,240,.7);opacity:0;animation:heroMote var(--d) linear var(--delay) infinite}
@keyframes heroMote{0%{transform:translate3d(0,0,0);opacity:0}15%{opacity:.9}80%{opacity:.6}100%{transform:translate3d(30px,-220px,0);opacity:0}}
/* Entrada escalonada del texto */
#vision.hero-full .vision-copy > *{animation:heroIn .8s cubic-bezier(.2,.8,.2,1) both}
#vision.hero-full .vision-copy > :nth-child(2){animation-delay:.08s}
#vision.hero-full .vision-copy > :nth-child(3){animation-delay:.16s}
#vision.hero-full .vision-copy > :nth-child(4){animation-delay:.24s}
#vision.hero-full .vision-copy > :nth-child(5){animation-delay:.32s}
@keyframes heroIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
/* Indicador para seguir bajando */
.hero-scroll{position:absolute;left:50%;bottom:22px;z-index:4;width:44px;height:44px;margin-left:-22px;display:grid;place-items:center}
.hero-scroll span{width:14px;height:14px;border-right:3px solid #e6e8c8;border-bottom:3px solid #e6e8c8;transform:rotate(45deg);animation:heroScroll 1.8s ease-in-out infinite}
@keyframes heroScroll{0%,100%{transform:translateY(-4px) rotate(45deg);opacity:.5}50%{transform:translateY(6px) rotate(45deg);opacity:1}}
@media (max-width:900px){
  #vision.hero-full{min-height:calc(100svh - var(--nav-height, 56px));padding:30px 0 80px}
  #vision.hero-full::after{background:linear-gradient(180deg,rgba(3,18,24,.55) 0%,rgba(3,18,24,.82) 55%,var(--page-bg, #031218) 100%)}
  #vision.hero-full .vision-grid{grid-template-columns:1fr;gap:6px;text-align:center}
  #vision.hero-full .vision-image{order:-1}
  #vision.hero-full .vision-image img{max-width:170px}
  .hero-halo{width:220px}
  #vision.hero-full .vision-copy{align-items:center}
  #vision.hero-full .vision-copy h1{max-width:none}
  .hero-facts{justify-content:center}
  .hero-facts li{align-items:flex-start;text-align:left}
}
@media (prefers-reduced-motion:reduce){
  #vision.hero-full::before,.hero-halo,#vision.hero-full .vision-image img,.hero-motes span,#vision.hero-full .vision-copy > *,.hero-scroll span{animation:none}
  .hero-motes{display:none}
}

/* =========================================
   Pruébalo: que se note que es interactivo
   ========================================= */
.tryit-item{position:relative;border:1px dashed rgba(42,161,175,.45);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.tryit-item:hover{border-color:rgba(42,161,175,.85);box-shadow:0 0 0 4px rgba(42,161,175,.08),0 18px 40px rgba(2,6,23,.35)}
.tryit-badge{display:inline-flex;align-items:center;gap:7px;margin-bottom:10px;padding:4px 11px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:#2a1d0c;background:var(--btn-gold-pressed)}
.tryit-badge-dot{width:7px;height:7px;border-radius:50%;background:#2a1d0c;animation:tryDot 1.4s ease-in-out infinite}
@keyframes tryDot{50%{opacity:.25}}
/* Pulso de "toca aquí" hasta la primera interacción */
.tap-hint{position:relative}
.tryit-item:not(.touched) .tap-hint::after{content:"";position:absolute;inset:-6px;border-radius:20px;border:2px solid #d7c178;pointer-events:none;animation:tapPulse 1.6s ease-out infinite}
.skill-buttons.tap-hint::after{border-radius:16px}
@keyframes tapPulse{0%{opacity:.9;transform:scale(.96)}100%{opacity:0;transform:scale(1.12)}}
.dc-step:not(:disabled),.dc-btn,.dc-apply,.skill-btn{box-shadow:0 4px 0 rgba(0,0,0,.35)}
.dc-btn:active,.dc-apply:active,.skill-btn:active{box-shadow:0 1px 0 rgba(0,0,0,.35);transform:translateY(3px)}
@media (prefers-reduced-motion:reduce){ .tryit-item:not(.touched) .tap-hint::after,.tryit-badge-dot{animation:none} }
#vision.hero-full::before{inset:-6% 0 -6% 0;background-position:center 55%;filter:saturate(1) brightness(.95)}
#vision.hero-full .vision-copy h1{max-width:18ch}
@media (max-width:900px){ #vision.hero-full::before{inset:-4% 0 -4% 0;background-position:62% 50%} }
/* El visor de capturas debe recibir clics cuando está abierto (la regla con id lo bloqueaba) */
#lightbox.lightbox-visible{pointer-events:auto}

/* =========================================
   Portada: Liria habla
   ========================================= */
#vision.hero-full .vision-image{flex-direction:column;align-items:center;gap:6px}
.hero-speech{position:relative;z-index:4;width:min(340px,100%);min-height:96px;padding:12px 18px 18px;border-radius:6px;cursor:pointer;
  font-family:var(--font-game);font-size:1.05rem;line-height:1.4;color:#e6e8c8;background:linear-gradient(180deg,#0b1d24,#02080a);
  border:3px solid #12505c;box-shadow:0 14px 30px rgba(0,0,0,.45);animation:heroIn .8s .4s cubic-bezier(.2,.8,.2,1) both;transition:border-color .2s ease}
.hero-speech:hover,.hero-speech:focus-visible{border-color:var(--btn-teal);outline:none}
.hero-speech::after{content:"";position:absolute;left:50%;bottom:-10px;width:16px;height:16px;margin-left:-8px;transform:rotate(45deg);
  background:#03090c;border-right:3px solid #12505c;border-bottom:3px solid #12505c}
.hero-speech-name{display:block;font-family:var(--font-ui);font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8df0d8;margin-bottom:4px}
.hero-speech-text{margin:0;color:#e6e8c8}
.hero-speech-caret{display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-.12em;background:#e6e8c8;opacity:0}
.hero-speech.is-typing .hero-speech-caret{opacity:1;animation:tryDot .7s steps(1) infinite}
.hero-speech-next{position:absolute;right:12px;bottom:8px;width:9px;height:9px;border-right:2px solid #e6e8c8;border-bottom:2px solid #e6e8c8;transform:rotate(45deg);animation:heroScroll 1.4s ease-in-out infinite}
.hero-speech.is-typing .hero-speech-next{opacity:0}
#vision.hero-full .vision-image img{max-width:min(300px,100%)}
#vision.hero-full .vision-image img.liria-react{animation:liriaReact .45s cubic-bezier(.2,.9,.3,1.4),heroFloat 6s ease-in-out .45s infinite}
@keyframes liriaReact{0%{transform:scale(.92) translateY(6px)}60%{transform:scale(1.05) translateY(-4px)}100%{transform:none}}
.hero-halo{top:62%}
@media (max-width:900px){
  .hero-speech{min-height:84px;font-size:.98rem}
  #vision.hero-full .vision-image img{max-width:150px}
}
@media (prefers-reduced-motion:reduce){ .hero-speech,.hero-speech-next,#vision.hero-full .vision-image img.liria-react{animation:none} }

/* =========================================
   Reto del día: barra arrastrable
   ========================================= */
.dc-range{position:absolute;left:-12px;right:-12px;top:50%;height:36px;margin:-18px 0 0;width:calc(100% + 24px);opacity:0;cursor:grab;-webkit-appearance:none;appearance:none;z-index:2}
.dc-range:active{cursor:grabbing}
.dc-progress:focus-within .dc-progress-fill::after{box-shadow:0 0 0 3px rgba(230,232,200,.7)}
.dc-progress-fill{transition:width .12s linear}
.dc-drag-hint{margin:-8px 0 12px;font-size:.78rem;color:#8fc4c0;opacity:.85}
.dc-modal.done{border-color:var(--btn-gold)}
.dc-modal.done .dc-progress-fill,.dc-modal.done .dc-progress::before{background:var(--btn-gold)}
.dc-modal.done .dc-progress-fill::after{background:var(--btn-gold-pressed)}
.dc-modal.done .dc-badge{border-color:var(--btn-gold);background:#7a5a3a}
.dc-modal.done .dc-title::after{content:" ✓";color:var(--btn-gold-pressed)}
.dc-modal.done .dc-count{color:var(--btn-gold-pressed)}

/* =========================================
   Habilidades: rejilla 2x2 estable y colores por estado
   ========================================= */
.skill-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,380px)}
.skill-btn{width:100%;min-height:58px;justify-content:flex-start;padding:10px 16px 10px 18px;border-color:#0f5561;
  background:linear-gradient(180deg,#1b6470,#11454f);transition:background .2s ease,box-shadow .2s ease,filter .15s ease}
.skill-btn .skill-btn-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.skill-btn-text{min-width:0}
.skill-btn[aria-pressed="true"]{background:linear-gradient(180deg,#2aa1af,#1b7d88);box-shadow:inset 0 0 0 3px #bff5ec,0 4px 0 rgba(0,0,0,.35)}
.skill-btn.cooldown,.skill-btn.cooldown:hover{filter:none}
.skill-btn.cooldown{background:linear-gradient(180deg,#4a3d1f,#2d2514);border-color:#a58749}
.skill-btn.cooldown .skill-btn-state{color:#e6c873;opacity:1}
.skill-btn.cooldown[aria-pressed="true"]{background:linear-gradient(180deg,#7a6430,#4f3f1c);box-shadow:inset 0 0 0 3px #f0dc98,0 4px 0 rgba(0,0,0,.35)}
.skill-btn:not(.cooldown) .skill-btn-state{color:#bff5ec}
.skill-card.is-cooldown{border-color:#a58749}
.skill-card.is-cooldown .skill-card-state{color:#e6c873}
.skill-glyph[data-skill="heal"]{background:#7fd3ff}
@media (max-width:420px){ .skill-btn{padding:10px 12px} .skill-btn-name{font-size:.9rem} }

/* =========================================
   Enemigos: tarjetas desplegables
   ========================================= */
.enemy-grid{align-items:start}
.enemy-card{height:auto}
.enemy-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:12px;padding:9px 12px;border-radius:10px;cursor:pointer;
  border:1px solid rgba(42,161,175,.45);background:rgba(42,161,175,.1);color:#dff7f4;font:600 .85rem var(--font-ui);transition:background .15s ease,border-color .15s ease}
.enemy-toggle:hover{background:rgba(42,161,175,.22);border-color:var(--btn-teal)}
.enemy-toggle-icon{width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .25s ease}
.enemy-toggle[aria-expanded="true"] .enemy-toggle-icon{transform:rotate(-135deg) translate(-2px,-2px)}
.enemy-more{overflow:hidden}
.enemy-more[hidden]{display:none}
.enemy-attacks-label{margin:12px 0 0;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8df0d8}
.bestiary .enemy-more .enemy-skills{margin-top:6px;padding-top:0}
.enemy-card.is-open{border-color:rgba(42,161,175,.5)}
/* Nombres de habilidad completos (dos líneas si hace falta), sin cambiar el tamaño del botón */
.skill-buttons{width:min(100%,420px)}
.skill-btn{min-height:62px;padding:8px 12px 8px 16px;gap:8px}
.skill-btn .skill-btn-name{white-space:normal;overflow:visible;text-overflow:clip;font-size:.92rem;line-height:1.1}
.skill-btn .skill-glyph{width:26px;height:26px}
.skill-btn{height:66px;min-height:66px}

/* =========================================
   Liria: fundido suave entre expresiones y se puede pulsar para avanzar
   ========================================= */
.hero-liria-stage{position:relative;display:block;width:min(300px,100%);padding:0;border:0;background:none;cursor:pointer;
  filter:drop-shadow(0 26px 30px rgba(0,0,0,.45));animation:heroFloat 6s ease-in-out infinite;transition:transform .2s ease}
.hero-liria-stage:hover{transform:scale(1.03)}
.hero-liria-stage:focus-visible{outline:2px solid #e6e8c8;outline-offset:6px;border-radius:50%}
#vision.hero-full .hero-liria-stage img{display:block;width:100%;max-width:none;height:auto;filter:none;animation:none;box-shadow:none}
#vision.hero-full .hero-liria-stage .hero-liria-next{position:absolute;inset:0;opacity:0;transition:opacity .5s ease}
#vision.hero-full .hero-liria-stage .hero-liria-next.show{opacity:1}
@media (max-width:900px){
  /* En móvil primero el texto del juego y después Liria con su diálogo */
  #vision.hero-full .vision-image{order:0;margin-top:22px}
  .hero-liria-stage{width:150px}
  #vision.hero-full .vision-grid{gap:0}
}
@media (prefers-reduced-motion:reduce){ .hero-liria-stage{animation:none} }
/* Portada: contacto como enlace discreto bajo los botones */
.hero-contact{margin:4px 0 0;font-size:.92rem;color:#c6e2de}
.hero-contact a{color:#e6e8c8;font-weight:700;text-decoration:none;border-bottom:2px solid var(--btn-teal);padding-bottom:1px;transition:color .15s ease,border-color .15s ease}
.hero-contact a:hover,.hero-contact a:focus-visible{color:#fff;border-color:#e6e8c8}
.hero-contact a::after{content:" →"}
@media (max-width:768px){ #vision.hero-full .hero-ctas{flex-direction:row;justify-content:center} #vision.hero-full .hero-ctas .btn{width:auto} }

/* =========================================
   Zonas: cada bloque tiene su propio fondo a todo el ancho (separación dura)
   ========================================= */
main{overflow:visible}
.zone{position:relative;width:100vw;margin-left:calc(50% - 50vw);padding:10px max(16px, calc(50vw - 550px)) 70px;border-top:1px solid rgba(255,255,255,.08)}
.zone::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;pointer-events:none}
.zone-impact{background:radial-gradient(900px 420px at 85% 0%,rgba(90,140,220,.14),transparent 70%),linear-gradient(180deg,#0b1a2e,#0a1626)}
.zone-impact::before{background:linear-gradient(90deg,transparent,#5a8cdc,transparent)}
.zone-game{background:radial-gradient(900px 420px at 15% 0%,rgba(42,161,175,.18),transparent 70%),linear-gradient(180deg,#05333a,#042a30)}
.zone-game::before{background:linear-gradient(90deg,transparent,var(--btn-teal),transparent)}
.zone-project{background:radial-gradient(900px 420px at 85% 0%,rgba(215,193,120,.10),transparent 70%),linear-gradient(180deg,#14161d,#0e1015)}
.zone-project::before{background:linear-gradient(90deg,transparent,var(--btn-gold),transparent)}
.zone .block-sep{margin-top:40px}
/* Las secciones ya no son hijas directas de <main>: separadores y márgenes dentro de cada zona */
.zone > section{position:relative;margin-top:28px}
.zone > section + section::before, .zone > .product-section::before, .zone > .universe-section::before{content:"";display:block;border:0;box-shadow:none;position:static;width:min(520px,70%);height:14px;margin:0 auto 30px;
  background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 14%27%3E%3Crect x=%273%27 y=%273%27 width=%278%27 height=%278%27 transform=%27rotate(45 7 7)%27 fill=%27%23091a22%27 stroke=%27%232aa1af%27 stroke-width=%272%27/%3E%3C/svg%3E") center/14px 14px no-repeat,
    linear-gradient(90deg,transparent,rgba(42,161,175,.6),transparent) center/100% 1px no-repeat}
.zone-impact > section + section::before{filter:hue-rotate(20deg)}
.zone-project > section + section::before{filter:hue-rotate(160deg) saturate(.7)}
/* Tarjetas del bloque de inversión con su propio tono */
#objetivos .investor-section .container{background:linear-gradient(180deg,#10243d,#0b1a2d);border-color:rgba(90,140,220,.18)}
#proyecto .investor-section .container{background:linear-gradient(180deg,#1b1e27,#12141b);border-color:rgba(215,193,120,.14)}
#problem, #validation, #solution{padding:0}

/* =========================================
   Bloque 1: problema → solución → por qué
   ========================================= */
.story-steps{list-style:none;margin:26px auto 4px;padding:0;display:flex;justify-content:center;gap:10px;flex-wrap:wrap;counter-reset:none}
.story-steps li{display:flex;align-items:center}
.story-steps li + li::before{content:"";width:28px;height:2px;margin-right:10px;background:linear-gradient(90deg,rgba(90,140,220,.2),rgba(90,140,220,.8))}
.story-steps a{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;text-decoration:none;font-weight:700;font-size:.9rem;color:#dbe6f7;
  background:rgba(90,140,220,.12);border:1px solid rgba(90,140,220,.35);transition:background .15s ease,border-color .15s ease}
.story-steps a:hover{background:rgba(90,140,220,.25);border-color:#8fb3ec}
.story-num{display:inline-grid;place-items:center;min-width:28px;height:22px;padding:0 6px;border-radius:6px;font-size:.75rem;font-weight:800;letter-spacing:.04em;color:#0b1a2e;background:#8fb3ec}
.story-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:.8rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8fb3ec}
.story-statement{margin:0 0 14px;font-size:clamp(1.5rem,2.6vw,2.2rem);line-height:1.15;color:#fff}
.story-statement::after{display:none}
.story-section .container{padding:28px}
.story-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:32px;align-items:center}
.story-copy p{font-size:1.02rem;line-height:1.6}
.story-aside{display:flex;flex-direction:column;gap:14px;align-items:stretch}
.story-aside .screen-time-demo{margin:0}
.story-aside .liria-tip{margin:0}
.solution-steps{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:sol}
.solution-card{position:relative;padding:20px;border-radius:14px;background:rgba(10,22,38,.7);border:1px solid rgba(90,140,220,.22);counter-increment:sol}
.solution-card::after{content:counter(sol);position:absolute;right:16px;top:12px;font-size:2.4rem;font-weight:800;color:rgba(143,179,236,.15);line-height:1}
.solution-card .gt-tile{margin-bottom:12px}
.solution-card h3{margin:0 0 6px;font-size:1.08rem;color:#fff}
.solution-card p{margin:0;font-size:.94rem;line-height:1.5}
#validation .story-statement{margin-bottom:10px}
@media (max-width:900px){
  .story-grid,.solution-steps{grid-template-columns:1fr}
  .story-section .container{padding:18px}
  .story-steps li + li::before{width:14px;margin-right:6px}
}
@media (max-width:520px){ .story-steps{gap:6px} .story-steps a{padding:6px 10px;font-size:.8rem} }

/* =========================================
   Objetivos: vuelve a los colores originales (funde con la portada)
   ========================================= */
.zone-impact{background:none;border-top:0}
.zone-impact::before{display:none}
#objetivos .investor-section .container{background:linear-gradient(180deg,#0b2a34,#051018);border-color:rgba(255,255,255,.04)}
.zone-impact > section + section::before{filter:none}
.story-steps li + li::before{background:linear-gradient(90deg,rgba(42,161,175,.2),rgba(42,161,175,.8))}
.story-steps a{color:#dff7f4;background:rgba(42,161,175,.12);border-color:rgba(42,161,175,.35)}
.story-steps a:hover{background:rgba(42,161,175,.25);border-color:var(--btn-teal)}
.story-num{color:#04232b;background:#8df0d8}
.story-eyebrow{color:#8df0d8}
.solution-card{background:rgba(2,16,22,.6);border-color:rgba(42,161,175,.22)}
.solution-card::after{color:rgba(141,240,216,.14)}


/* =========================================
   Rendimiento: sin desenfoques ni filtros sobre capas que se mueven
   ========================================= */
.btn-secondary,.music-toggle,.sound-toggle{-webkit-backdrop-filter:none;backdrop-filter:none}
#how .container::before, #product .container::before, #demo .container::before, #challenges .container::before, #universe .container::before{display:none}
/* Portada: el zoom lento solo mueve una capa (sin filtro, sin depender del parallax) */
#vision.hero-full::before{filter:none;will-change:transform;animation:heroKenBurns2 30s ease-in-out infinite alternate}
@keyframes heroKenBurns2{from{transform:scale(1.04)}to{transform:translate3d(-1.5%,0,0) scale(1.1)}}
#vision.hero-full::after{background:
  linear-gradient(90deg,rgba(3,18,24,.92) 0%,rgba(3,18,24,.72) 38%,rgba(3,18,24,.2) 70%,rgba(3,18,24,.3) 100%),
  linear-gradient(180deg,rgba(3,18,24,.08) 0%,rgba(3,18,24,0) 50%,var(--page-bg, #031218) 100%)}
.hero-halo{filter:none;will-change:opacity;animation:heroHalo2 5s ease-in-out infinite;
  background:radial-gradient(circle,rgba(0,255,255,.24) 0,rgba(42,161,175,.1) 40%,transparent 68%)}
@keyframes heroHalo2{0%,100%{opacity:.7}50%{opacity:1}}
.hero-liria-stage{filter:none;will-change:transform}
.hero-liria-stage::after{content:"";position:absolute;left:18%;right:18%;bottom:-4%;height:9%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.45),transparent);z-index:-1}
.hero-motes span:nth-child(n+13){display:none}
.hero-motes span{will-change:transform,opacity;box-shadow:0 0 8px 1px rgba(120,255,240,.6)}
/* Animaciones de la portada en pausa cuando no está a la vista */
#vision.is-offscreen::before,#vision.is-offscreen .hero-halo,#vision.is-offscreen .hero-liria-stage,
#vision.is-offscreen .hero-motes span,#vision.is-offscreen .hero-scroll span,#vision.is-offscreen .hero-speech-next{animation-play-state:paused}
@media (max-width:900px){
  #vision.hero-full::after{background:linear-gradient(180deg,rgba(3,18,24,.55) 0%,rgba(3,18,24,.82) 55%,var(--page-bg, #031218) 100%)}
}
/* Portada → Objetivos: el degradado vertical va encima y termina exactamente en el color de la página,
   y el oscurecido lateral usa ese mismo color para que no quede una franja de otro tono */
#vision.hero-full::after{background:
  linear-gradient(180deg,rgba(4,32,41,0) 0%,rgba(4,32,41,0) 62%,var(--page-bg) 100%),
  linear-gradient(90deg,rgba(4,32,41,.9) 0%,rgba(4,32,41,.7) 38%,rgba(4,32,41,.18) 70%,rgba(4,32,41,.28) 100%)}
@media (max-width:900px){
  #vision.hero-full::after{background:linear-gradient(180deg,rgba(4,32,41,.55) 0%,rgba(4,32,41,.82) 55%,var(--page-bg) 100%)}
}
#objetivos.zone{border-top:0}
/* Equipo: abrir/cerrar perfiles sin repintados caros (sombra enorme animada y transform de la tarjeta) */
.team-section .member-card{transition:border-color 180ms ease}
.team-section .member-card.expanded{transform:none;box-shadow:0 0 0 1px rgba(42,161,175,.45);border-color:rgba(42,161,175,.45)}
.team-section .member-card{contain:layout paint}

/* =========================================
   Bloque propio para el Universo (mapa, enemigos y arte): violeta de Mindveil
   ========================================= */
.zone-universe{background:radial-gradient(900px 420px at 15% 0%,rgba(161,132,230,.16),transparent 70%),linear-gradient(180deg,#191433,#120e26)}
.zone-universe::before{background:linear-gradient(90deg,transparent,#a184e6,transparent)}
.zone-universe > section + section::before{filter:hue-rotate(80deg)}
.zone-universe .block-sep .block-icon{background:#3a2d6b;border-color:rgba(161,132,230,.35)}
/* Las secciones del universo toman el tono violeta */
#universe .container, .zone-universe .bestiary .container, .zone-universe .making .container{
  background:linear-gradient(180deg,rgba(40,30,80,.55),rgba(18,14,38,.75));border-color:rgba(161,132,230,.18)}
.zone > .block-sep + section::before{display:none !important}
/* Móvil: la demo no debe ensancharse más que la pantalla */
@media (max-width:800px){
  .tryit-grid{grid-template-columns:minmax(0,1fr)}
  .tryit-item{padding:18px 12px 20px;min-width:0}
  .skill-btn{padding:8px 10px 8px 14px;gap:6px}
  .skill-btn .skill-btn-name{font-size:.84rem}
  .skill-btn .skill-glyph{width:22px;height:22px}
}

/* =========================================
   Aparición al hacer scroll (solo con JS activo y sin "reducir movimiento")
   La animación usa fill "backwards": al terminar no deja transform puesto,
   así los hover de las tarjetas siguen funcionando.
   ========================================= */
.reveal-ready .reveal:not(.is-visible){opacity:0}
.reveal-ready .reveal.is-visible{animation:revealUp .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay,0ms) backwards}
.reveal-ready .block-sep.reveal.is-visible{animation-name:revealSide}
@keyframes revealUp{from{opacity:0;transform:translate3d(0,26px,0)}to{opacity:1;transform:none}}
@keyframes revealSide{from{opacity:0;transform:translate3d(-24px,0,0)}to{opacity:1;transform:none}}

/* =========================================
   Cómo funciona: carrusel con el flujo del juego
   ========================================= */
.flow-carousel{margin-top:18px}
.flow-carousel .carousel-slide{width:300px}
.flow-carousel .carousel-slide:first-child{margin-left:calc(50% - 150px)}
.flow-carousel .carousel-slide:last-child{margin-right:calc(50% - 150px)}
.flow-slide{display:flex;flex-direction:column;height:100%;margin:0;background:rgba(2,16,22,.55);border:1px solid rgba(42,161,175,.2);border-radius:18px;overflow:hidden}
.flow-carousel .flow-slide img{height:420px;width:100%;max-width:none;object-fit:contain;padding:14px 14px 0}
.flow-slide figcaption{display:block;padding:14px 18px 20px;text-align:left;background:none}
.flow-step{position:relative;z-index:0;display:inline-grid;place-items:center;width:30px;height:30px;margin-bottom:8px;color:#fff;font-weight:800;font-size:.9rem}
.flow-step::before{content:"";position:absolute;inset:4px;z-index:-1;transform:rotate(45deg);border-radius:5px;background:var(--btn-teal)}
.flow-slide figcaption strong{display:block;margin-bottom:4px;font-size:1.1rem;color:#fff}
.flow-text{display:block;font-size:.92rem;line-height:1.45;font-weight:400;color:var(--text-muted)}
@media (max-width:700px){
  .flow-carousel .carousel-slide{width:250px}
  .flow-carousel .carousel-slide:first-child{margin-left:calc(50% - 125px)}
  .flow-carousel .carousel-slide:last-child{margin-right:calc(50% - 125px)}
  .flow-carousel .flow-slide img{height:340px}
}

/* =========================================
   Pruébalo: retos del día (lista + ventana) y habilidades a todo el ancho
   ========================================= */
.tryit-wide{width:100%;margin-top:22px;align-items:stretch;text-align:left}
.tryit-wide > .tryit-badge,.tryit-wide > .tryit-heading,.tryit-wide > .tryit-hint{align-self:center;text-align:center}
.tryit-heading{margin:0 0 4px;font-size:1.15rem;color:#fff}
.tryit-wide > .tryit-hint{margin-bottom:22px}
.challenge-demo-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:30px;align-items:start}
.challenge-demo-list .liria-tip{margin:0 0 14px}
.challenge-demo-list .daily-list{max-width:none;margin:0}
.challenge-demo-modal{display:flex;flex-direction:column;align-items:center;padding-top:34px;position:sticky;top:calc(var(--nav-height) + 20px)}
.challenge-demo-modal .dc-toast{text-align:center}
/* Retos de la lista: se pueden pulsar y el seleccionado se marca */
.daily-list .daily{cursor:pointer;outline:none;border-radius:12px}
.daily-list .daily .daily-bar{transition:filter .15s ease,box-shadow .15s ease}
.daily-list .daily:hover .daily-bar{filter:brightness(1.12)}
.daily-list .daily.is-selected .daily-bar{box-shadow:inset 0 0 0 3px #e6e8c8}
.daily-list .daily:focus-visible .daily-bar{box-shadow:inset 0 0 0 3px #8df0d8}
.daily-list .daily h4{margin:2px 0 0;font-size:1rem;color:inherit}
.daily-list .daily-end{width:34px;height:34px;margin-right:-6px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);font-weight:700;font-size:1.4rem}
.daily-list .daily[data-state="done"] .daily-end{background:rgba(42,29,12,.12)}
.daily-list .daily[data-state="done"] .daily-end::before{content:"\2713";font-size:1.25rem}
.daily .daily-icon .gt-icon{background:currentColor}
.dc-badge .gt-icon{background:#c9cdc9}
@media (max-width:900px){
  .challenge-demo-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .challenge-demo-modal{position:static}
}

/* Habilidades: tarjeta a la izquierda, botones con los marcos reales del juego a la derecha */
.skills-demo-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:center;justify-items:center}
.skills-demo-grid .skill-card{width:min(100%,420px)}
.skills-demo-grid .skill-buttons{margin-top:0;width:min(100%,440px);gap:12px}
.skill-btn,.skill-btn:hover,.skill-btn.cooldown,.skill-btn[aria-pressed="true"],.skill-btn.cooldown[aria-pressed="true"]{
  height:auto;min-height:0;aspect-ratio:360/140;border:0;clip-path:none;box-shadow:none;border-radius:0;
  background:url(assets/images/skills/skill-ready.webp) center/100% 100% no-repeat;padding:6px 18px 6px 22px;gap:10px;justify-content:center}
.skill-btn[aria-pressed="true"]{background-image:url(assets/images/skills/skill-selected.webp)}
.skill-btn.cooldown{background-image:url(assets/images/skills/skill-cooldown.webp)}
.skill-btn.cooldown[aria-pressed="true"]{background-image:url(assets/images/skills/skill-cooldown-selected.webp)}
.skill-btn:hover{filter:brightness(1.1)}
.skill-btn:active{transform:scale(.97)}
.skill-btn .skill-btn-name{font-size:.95rem;line-height:1.1;white-space:normal;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.skill-btn .skill-btn-state{font-size:.75rem}
.skill-btn.cooldown .skill-btn-state{color:#f0dc98}
/* Iconos con sus colores originales del juego (no como máscara) */
.skill-glyph,.skill-glyph[data-skill]{background:var(--icon) center/contain no-repeat;-webkit-mask:none;mask:none}
.skill-btn .skill-glyph{width:28px;height:28px;flex:0 0 28px}
.skills-demo-grid .skill-buttons.tap-hint::after{border-radius:18px}
@media (max-width:900px){
  .skills-demo-grid{grid-template-columns:minmax(0,1fr);gap:18px}
}
@media (max-width:420px){
  .skill-btn,.skill-btn:hover,.skill-btn.cooldown,.skill-btn[aria-pressed="true"],.skill-btn.cooldown[aria-pressed="true"]{padding:4px 10px 4px 14px;gap:6px}
  .skill-btn .skill-btn-name{font-size:.82rem}
  .skill-btn .skill-glyph{width:22px;height:22px;flex-basis:22px}
}
.challenge-demo-modal{text-align:center}

/* =========================================
   Mapa en PC: el mapa a la izquierda y, a la derecha, la cabecera,
   la lista de lugares y la ficha del lugar elegido
   ========================================= */
.world-map{grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);align-items:start;gap:36px}
.map-aside{display:flex;flex-direction:column;gap:14px}
.map-aside .section-subtitle{margin:0}
.map-aside .muted{margin:0}
.map-aside .liria-tip{margin:4px 0}
.map-places-label{margin:6px 0 0;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#c8b8f2}
.map-places{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.map-place{padding:6px 12px;border-radius:999px;border:1px solid rgba(42,161,175,.45);background:rgba(18,125,134,.15);color:#dff7f4;font:600 .82rem var(--font-ui);cursor:pointer;transition:background .15s ease,border-color .15s ease}
.map-place:hover{background:rgba(18,125,134,.35)}
.map-place.is-optional{border-color:rgba(161,132,230,.55);background:rgba(161,132,230,.14)}
.map-place.is-source{border-color:rgba(68,209,127,.55);background:rgba(68,209,127,.12)}
.map-place[aria-pressed="true"]{background:var(--btn-teal);border-color:var(--btn-teal);color:#fff}
.map-place.is-optional[aria-pressed="true"]{background:#7f63c9;border-color:#a184e6}
.map-place.is-source[aria-pressed="true"]{background:#2f9e5e;border-color:#44d17f}
.map-aside .region-panel{margin-top:14px}
@media (max-width:900px){
  .world-map{grid-template-columns:1fr;gap:20px}
}
@media (max-width:900px){
  /* Móvil: cabecera, mapa, lista de lugares y ficha, en ese orden */
  .world-map{display:flex;flex-direction:column}
  .map-aside{display:contents}
  .map-aside .section-subtitle{order:0}.map-aside .muted{order:1}.map-aside .liria-tip{order:2}
  .world-map-stage{order:3}
  .map-places-label{order:4}.map-places{order:5}
  .map-aside .region-panel{order:6;margin-top:6px}
}

/* =========================================
   Tarjetas que se dan la vuelta (enemigos y equipo) sin cambiar de tamaño
   ========================================= */
.flip-card{perspective:1400px;background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important;overflow:visible !important;contain:none !important}
.flip-inner{position:relative;height:100%;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.flip-card.is-flipped .flip-inner{transform:rotateY(180deg)}
.flip-face{-webkit-backface-visibility:hidden;backface-visibility:hidden;border-radius:14px}
.flip-front{height:100%}
.flip-back{position:absolute;inset:0;transform:rotateY(180deg);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;padding:16px}
.flip-close{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:auto;padding:8px 14px;border-radius:10px;cursor:pointer;
  border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#dff7f4;font:600 .85rem var(--font-ui)}
.flip-close:hover{background:rgba(255,255,255,.14)}
.flip-close-icon{width:8px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
@media (prefers-reduced-motion:reduce){ .flip-inner{transition:none} }

/* Enemigos */
.enemy-card.flip-card .flip-face{background:#0d2630;border:1px solid rgba(255,255,255,.06);box-shadow:0 8px 22px rgba(2,6,23,.35)}
.enemy-card.flip-card .flip-front{display:flex;flex-direction:column;overflow:hidden}
.enemy-card.flip-card .flip-back{border-color:rgba(161,132,230,.4)}
.enemy-card.flip-card:hover{transform:none}
.enemy-card.flip-card:hover .flip-front{border-color:rgba(161,132,230,.5)}
.enemy-back-head .enemy-dist{margin:0}
.enemy-back-head h3{margin:2px 0 4px;font-size:1.1rem;color:#fff}
.enemy-card .flip-back .enemy-more{overflow:visible}
.enemy-card .flip-back .enemy-trait{margin-top:4px}
@media (max-width:700px){ .enemy-card.flip-card .flip-front{flex-direction:row} }

/* Equipo */
.team-section .member-card.flip-card{display:block;height:100%}
.team-section .member-card.flip-card:hover{transform:none}
.team-section .member-card .flip-face{background:linear-gradient(180deg,#062c2c,#042827);border:1px solid rgba(255,255,255,.04)}
.team-section .member-card .flip-front{display:flex;flex-direction:column;gap:12px;align-items:flex-start;padding:14px}
.team-section .member-card .flip-back{background:linear-gradient(180deg,#0a3a3a,#052e2d);border-color:rgba(42,161,175,.35)}
.member-back-head .member-name{margin:0;font-size:1.05rem;font-weight:700}
.member-back-head .role{font-size:.8rem;color:var(--turquoise);font-weight:700}
.team-section .bio-full{margin:4px 0 0;font-size:.9rem;line-height:1.5;color:var(--text-muted)}
/* =========================================
   Proyecto e inversión: solo dorados (sin el tono rojizo del separador)
   ========================================= */
.zone-project > section + section::before{filter:none;
  background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 14%27%3E%3Crect x=%273%27 y=%273%27 width=%278%27 height=%278%27 transform=%27rotate(45 7 7)%27 fill=%27%2314161d%27 stroke=%27%23d7c178%27 stroke-width=%272%27/%3E%3C/svg%3E") center/14px 14px no-repeat,
    linear-gradient(90deg,transparent,rgba(215,193,120,.6),transparent) center/100% 1px no-repeat}
.zone-project .block-sep .block-icon{background:#3d331b;border-color:rgba(215,193,120,.35)}
.zone-project .gt-tile{background:#3d331b;box-shadow:inset 0 0 0 1px rgba(215,193,120,.25),0 6px 16px rgba(2,6,23,.35)}
.zone-project .gt-tile::before{background:#f0dc98}
.zone-project h2::before,.zone-project h2::after{background:var(--btn-gold) !important}
.zone-project .member-meta .role,.zone-project .member-back-head .role{color:var(--btn-gold-pressed)}
.zone-project .member-link{color:var(--btn-gold-pressed)}
.zone-project .team-section .member-card .flip-face{background:linear-gradient(180deg,#1f1c14,#16140e);border-color:rgba(215,193,120,.14)}
.zone-project .team-section .member-card .flip-back{background:linear-gradient(180deg,#2a2416,#1b170d);border-color:rgba(215,193,120,.35)}
.zone-project .problem-subtitle{border-left-color:var(--btn-gold)}
.zone-project .team-section .member-card .view-profile{background:#3d331b;border-color:rgba(215,193,120,.35);color:#f0dc98}
.zone-project .team-section .member-card .view-profile:hover{background:#4d4022}
.zone-project .flip-close{border-color:rgba(215,193,120,.35);background:rgba(215,193,120,.1);color:#f0dc98}
/* Proyecto: roadmap y bocadillos también en dorado */
.zone-project .roadmap-status{background:rgba(215,193,120,.14) !important;color:#f0dc98 !important;border-color:rgba(215,193,120,.35) !important}
.zone-project .roadmap-step.progress .gt-tile{background:var(--btn-gold)}
.zone-project .roadmap-step.progress .gt-tile::before{background:#fff}
.zone-project .roadmap-step.completed .gt-tile::before{background:#f0dc98}
.zone-project .roadmap-arrow::before{background:linear-gradient(90deg,transparent,rgba(215,193,120,.7),transparent)}
.zone-project .roadmap-arrow::after{background:var(--btn-gold)}
.zone-project .liria-bubble{border-color:#6b5a2e}
.zone-project .liria-bubble::before{border-color:#6b5a2e}
.zone-project .liria-name{color:#f0dc98}
.zone-project .roadmap-step{border-color:rgba(215,193,120,.14)}
.enemy-grid{align-items:stretch}

/* Carrusel: se puede arrastrar con el ratón */
.carousel-track{cursor:grab;user-select:none}
.carousel-track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.carousel-track.is-dragging .carousel-slide{transition:none}

/* =========================================
   Retos del día: ventana que bloquea la lista mientras está abierta
   ========================================= */
.challenge-demo-modal{position:static;min-height:420px;justify-content:center}
.challenge-demo-modal.is-empty .dc-modal,.challenge-demo-modal.is-empty .dc-apply,.challenge-demo-modal.is-empty .dc-toast{display:none}
.dc-empty{display:none;margin:0;padding:28px 22px;width:min(100%,340px);border:2px dashed rgba(42,161,175,.35);border-radius:22px;color:#8fc4c0;font-size:.95rem;text-align:center}
.challenge-demo-modal.is-empty .dc-empty{display:block}
.challenge-demo-modal:not(.is-empty) .dc-modal{animation:dcOpen .32s cubic-bezier(.2,.9,.3,1.2)}
@keyframes dcOpen{from{opacity:0;transform:scale(.9) translateY(10px)}to{opacity:1;transform:none}}
.dc-close{position:absolute;right:12px;top:12px;width:32px;height:32px;padding:0;border:0;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.08)}
.dc-close::before,.dc-close::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;margin:-1px 0 0 -7px;background:#e6e8c8;border-radius:2px;transform:rotate(45deg)}
.dc-close::after{transform:rotate(-45deg)}
.dc-close:hover{background:rgba(255,255,255,.18)}
.challenge-demo-list{position:relative}
.challenge-demo-list.is-locked .daily-list{opacity:.45;filter:saturate(.6)}
.challenge-demo-list.is-locked .daily{cursor:not-allowed}
.challenge-demo-list.is-locked .daily:hover .daily-bar{filter:none}
.challenge-demo-list.shake .daily-list{animation:dcShake .4s ease}
@keyframes dcShake{20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.daily-feedback{min-height:1.4em;margin:12px 0 0;font-size:.9rem;font-weight:600;text-align:center;opacity:0;transition:opacity .2s ease}
.daily-feedback.show{opacity:1}
.daily-feedback[data-kind="warn"]{color:#f0dc98}
.daily-feedback[data-kind="ok"]{color:#8df0d8}
.daily-list .daily-end{border:0;color:inherit;cursor:pointer}
.daily-list .daily-end::before{content:"+"}
.daily-list .daily[data-state="done"] .daily-end::before{content:"\2713"}
.daily-list .daily-end:hover{background:rgba(255,255,255,.2)}
.daily-list .daily-end:focus-visible{outline:2px solid #e6e8c8;outline-offset:2px}
@media (prefers-reduced-motion:reduce){ .challenge-demo-list.shake .daily-list,.challenge-demo-modal:not(.is-empty) .dc-modal{animation:none} }
@media (max-width:900px){ .challenge-demo-modal{min-height:0} }

/* =========================================
   Enemigos: la cara trasera cabe entera (la tarjeta toma la altura de la cara más alta)
   ========================================= */
.enemy-card.flip-card .flip-inner{display:grid}
.enemy-card.flip-card .flip-face{grid-area:1/1}
.enemy-card.flip-card .flip-back{position:relative;inset:auto;overflow:visible;gap:6px;padding:14px 14px 16px}
.enemy-card.flip-card .flip-back .enemy-trait,.enemy-card.flip-card .flip-back .enemy-beat{font-size:.8rem;line-height:1.4;padding:7px 9px;margin-top:6px}
.enemy-card.flip-card .flip-back .enemy-attacks-label{margin-top:8px}
.enemy-card.flip-card .flip-back .enemy-skills{gap:4px}
.enemy-card.flip-card .flip-back .flip-close{margin-top:auto}
.enemy-card.flip-card .flip-front .enemy-body{flex:1;display:flex;flex-direction:column}
.enemy-card.flip-card .enemy-toggle{margin-top:auto}
/* Sin flecha hacia abajo: icono de "dar la vuelta" */
.enemy-toggle-icon{border:0 !important;transform:none !important;width:16px;height:16px;
  background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 15.5-6.2L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16'/%3E%3Cpath d='M3 21v-5h5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 15.5-6.2L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16'/%3E%3Cpath d='M3 21v-5h5'/%3E%3C/svg%3E") center/contain no-repeat}

/* =========================================
   Contacto + pie en una misma franja final
   ========================================= */
.contact-band{position:relative;margin-top:0;border-top:1px solid rgba(215,193,120,.22);
  background:radial-gradient(800px 380px at 80% 20%,rgba(215,193,120,.10),transparent 70%),linear-gradient(180deg,#0e1015,#090a0e)}
.contact-band::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,transparent,var(--btn-gold),transparent)}
main{margin-bottom:0}
.contact-section{max-width:1100px;margin:0 auto;padding:70px 16px 40px}
.contact-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:40px;align-items:center}
.contact-eyebrow{margin:0 0 6px;font-size:.8rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--btn-gold-pressed)}
.contact-heading{margin:0 0 12px;font-size:clamp(1.8rem,3.4vw,2.8rem);line-height:1.1;color:#fff}
.contact-heading::after{display:none}
.contact-lead{margin:0;max-width:520px;font-size:1.05rem;color:#cfc8b4}
.contact-section .contact-actions{margin:22px 0 12px}
.contact-section .btn-primary{background:var(--btn-gold);color:#fff}
.contact-section .btn-primary:hover{background:#b3955a}
.contact-section .contact-alt{color:#a9a395}
.contact-section .contact-alt a{color:var(--btn-gold-pressed)}
.contact-liria{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px}
.contact-liria img{width:min(220px,80%);height:auto;filter:drop-shadow(0 18px 24px rgba(0,0,0,.45));animation:liriaFloat 5s ease-in-out infinite}
.contact-liria .liria-bubble{border-color:#6b5a2e}
.contact-liria .liria-bubble::before{left:50%;top:auto;bottom:-9px;margin:0 0 0 -7px;border-left:0;border-bottom:3px solid #6b5a2e;border-right:3px solid #6b5a2e}
.contact-liria .liria-name{color:#f0dc98}
.contact-band .site-footer{max-width:1100px;margin:0 auto;padding:22px 16px 30px;border-top:1px solid rgba(215,193,120,.14);background:none}
.contact-band .site-footer::before{display:none}
.contact-band .footer-note{color:#8f8a7c}
@media (max-width:800px){
  .contact-grid{grid-template-columns:1fr;gap:24px;text-align:center}
  .contact-lead{margin:0 auto}
  .contact-section .contact-actions{justify-content:center}
  .contact-liria{order:-1}
  .contact-liria img{width:150px}
}
@media (prefers-reduced-motion:reduce){ .contact-liria img{animation:none} }
.contact-section .btn-secondary{background:rgba(215,193,120,.08);border:1px solid rgba(215,193,120,.45);color:#f0dc98}
.contact-section .btn-secondary:hover{background:rgba(215,193,120,.18)}

/* =========================================
   Enemigos: márgenes uniformes y la tarjeta entera gira al tocarla
   ========================================= */
.enemy-card.flip-card{cursor:pointer;border-radius:14px;outline:none}
.enemy-card.flip-card:focus-visible .flip-face{box-shadow:0 0 0 3px #a184e6}
.enemy-card.flip-card .flip-front .enemy-body{padding:14px 16px 16px;gap:0}
.enemy-card.flip-card .flip-front .enemy-body h3{margin:4px 0 6px}
.enemy-card.flip-card .flip-front .enemy-body p{margin:0}
.enemy-card.flip-card .flip-back{padding:18px 16px 16px;gap:0}
.enemy-back-head{margin-bottom:10px}
.enemy-card.flip-card .flip-back .enemy-more{display:flex;flex-direction:column;gap:10px}
.enemy-card.flip-card .flip-back .enemy-trait,.enemy-card.flip-card .flip-back .enemy-beat{margin:0;padding:9px 11px;font-size:.82rem;line-height:1.45}
.enemy-card.flip-card .flip-back .enemy-attacks-label{margin:2px 0 0}
.enemy-card.flip-card .flip-back .enemy-skills{margin:0;padding:0;gap:5px}
.enemy-flip-hint{display:flex;align-items:center;gap:7px;margin:auto 0 0 !important;padding-top:12px;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#c8b8f2;opacity:.85}
.enemy-flip-icon{flex:0 0 auto;width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 15.5-6.2L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16'/%3E%3Cpath d='M3 21v-5h5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 15.5-6.2L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16'/%3E%3Cpath d='M3 21v-5h5'/%3E%3C/svg%3E") center/contain no-repeat}
.enemy-card.flip-card:hover .enemy-flip-hint{opacity:1;color:#e2d8ff}
.flip-back .enemy-flip-hint{padding-top:14px}

/* =========================================
   Retos: la lista centrada; al abrir un reto se desplaza a la izquierda y aparece la ventana
   ========================================= */
@media (min-width:901px){
  .challenge-demo-grid{grid-template-columns:minmax(0,1fr) minmax(0,0fr);gap:0;transition:grid-template-columns .45s cubic-bezier(.2,.8,.2,1),gap .45s ease}
  .challenge-demo-grid.is-open{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:30px}
  .challenge-demo-list{width:min(100%,560px);margin:0 auto;transition:margin .45s cubic-bezier(.2,.8,.2,1)}
  .challenge-demo-grid.is-open .challenge-demo-list{margin:0 0 0 auto}
  .challenge-demo-modal{min-height:0;overflow:hidden}
  .challenge-demo-modal.is-empty{visibility:hidden}
  .challenge-demo-modal.is-empty .dc-empty{display:none}
  .challenge-demo-grid.is-open .challenge-demo-modal{overflow:visible}
}
@media (max-width:900px){ .challenge-demo-modal.is-empty{display:none} }
/* El "+" por encima de todo lo demás de la barra */
.daily-list .daily-end{position:relative;z-index:3;pointer-events:auto}

/* Validación: el sello, centrado, justo antes de la cita */
#validation .validation-seal{display:flex;width:fit-content;margin:26px auto 4px}
/* Retos: el "+" anima la barra (no se recrea la fila) y la apertura de la ventana es más suave */
.daily-list .daily{transition:--progress .45s cubic-bezier(.2,.8,.2,1)}
.daily-list .daily.just-done .daily-icon{animation:dailyPop .5s ease}
.daily-list .daily:focus-visible .daily-bar{box-shadow:inset 0 0 0 3px #8df0d8}
@media (min-width:901px){
  .challenge-demo-grid{transition:grid-template-columns .6s cubic-bezier(.4,0,.2,1),gap .6s cubic-bezier(.4,0,.2,1)}
  .challenge-demo-list{transition:margin .6s cubic-bezier(.4,0,.2,1)}
}
.challenge-demo-modal:not(.is-empty) .dc-modal{animation:dcOpenSoft .55s cubic-bezier(.25,.8,.3,1) .12s both}
.challenge-demo-modal:not(.is-empty) .dc-apply{animation:dcOpenSoft .55s cubic-bezier(.25,.8,.3,1) .2s both}
@keyframes dcOpenSoft{from{opacity:0;transform:translate3d(18px,0,0)}to{opacity:1;transform:none}}
@media (max-width:900px){ @keyframes dcOpenSoft{from{opacity:0;transform:translate3d(0,12px,0)}to{opacity:1;transform:none}} }
@media (prefers-reduced-motion:reduce){ .challenge-demo-modal:not(.is-empty) .dc-modal,.challenge-demo-modal:not(.is-empty) .dc-apply{animation:none} }
/* =========================================
   Retos: la ventana aparece como una capa ENCIMA de la lista (que queda atenuada),
   sin mover nada del diseño. Solo se animan opacidad y transform → fluido.
   ========================================= */
.challenge-demo-grid,.challenge-demo-grid.is-open{position:relative;display:flex !important;align-items:center;justify-content:center;
  min-height:500px;grid-template-columns:none !important;gap:0 !important;transition:none !important}
.challenge-demo-list,.challenge-demo-grid.is-open .challenge-demo-list{width:min(100%,560px);margin:0 auto !important;transition:none !important}
.challenge-demo-modal,.challenge-demo-modal.is-empty{position:absolute !important;inset:-8px;z-index:5;display:flex !important;flex-direction:column;align-items:center;justify-content:center;
  min-height:0;padding:30px 0 0;overflow:visible;border-radius:18px;visibility:visible;
  background:radial-gradient(ellipse at center,rgba(2,12,16,.72) 0%,rgba(2,12,16,.45) 60%,rgba(2,12,16,0) 100%);
  opacity:1;transition:opacity .28s ease}
.challenge-demo-modal.is-empty{opacity:0;pointer-events:none}
.challenge-demo-modal.is-empty .dc-modal,.challenge-demo-modal.is-empty .dc-apply,.challenge-demo-modal.is-empty .dc-toast{display:flex}
.challenge-demo-modal.is-empty .dc-apply{display:inline-block}
.challenge-demo-modal.is-empty .dc-empty,.dc-empty{display:none !important}
.challenge-demo-modal .dc-modal{will-change:transform,opacity;transition:transform .34s cubic-bezier(.2,.8,.2,1),opacity .28s ease;transform:none;opacity:1;box-shadow:0 24px 60px rgba(0,0,0,.55)}
.challenge-demo-modal.is-empty .dc-modal{transform:translate3d(0,14px,0) scale(.96);opacity:0}
.challenge-demo-modal .dc-apply{transition:transform .34s cubic-bezier(.2,.8,.2,1) .04s,opacity .28s ease .04s}
.challenge-demo-modal.is-empty .dc-apply{transform:translate3d(0,10px,0);opacity:0}
.challenge-demo-modal:not(.is-empty) .dc-modal,.challenge-demo-modal:not(.is-empty) .dc-apply{animation:none}
.challenge-demo-modal{cursor:not-allowed}
.challenge-demo-modal .dc-modal,.challenge-demo-modal .dc-apply,.challenge-demo-modal .dc-toast{cursor:auto}
.dc-modal{display:block}
.challenge-demo-modal.is-empty .dc-modal{display:block}
@media (max-width:900px){ .challenge-demo-grid,.challenge-demo-grid.is-open{min-height:540px} .challenge-demo-modal,.challenge-demo-modal.is-empty{inset:-4px} }
@media (prefers-reduced-motion:reduce){ .challenge-demo-modal,.challenge-demo-modal .dc-modal,.challenge-demo-modal .dc-apply{transition:none} }

/* Habilidades: el dorado solo para la recarga; "lista" en turquesa */
.skill-card-steps{color:#8df0d8}
.skill-card.is-cooldown .skill-card-steps{color:var(--btn-gold-pressed)}
.skill-card:not(.is-cooldown) .skill-card-state{color:#8df0d8}
.challenge-demo-modal.is-empty{visibility:hidden;transition:opacity .28s ease,visibility 0s linear .28s}
.challenge-demo-modal:not(.is-empty){visibility:visible;transition:opacity .28s ease,visibility 0s}
.challenge-demo-modal .dc-toast{display:block}
