/* =========================================
   EEE - Escuela de Empresarios y Emprendedores
   Main Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --blue-deep: #0a2d6e;
  --blue-primary: #1056c7;
  --blue-bright: #1976d2;
  --blue-light: #2196f3;
  --blue-glow: #42a5f5;
  --gold: #f0a500;
  --gold-light: #ffc947;
  --white: #ffffff;
  --off-white: #f4f7fc;
  --gray-light: #e8eef8;
  --gray-mid: #8fa8c8;
  --dark: #071a3e;
  --text-dark: #0d1f40;
  --text-mid: #3a5278;

  --shadow-card: 0 8px 32px rgba(10, 45, 110, 0.13);
  --shadow-hover: 0 20px 60px rgba(10, 45, 110, 0.22);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.label-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  color: #fff;
  box-shadow: 0 6px 24px rgba(16, 86, 199, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(16, 86, 199, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  box-shadow: 0 6px 24px rgba(240, 165, 0, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(240, 165, 0, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

#navbar.scrolled {
  background: rgba(7, 26, 62, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.logo-text .tagline {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--blue-glow);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Real logo image wrapper */
.nav-logo-img-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer logo: slightly larger */
.footer-brand .nav-logo-img-wrap {
  width: 56px;
  height: 56px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, 0.45);
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Carousel ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(7, 26, 62, 0.88) 40%, rgba(10, 45, 110, 0.6) 70%, rgba(16, 86, 199, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 640px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards 0.3s;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s forwards 0.5s;
}

.hero-headline span {
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s forwards 0.7s;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s forwards 0.9s;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

/* Hero Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev {
  left: 24px;
}

.hero-arrow-next {
  right: 24px;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: scrollAnim 2s infinite;
}

/* ── Stats Bar ── */
#stats-bar {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 100%);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}

#stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
  color: #fff;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ── Quiénes Somos ── */
#quienes-somos {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#quienes-somos::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-img-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 45, 110, 0.15), transparent);
}

.about-badge-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-hover);
  text-align: center;
  min-width: 140px;
}

.about-badge-card .num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  line-height: 1;
}

.about-badge-card .txt {
  font-size: 0.75rem;
  margin-top: 4px;
  opacity: 0.9;
}

.about-content {
  padding-left: 16px;
}

.about-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 2rem;
}

.value-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--blue-primary);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-left-color: var(--gold);
}

.value-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.value-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
}

/* ── Events ── */
#eventos {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
}

.eventos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* Calendar */
.calendar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cal-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cal-grid {
  padding: 20px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.cal-wd {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  padding: 6px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cal-day:hover {
  background: var(--gray-light);
}

.cal-day.other-month {
  color: var(--gray-mid);
}

.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--blue-primary);
  border-radius: 50%;
}

.cal-day.today {
  background: var(--blue-primary);
  color: #fff;
  font-weight: 700;
}

.cal-day.today::after {
  background: var(--gold);
}

.cal-day.event-day {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-bright));
  color: #fff;
  font-weight: 700;
}

.cal-legend {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-mid);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Event Cards */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.event-card:hover {
  transform: translateX(6px);
  border-color: var(--blue-light);
  box-shadow: var(--shadow-hover);
}

.event-date-badge {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
  color: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 10px 6px;
  line-height: 1;
}

.event-date-badge .day {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}

.event-date-badge .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.event-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 6px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-mid);
}

.event-meta-item i {
  color: var(--blue-primary);
}

.event-tag {
  background: rgba(25, 118, 210, 0.1);
  color: var(--blue-primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  align-self: center;
}

.event-tag.free {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

/* ── Ponentes ── */
#ponentes {
  padding: 100px 0;
  background: var(--white);
}

.ponentes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ponente-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.ponente-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.ponente-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.ponente-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ponente-card:hover .ponente-img {
  transform: scale(1.06);
}

.ponente-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 26, 62, 0.85) 0%, transparent 60%);
}

.ponente-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ponente-body {
  padding: 24px;
}

