/* =============================================
   RESPONSIVE NOSOTROS
============================================= */

@media (max-width: 1024px) {
  .organizer-benefits { grid-template-columns: 1fr; }
  .organizer-icon-large { font-size: 48px; }
}

@media (max-width: 768px) {
  .organizer-section { padding: 70px 0; }
  .organizer-icon-large { font-size: 48px; }
}

/* =============================================
   STATS COUNTER (uses .stat-value from statpad.css)
   Animation handled by nosotros.js
============================================= */

/* =============================================
   SCROLL REVEAL
============================================= */

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal - only applies when JS is enabled (.js-loaded on body) */
.js-loaded .vision-section,
.js-loaded .mision-section,
.js-loaded .servicios-section,
.js-loaded .equipo-section,
.js-loaded .stats-section,
.js-loaded .eventos-neo-section,
.js-loaded .aliados-section,
.js-loaded .historia-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-loaded .vision-section.visible,
.js-loaded .mision-section.visible,
.js-loaded .servicios-section.visible,
.js-loaded .equipo-section.visible,
.js-loaded .stats-section.visible,
.js-loaded .eventos-neo-section.visible,
.js-loaded .aliados-section.visible,
.js-loaded .historia-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: if JS doesn't load, sections become visible after 2s via animation */
.vision-section,
.mision-section,
.servicios-section,
.equipo-section,
.stats-section,
.eventos-neo-section,
.aliados-section,
.historia-section {
  animation: reveal-fallback 0.8s ease 2s forwards;
}

@keyframes reveal-fallback {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* When JS loads, cancel the fallback animation */
.js-loaded .vision-section,
.js-loaded .mision-section,
.js-loaded .servicios-section,
.js-loaded .equipo-section,
.js-loaded .stats-section,
.js-loaded .eventos-neo-section,
.js-loaded .aliados-section,
.js-loaded .historia-section {
  animation: none;
}

/* =============================================
   STAR FLOAT ANIMATION (for hero background stars)
============================================= */
@keyframes star-float {
  25% { transform: translate(10px, -10px) rotate(90deg); }
  50% { transform: translate(-5px, 15px) rotate(180deg); }
  75% { transform: translate(-10px, -5px) rotate(270deg); }
}

/* =============================================
   RESPONSIVE NOSOTROS
============================================= */
@media (max-width: 1024px) {
  .organizer-benefits { grid-template-columns: 1fr; }
  .organizer-icon-large { font-size: 48px; }
}

@media (max-width: 768px) {
  .organizer-section { padding: 70px 0; }
  .organizer-icon-large { font-size: 48px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .aliados-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   VISION NEO
============================================= */
.vision-section {
  padding: 100px 40px;
}
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.vision-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 28px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: all 0.3s ease;
}
.vision-card:hover {
  border-color: rgba(0,200,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.vision-icon {
  width: 52px;
  height: 52px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  color: var(--cyan);
}
.vision-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.vision-desc {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.7;
}

/* =============================================
   MISION NEO
============================================= */
.mision-section {
  padding: 100px 40px;
}
.mision-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.mision-content {
  padding-right: 20px;
}
.mision-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.mision-title .mag { color: var(--magenta); }
.mision-text {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.85;
  margin-bottom: 20px;
}
.mision-text strong { color: var(--white); }
.mision-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: all 0.3s;
}
.pillar:hover {
  border-color: rgba(0,200,255,0.3);
  background: var(--surface2);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: rgba(0,200,255,0.15);
  flex-shrink: 0;
  line-height: 1;
}
.pillar h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.pillar p {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.6;
}
.mision-visual {
  position: relative;
  height: 500px;
}
.mision-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.mision-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,47,217,0.35) 0%, transparent 70%);
  top: -80px; right: -80px;
  animation: orbFloat 8s ease-in-out infinite;
}
.mision-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,94,204,0.2) 0%, transparent 70%);
  bottom: -40px; left: -40px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-25px); }
}
.mision-visual-content {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  padding: 40px;
  overflow: hidden;
  z-index: 1;
}
.mision-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.2);
  padding: 10px 20px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  margin-bottom: 32px;
}
.mision-badge-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,200,255,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0,200,255,0); }
}
.mision-badge span {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}
.mision-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.mision-stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 6px;
}
.mision-stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* =============================================
   SERVICIOS NEO
============================================= */
.servicios-section {
  padding: 100px 40px;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}
.servicio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: all 0.3s ease;
}
.servicio-card:hover {
  border-color: rgba(0,200,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.servicio-icon {
  width: 48px;
  height: 48px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  color: var(--cyan);
}
.servicio-icon.mag {
  background: var(--mag-dim);
  border-color: rgba(255,94,204,0.2);
  color: var(--magenta);
}
.servicio-icon.cyan {
  background: var(--cyan-dim);
  border-color: rgba(0,200,255,0.2);
  color: var(--cyan);
}
.servicio-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.servicio-desc {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.servicio-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.servicio-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-light);
}
.servicio-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}
.servicio-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* =============================================
   EQUIPO NEO CAROUSEL (scoped to avoid base.css conflicts)
