/* ---------- FUENTES ---------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ---------- VARIABLES ---------- */
:root {
  --bg-primary: #F7F6F2;
  --bg-card: rgba(255,255,255,0.82);
  --bg-card-hover: rgba(255,255,255,0.92);
  --bg-dark: #0e0e12;
  --bg-dark-card: #14141a;
  --text-primary: #232C2D;
  --text-secondary: #5a6366;
  --text-muted: #8a9194;
  --text-light: #f5f0e6;
  --text-light-secondary: #a09b8c;
  --accent-gold: #AA8A62;
  --accent-gold-light: #c4a97d;
  --accent-gold-dark: #7a6346;
  --border-subtle: rgba(170,138,98,0.15);
  --border-strong: rgba(170,138,98,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --font-body: 'Roboto', sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- CANVAS ENERGÍA DORADA (fondo claro) ---------- */
.vision-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* ---------- CANVAS CIRCUITOS (La Colmena oscuro) ---------- */
.lacolmena-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* ---------- LAYOUT ---------- */
#root {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- NAVIGATION ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(247,246,242,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(247,246,242,0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
}

.hero-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.hero-name {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.hero-role {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.hero-link:hover {
  border-bottom-color: var(--accent-gold);
}

.hero-card {
  max-width: 600px;
  margin: 1rem auto 0;
  padding: 2rem 2.5rem;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.hero-card .hero-role {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.hero-card .hero-phrase {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent-gold);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero-card .hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-phrase {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent-gold);
  max-width: 550px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

/* ---------- SECCIONES TRANSPARENTES ---------- */
.section {
  padding: 5rem 0;
  position: relative;
  background: transparent;
}

/* ---------- CENTERED HEADER ---------- */
.centered-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ---------- TAGS ---------- */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

/* ---------- TITULOS ---------- */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
}

.section-title em {
  color: var(--accent-gold);
  font-style: normal;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: 2.5rem;
}

/* ---------- TARJETAS (semi-transparentes) ---------- */
.text-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.text-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.text-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.text-card:hover::before {
  opacity: 1;
}

.text-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.text-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- SOBRE MI ---------- */
.sobre-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.sobre-grid .text-card {
  max-width: 900px;
  margin: 0 auto;
}

.sobre-texto p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.chips-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  max-width: 900px;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.6rem;
  background: rgba(170,138,98,0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-gold-dark);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(170,138,98,0.15);
  border-color: var(--accent-gold);
}

/* ---------- 4 DIMENSIONES (cuatro cards en fila) ---------- */
.cuatro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cuatro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.4s ease;
}

.cuatro-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.cuatro-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.cuatro-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.cuatro-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- LA COLMENA (estilo home — oscuro) ---------- */
.section-colmena {
  position: relative;
  background: linear-gradient(180deg, rgba(5,5,16,0.97) 0%, rgba(8,8,26,0.98) 50%, rgba(5,5,16,0.97) 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.section-colmena .section-title {
  color: #F5F0E6;
}

.section-colmena .section-desc {
  color: #a09b8c;
}

.section-colmena .tag {
  color: #EDDAA7;
}

.colmena-carrusel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0 1.5rem;
}

.colmena-carrusel::-webkit-scrollbar {
  display: none;
}

.colmena-track {
  display: flex;
  gap: 1.2rem;
  padding: 0.5rem 2rem;
  width: max-content;
}

.colmena-card {
  flex: 0 0 280px;
  background: rgba(3,3,10,0.68);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(240,165,0,0.12);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  scroll-snap-align: start;
}

.colmena-card:hover {
  border-color: rgba(240,165,0,0.35);
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.5);
}

.colmena-abbr {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #EDDAA7;
  margin-bottom: 0.8rem;
  display: block;
}

.colmena-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F5F0E6;
  margin-bottom: 0.5rem;
}

.colmena-card p {
  font-size: 0.85rem;
  color: #a09b8c;
  line-height: 1.5;
}

/* ---------- PRINCIPIOS ---------- */
.prin-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.prin-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.4s ease;
}

.prin-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateX(6px);
}

.prin-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.5;
  min-width: 45px;
  line-height: 1;
}

.prin-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.prin-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- CONTACTO ---------- */
.contacto-section {
  padding: 5rem 0 6rem;
  text-align: center;
  background: transparent;
}

.contacto-card {
  max-width: 520px;
  margin: 2rem auto 0;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.contacto-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.contacto-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.contacto-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent-gold);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contacto-whatsapp:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(170,138,98,0.2);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: transparent;
}

/* ---------- ANIMACIONES CÁLIDAS — blur suave + aparición gentil ---------- */
.reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(16px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.35s; }
.reveal-d3 { transition-delay: 0.55s; }
.reveal-d4 { transition-delay: 0.75s; }

/* ---------- BRILLO DORADO RESPIRANDO (hero name) ---------- */
@keyframes brilloRespira {
  0%, 100% {
    text-shadow: 0 0 20px rgba(170,138,98,0.08), 0 0 60px rgba(170,138,98,0.04);
  }
  50% {
    text-shadow: 0 0 30px rgba(170,138,98,0.18), 0 0 80px rgba(170,138,98,0.08);
  }
}

.hero-name.active {
  animation: brilloRespira 4s ease-in-out infinite;
}

/* ---------- TAG DORADO PULSANTE ---------- */
.tag.active {
  animation: brilloRespira 5s ease-in-out infinite;
}

/* ---------- HERO ENTRADA ESPECIAL ---------- */
#hero .reveal {
  filter: blur(8px);
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero .reveal.active {
  filter: blur(0);
  transform: translateY(0);
}

#hero .reveal-d1 { transition-delay: 0.2s; }
#hero .reveal-d2 { transition-delay: 0.5s; }
#hero .reveal-d3 { transition-delay: 0.8s; }
#hero .reveal-d4 { transition-delay: 1.1s; }

/* Scroll hint aparece último, muy suave — conserva centrado translateX(-50%) */
.scroll-hint {
  opacity: 0;
  filter: blur(4px);
  transform: translateX(-50%) translateY(10px);
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1) 2s,
              filter 1.5s cubic-bezier(0.22, 1, 0.36, 1) 2s,
              transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 2s;
}

.scroll-hint.visible {
  opacity: 0.7;
  filter: blur(0);
  transform: translateX(-50%) translateY(0);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .cuatro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1rem;
  }
  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    font-size: 0.7rem;
  }
  #hero {
    padding: 5rem 1rem 3rem;
  }
  .container,
  .container-narrow {
    padding: 0 1rem;
  }
  .cuatro-grid {
    grid-template-columns: 1fr;
  }
  .prin-item {
    flex-direction: column;
    gap: 1rem;
  }
  .chips {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
  }
  .chip {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }
  .colmena-card {
    flex: 0 0 260px;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .chips {
    grid-template-columns: repeat(3, 1fr);
  }
}