.ponente-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.ponente-title {
  font-size: 0.8rem;
  color: var(--blue-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.ponente-org {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.ponente-bio {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ponente-socials {
  display: flex;
  gap: 10px;
}

.ponente-social-link {
  width: 32px;
  height: 32px;
  background: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.ponente-social-link:hover {
  background: var(--blue-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Gallery ── */
#galeria {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#galeria::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

#galeria .section-title {
  color: #fff;
}

#galeria .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 26, 62, 0.85), transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Partners / Logos ── */
#aliados {
  padding: 80px 0;
  background: var(--white);
}

.partners-track-wrap {
  overflow: hidden;
  position: relative;
  margin-top: 2.5rem;
}

.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}

.partners-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.partners-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.partners-track {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 90px;
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.partner-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-align: center;
  line-height: 1.2;
}

/* ── Why EEE ── */
#por-que {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--blue-bright) 100%);
  position: relative;
  overflow: hidden;
}

#por-que::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

#por-que::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

#por-que .section-title {
  color: #fff;
}

#por-que .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  color: #fff;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
}

.benefit-icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(240, 165, 0, 0.35);
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* ── Newsletter / CTA ── */
#inscripcion {
  padding: 100px 0;
  background: var(--off-white);
}

.cta-card {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: rgba(240, 165, 0, 0.1);
  border-radius: 50%;
}

.cta-card .section-title {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-card .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 2rem auto 0;
  position: relative;
  z-index: 1;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-input:focus {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.18);
}

/* ── Footer ── */
#footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text .brand {
  color: #fff;
}

.footer-brand .logo-text .tagline {
  color: var(--blue-glow);
}

.footer-desc {
  font-size: 0.83rem;
  line-height: 1.7;
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social:hover {
  background: var(--blue-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--blue-glow);
  margin-top: 2px;
  width: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--gold-light);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 88vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Back to Top ── */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(16, 86, 199, 0.45);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 500;
}

#back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-top:hover {
  transform: translateY(-3px);
}

/* ── Animations ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

@keyframes scrollAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .about-content {
    padding-left: 0;
  }

  .eventos-layout {
    grid-template-columns: 1fr;
  }

  .calendar-widget {
    max-width: 420px;
  }

  .ponentes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ────────────────────────────────────────
   TABLET / PHABLET  ≤ 768px
──────────────────────────────────────── */
@media (max-width: 768px) {

  /* ─ Navbar ─ */
  .nav-hamburger {
    display: flex;
  }

  /* Hamburger → X animation */
  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7, 26, 62, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 12px 16px 24px;
    gap: 2px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    /* slide-down enter */
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    font-size: 1rem;
    padding: 13px 16px;
    border-radius: 10px;
    display: block;
    width: 100%;
    color: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-link:last-of-type { border-bottom: none; }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
    padding: 13px 20px !important;
    font-size: 1rem !important;
  }

  /* ─ Hero ─ */
  #hero {
    /* Use dvh on supported browsers so address bar doesn't clip content */
    height: 100dvh;
    min-height: 560px;
  }

  .hero-headline {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  /* Hide scroll indicator on mobile – wastes space */
  .hero-scroll { display: none; }

  /* Smaller arrows on mobile */
  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }

  /* ─ Stats ─ */
  #stats-bar { padding: 20px 0; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(3)::after { display: none; }

  .stat-item {
    padding: 14px 16px;
    /* reduce float anim amplitude on mobile */
    animation: statFloat 6s ease-in-out infinite;
  }

  /* ─ Sections ─ */
  #quienes-somos,
  #eventos,
  #ponentes,
  #por-que,
  #galeria,
  #aliados,
  #inscripcion {
    padding: 64px 0;
  }

  #ceo {
    padding: 64px 0 !important;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* ─ Quiénes Somos ─ */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-visual {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-img-main {
    height: 280px;
  }

  .about-badge-card {
    right: 12px;
    bottom: -16px;
    padding: 14px 18px;
    min-width: 110px;
  }

  .about-badge-card .num {
    font-size: 1.7rem;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .value-card {
    padding: 14px;
  }

  /* ─ CEO section (inline-grid override) ─ */
  #ceo .container > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Hide the floating photo on mobile, show content only */
  #ceo .container > div:nth-child(2) > div:first-child {
    display: none !important;
  }

  /* Compact blockquote on mobile */
  #ceo blockquote {
    padding: 20px 20px 20px 36px !important;
    font-size: 1rem !important;
  }

  /* Tags wrap nicely */
  #ceo div[style*="flex-wrap"] {
    gap: 8px !important;
  }

  /* CTA buttons stack */
  #ceo div[style*="display:flex;gap:16px"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #ceo a[href*="linkedin"],
  #ceo a[href*="inscripcion"] {
    width: 100%;
    justify-content: center !important;
  }

  /* ─ Events ─ */
  .eventos-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .event-card {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 16px;
  }

  /* Move tag to its own line */
  .event-tag {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .event-card:hover {
    transform: translateX(0) translateY(-3px);
  }

  .calendar-widget {
    max-width: 100%;
  }

  /* ─ Ponentes ─ */
  .ponentes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ponente-img-wrap {
    height: 220px;
  }

  /* ─ Why EEE ─ */
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .benefit-card {
    padding: 24px 16px;
  }

  .benefit-icon-wrap {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  /* ─ Gallery ─ */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  /* ─ Partners marquee ─ */
  .partner-logo {
    min-width: 130px;
    height: 72px;
    padding: 14px 20px;
  }

  /* ─ Newsletter / CTA ─ */
  .cta-card {
    padding: 40px 20px;
    border-radius: var(--radius-md);
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-input {
    width: 100%;
    padding: 14px 18px;
  }

  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* ─ Footer ─ */
  #footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }

  /* ─ Back-to-top ─ */
  #back-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  /* ─ Lightbox ─ */
  .lightbox img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  /* ─ Reveal animations ─ */
  /* Reduce slide distance on mobile */
  .reveal { transform: translateY(20px); }
  .reveal-left { transform: translateX(-24px); }
  .reveal-right { transform: translateX(24px); }
}

/* ────────────────────────────────────────
   SMALL PHONE  ≤ 480px
──────────────────────────────────────── */
@media (max-width: 480px) {

  /* ─ Hero ─ */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-headline {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  /* Hide hero arrows on very small screens (swipe only) */
  .hero-arrow { display: none; }

  /* ─ Stats ─ */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .stat-label {
    font-size: 0.72rem;
  }

  /* ─ About values: single col on very small ─ */
  .about-values {
    grid-template-columns: 1fr;
  }

  /* ─ Benefits: single col ─ */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* ─ Events ─ */
  .event-card {
    padding: 14px 12px;
  }

  .event-date-badge .day {
    font-size: 1.3rem;
  }

  /* ─ Gallery: single col ─ */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }

  /* ─ CTA ─ */
  #inscripcion {
    padding: 48px 0;
  }

  .cta-card {
    padding: 32px 16px;
  }

  /* ─ Section title scaling ─ */
  .section-title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  /* ─ Buttons touch target ─ */
  .btn {
    min-height: 48px;
  }

  /* ─ Nav tap targets ─ */
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* ────────────────────────────────────────
   TINY PHONE  ≤ 360px
──────────────────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 16px; }

  .nav-inner { height: 62px; }
  .nav-links { top: 62px; }

  #hero { min-height: 520px; }

  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  .hero-badge {
    font-size: 0.65rem;
  }
}

