/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,15,.97) 0%,
    rgba(10,10,15,.88) 50%,
    rgba(10,10,15,.7) 100%
  );
}
/* subtle grid pattern */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 100px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}
.hero-title { margin-bottom: 1.5rem; }
.hero-title em { font-style: normal; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--secondary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
}
.hero-scroll-indicator:hover { color: var(--accent); }
.hero-scroll-line {
  width: 40px; height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}
.hero-scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
  transform: rotate(45deg);
  animation: bounce 1.8s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ── Marquee ── */
.marquee-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
  white-space: nowrap;
}
.marquee-item span { color: var(--accent); }
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-glow); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── About snippet ── */
.about-photo-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  z-index: -1;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--secondary); margin-top: .25rem; }

/* ── Worlds (domain cards) ── */
.world-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: default;
  transition: transform .4s var(--ease);
}
.world-card:hover { transform: translateY(-6px); }
.world-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.world-card:hover img { transform: scale(1.06); }
.world-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,.95) 30%, rgba(10,10,15,.3) 100%);
  transition: background .3s;
}
.world-card:hover .world-card-overlay { background: linear-gradient(to top, rgba(10,10,15,.98) 35%, rgba(10,10,15,.4) 100%); }
.world-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem;
}
.world-card-icon { font-size: 1.75rem; margin-bottom: .75rem; line-height: 1; }
.world-card-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
.world-card-desc  { font-size: .85rem; color: var(--secondary); line-height: 1.5; margin-bottom: 1rem; }
.world-card-link  {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.world-card:hover .world-card-link { opacity: 1; transform: translateY(0); }

/* Domain specific glow on card */
.world-card-tech  .world-card-link { color: var(--d-tech); }
.world-card-bio   .world-card-link { color: var(--d-bio); }
.world-card-agri  .world-card-link { color: var(--d-agri); }
.world-card-esot  .world-card-link { color: var(--d-esot); }
.world-card-culin .world-card-link { color: var(--d-culin); }
.world-card-tech:hover  { box-shadow: 0 20px 60px rgba(129,140,248,.15); }
.world-card-bio:hover   { box-shadow: 0 20px 60px rgba(52,211,153,.15); }
.world-card-agri:hover  { box-shadow: 0 20px 60px rgba(251,191,36,.15); }
.world-card-esot:hover  { box-shadow: 0 20px 60px rgba(192,132,252,.15); }
.world-card-culin:hover { box-shadow: 0 20px 60px rgba(251,146,60,.15); }

/* ── Latest posts ── */
.latest-section { background: var(--surface); }

/* ── About grid ── */
#sobre { scroll-margin-top: 64px; }
.about-grid { align-items: center; gap: 4rem; }
.about-photo-wrap--sobre { max-width: 420px; }

/* ── CTA Final ── */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
  text-align: center;
  scroll-margin-top: 64px;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,.88);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p  { max-width: 480px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── Worlds flex grid (3+2 centrado) ── */
.worlds-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.worlds-flex > .world-card {
  flex: 0 0 calc(33.333% - 1rem);
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .worlds-flex > .world-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 768px) {
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero-content { padding-top: 80px; padding-bottom: 60px; }
  .hero-subtitle { margin-bottom: 1.75rem; }
  .hero-actions { margin-bottom: 2rem; }
  .cta-section  { padding: 80px 0; }
  .about-grid   { gap: 2.5rem; }
  .about-photo-wrap { aspect-ratio: 16/10; max-width: 320px; margin: 0 auto; }
  .world-card   { aspect-ratio: 4/3; }
  .worlds-flex > .world-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 480px) {
  .hero-content { padding-top: 32px; padding-bottom: 24px; }
  .hero-eyebrow { margin-bottom: 1rem; }
  .hero-title { margin-bottom: 1rem; }
  .hero-subtitle { margin-bottom: 1.25rem; }
  .hero-actions { margin-bottom: 1rem; }
  .cta-section  { padding: 60px 0; }
  .about-photo-wrap { aspect-ratio: 4/3; max-width: 260px; }
  .worlds-flex > .world-card { flex: 0 0 100%; }
}