============================================= */
.equipo-carousel-wrap {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.equipo-carousel-track {
  display: flex;
  /* gap removido - usamos padding en slides */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.equipo-carousel-track::-webkit-scrollbar {
  display: none;
}

.equipo-carousel-slide {
  flex: 0 0 33.333333%;
  scroll-snap-align: start;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 8px; /* medio gap a cada lado = 16px total entre slides */
}

.equipo-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0.9;
}

.equipo-carousel-arrow:hover {
  background: var(--surface2);
  border-color: var(--cyan);
  color: var(--cyan);
  opacity: 1;
}

.equipo-carousel-arrow-left { left: 8px; }
.equipo-carousel-arrow-right { right: 8px; }

@media (max-width: 768px) {
  .equipo-carousel-arrow { width: 36px; height: 36px; }
  .equipo-carousel-arrow-left { left: 4px; }
  .equipo-carousel-arrow-right { right: 4px; }
}

.equipo-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.equipo-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.equipo-carousel-dot.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,200,255,0.5);
}

/* Team Card Styles */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Slide inner - holds 2 cards side by side */
.equipo-slide-inner {
  display: flex;
  gap: 16px;
  width: 100%;
}

.equipo-slide-inner .team-card {
  flex: 1;
  min-width: 0;
}

.team-card:hover {
  border-color: rgba(0,200,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.team-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface2);
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-img img {
  transform: scale(1.04);
}

.team-card-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.team-role {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.team-bio {
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.55;
}

/* =============================================
   STATS SECTION
============================================= */
.stats-section {
  padding: 80px 40px;
  position: relative;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.stats-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
}
.stats-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  flex: 1;
  text-align: center;
}
.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cyan);
}
.stat-icon.mag {
  background: var(--mag-dim);
  border-color: rgba(255,94,204,0.2);
  color: var(--magenta);
}
.stat-icon.cyan {
  background: var(--cyan-dim);
  border-color: rgba(0,200,255,0.2);
  color: var(--cyan);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.stat-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

/* =============================================
   HISTORIA NEO TIMELINE
============================================= */
.historia-section {
  padding: 100px 40px;
}
.historia-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.historia-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan) 20%, var(--cyan) 80%, transparent);
}
.historia-item {
  display: flex;
  gap: 24px;
  padding-bottom: 48px;
  position: relative;
}
.historia-item:last-child { padding-bottom: 0; }
.historia-marker {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.historia-marker::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0,200,255,0.6);
}
.historia-item:first-child .historia-marker::before {
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255,94,204,0.6);
}
.historia-content {
  flex: 1;
  padding-top: 4px;
}
.historia-date {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}
.historia-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.historia-desc {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.8;
}

/* =============================================
   RESPONSIVE FOR NEW SECTIONS
============================================= */
@media (max-width: 1024px) {
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .mision-wrap { grid-template-columns: 1fr; gap: 40px; }
  .mision-visual { height: 400px; order: -1; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .mision-stats { gap: 16px; }
  .mision-stat-num { font-size: 36px; }
  .stats-wrap { flex-wrap: wrap; gap: 24px; }
  .stat-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
  }
  .stat-item { padding: 0 16px; }
}

@media (max-width: 768px) {
  .vision-section,
  .mision-section,
  .servicios-section,
  .equipo-section,
  .stats-section,
  .historia-section {
    padding: 70px 20px;
  }
  .vision-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .mision-title { font-size: 28px; }
  .mision-visual { height: 350px; }
  .mision-stats { grid-template-columns: 1fr; gap: 20px; }
  .mision-visual-content { padding: 24px; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn.prev { left: -8px; }
  .carousel-btn.next { right: -8px; }
  .stat-num { font-size: 36px; }
  .stat-divider { display: none; }
  .stats-wrap { gap: 16px; }
  .historia-timeline::before { left: 18px; }
  .historia-marker { width: 40px; height: 40px; }
  .historia-marker::before { width: 10px; height: 10px; }
  .historia-title { font-size: 18px; }
  .historia-desc { font-size: 14px; }
}

@media (max-width: 480px) {
  .vision-section,
  .mision-section,
  .servicios-section,
  .equipo-section,
  .stats-section,
  .historia-section,
  .organizer-section {
    padding: 40px 16px;
  }
  .stats-wrap { flex-direction: column; }
  .stat-divider { display: none; }
  .mision-stat-num { font-size: 32px; }
}