/* ────────────────────────────────────────
   FLOATING WHATSAPP BUTTON (mobile)
──────────────────────────────────────── */
#whatsapp-fab {
  display: none;
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  z-index: 490;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

#whatsapp-fab:hover,
#whatsapp-fab:active {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.65);
}

@media (max-width: 768px) {
  #whatsapp-fab { display: flex; }
}

/* ────────────────────────────────────────
   REDUCE MOTION (accessibility)
──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   ✨ ADVANCED MOTION & EFFECTS
═══════════════════════════════════════════ */

/* ── Cursor Glow ── */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.10) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear, opacity 0.3s;
  mix-blend-mode: screen;
}

/* ── Particle canvas ── */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Floating Orbs (decorative) ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(16, 86, 199, 0.18);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(240, 165, 0, 0.1);
  bottom: 0;
  left: -80px;
  animation-delay: -4s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(33, 150, 243, 0.12);
  top: 50%;
  left: 60%;
  animation-delay: -8s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  33% {
    transform: translateY(-40px) scale(1.05);
  }

  66% {
    transform: translateY(20px) scale(0.97);
  }
}

/* ── Wave section dividers ── */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
}

.wave-top {
  top: -1px;
}

.wave-bottom {
  bottom: -1px;
  transform: rotate(180deg);
}

.wave-top svg,
.wave-bottom svg {
  display: block;
  width: 100%;
}

/* ── Animated gradient border on cards ── */
.event-card {
  background: var(--white);
  position: relative;
  z-index: 0;
}

.event-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(135deg, transparent, transparent);
  z-index: -1;
  transition: background 0.4s;
}

.event-card:hover::before {
  background: linear-gradient(135deg, var(--blue-primary), var(--gold), var(--blue-light));
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% {
    background: linear-gradient(0deg, var(--blue-primary), var(--gold));
  }

  50% {
    background: linear-gradient(180deg, var(--gold), var(--blue-light));
  }

  100% {
    background: linear-gradient(360deg, var(--blue-primary), var(--gold));
  }
}

/* ── Sheen/shimmer on ponente cards ── */
.ponente-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 20%,
      rgba(255, 255, 255, 0.18) 50%,
      transparent 80%);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.ponente-card:hover::after {
  left: 130%;
}

/* ── Ripple on buttons ── */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Floating animation on stat items ── */
.stat-item {
  animation: statFloat 6s ease-in-out infinite;
}

.stat-item:nth-child(2) {
  animation-delay: -1.5s;
}

.stat-item:nth-child(3) {
  animation-delay: -3s;
}

.stat-item:nth-child(4) {
  animation-delay: -4.5s;
}

@keyframes statFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ── Benefit card tilt glow ── */
.benefit-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Morphing blob behind quienes somos ── */
.blob-morph {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: blobMorph 10s ease-in-out infinite alternate;
  opacity: 0.5;
}

@keyframes blobMorph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* ── Staggered reveal with slide directions ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* ── Animated underline on nav links ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ── Logo mark spin on hover ── */
.nav-logo:hover .logo-mark {
  animation: logoPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes logoPop {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.15) rotate(-8deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* ── Gallery item scale ring ── */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ── Partner logo glow on hover ── */
.partner-logo:hover {
  box-shadow: 0 0 0 2px var(--blue-primary), var(--shadow-card);
}

/* ── CTA card animated gradient border ── */
.cta-card {
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(240, 165, 0, 0.15) 60deg,
      transparent 120deg);
  animation: ctaRotate 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.cta-card>* {
  position: relative;
  z-index: 1;
}

@keyframes ctaRotate {
  to {
    transform: rotate(360deg);
  }
}

/* ── Value card icon bounce ── */
.value-card:hover .value-icon {
  animation: iconBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-8px);
  }

  75% {
    transform: translateY(4px);
  }
}

/* ── Typing cursor for hero headline ── */
.typing-cursor {
  display: inline-block;
  width: 3px;
  background: var(--gold-light);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  border-radius: 2px;
  vertical-align: middle;
  height: 0.85em;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Pulsing ring on event badges ── */
.event-date-badge {
  position: relative;
  overflow: visible;
}

.event-card:hover .event-date-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 2px solid rgba(25, 118, 210, 0.5);
  animation: ringPulse 1.2s ease-out infinite;
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* ── Section accent line animate ── */
.section-header .label-tag {
  position: relative;
  overflow: hidden;
}

.section-header .label-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: tagSheen 3s ease-in-out infinite 1s;
}

@keyframes tagSheen {
  0% {
    left: -100%;
  }

  60% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

/* ── Footer social icon spin ── */
.footer-social:hover i {
  animation: socialSpin 0.4s ease-out 1;
}

@keyframes socialSpin {
  from {
    transform: rotateY(90deg);
    opacity: 0;
  }

  to {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── About image parallax wrapper ── */
.about-img-wrap {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ── Hero particles ── */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: particleDrift linear infinite;
  pointer-events: none;
}

@keyframes particleDrift {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-60px) translateX(20px) scale(1.2);
    opacity: 0.4;
  }

  100% {
    transform: translateY(-130px) translateX(-10px) scale(0.8);
    opacity: 0;
  }
}

/* ── Gold shimmer text ── */
.shimmer-text {
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold-light) 40%,
      #fff 50%,
      var(--gold-light) 60%,
      var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
  to {
    background-position: 200% center;
  }
}

/* ── Hover card 3D tilt ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
}

/* ── Stats bar scan line ── */
#stats-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: statsScan 4s ease-in-out infinite;
}

@keyframes statsScan {
  0% {
    left: -60%;
  }

  100% {
    left: 120%;
  }
}

/* ── Ponente card pop on hover ── */
.ponente-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 70px rgba(10, 45, 110, 0.28);
}

/* ── Benefit icon wrap glow ── */
.benefit-icon-wrap {
  transition: box-shadow 0.3s, transform 0.3s;
}

.benefit-card:hover .benefit-icon-wrap {
  transform: translateY(-4px) rotate(5deg) scale(1.1);
  box-shadow: 0 12px 32px rgba(240, 165, 0, 0.55);
}

/* ── Animated hero gradient background ── */
#hero {
  background: linear-gradient(-45deg, #071a3e, #0a2d6e, #1056c7, #1565c0);
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
}

@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}