:root {
  --primary-red: #de331d;
  --primary-red-dark: #b82918;
  --dark-bg: #0a0a0a;
  --dark-bg-lighter: #151515;
  --dark-bg-card: #1a1a1a;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1010 50%, #0a0a0a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar-custom {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.navbar-custom.scrolled { padding: 0.75rem 0; background: rgba(10, 10, 10, 0.98); }
.navbar-brand img { height: 45px; transition: transform 0.3s ease; }
.navbar-brand:hover img { transform: scale(1.05); }
.navbar-nav .nav-link {
  color: var(--text-gray); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 1.25rem; transition: color 0.3s ease; position: relative;
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--primary-red); transition: all 0.3s ease; transform: translateX(-50%);
}
.navbar-nav .nav-link:hover { color: var(--text-white); }
.navbar-nav .nav-link:hover::after { width: 60%; }
.btn-cta-nav {
  background: var(--primary-red); border: none; color: white;
  padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(222, 51, 29, 0.3);
}
.btn-cta-nav:hover {
  background: var(--primary-red-dark); transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(222, 51, 29, 0.4); color: white;
}
.navbar-toggler { border: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { filter: invert(1); }

/* Hero Section */
.hero-section {
  min-height: 100vh; background: var(--gradient-hero); position: relative;
  display: flex; align-items: center; overflow: hidden; padding-top: 80px;
}
.hero-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(222, 51, 29, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(222, 51, 29, 0.1) 0%, transparent 40%);
  pointer-events: none;
}
.hero-section::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(222, 51, 29, 0.15); border: 1px solid rgba(222, 51, 29, 0.3);
  padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.85rem;
  font-weight: 500; color: var(--primary-red); margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title .highlight { color: var(--primary-red); }
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-gray); max-width: 600px;
  margin-bottom: 2.5rem; font-weight: 400; animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.btn-hero-primary {
  background: var(--primary-red); border: none; color: white;
  padding: 1rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: 1.1rem;
  transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(222, 51, 29, 0.4);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-hero-primary:hover {
  background: var(--primary-red-dark); transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(222, 51, 29, 0.5); color: white;
}
.btn-hero-secondary {
  background: transparent; border: 2px solid rgba(255, 255, 255, 0.2); color: white;
  padding: 1rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: 1.1rem;
  transition: all 0.3s ease; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); color: white;
}
.hero-info { display: flex; flex-wrap: wrap; gap: 2rem; animation: fadeInUp 0.8s ease 0.8s both; }
.hero-info-item { display: flex; align-items: center; gap: 0.75rem; }
.hero-info-icon {
  width: 45px; height: 45px; background: rgba(222, 51, 29, 0.15); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-red); font-size: 1.25rem;
}
.hero-info-text span { display: block; font-size: 0.8rem; color: var(--text-gray); }
.hero-info-text strong { font-size: 1rem; font-weight: 600; }
.hero-image-container { position: relative; animation: fadeInRight 1s ease 0.5s both; }
.hero-logo-event { max-width: 100%; filter: drop-shadow(0 20px 40px rgba(222, 51, 29, 0.3)); }
.floating-card {
  position: absolute; background: rgba(26, 26, 26, 0.9); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  padding: 1rem 1.5rem; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.floating-card-1 { bottom: 20%; left: -10%; animation: float 6s ease-in-out infinite; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Section Header */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-red);
  font-weight: 600; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.hero-event-note {
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  width: fit-content;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Ponencias Section */
.ponencias-section { background: var(--dark-bg); padding: 6rem 0; position: relative; }

.ponencias-list {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.ponencias-list::before {
  content: "";
  position: absolute;
  left: 115px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(222, 51, 29, 0.2);
}

.ponencia-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.ponencia-time {
  flex: 0 0 80px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-red);
  padding-top: 1.5rem;
  text-align: right;
  position: relative;
}

.ponencia-time::after {
  content: "";
  position: absolute;
  right: -39px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: var(--dark-bg);
  border: 2px solid var(--primary-red);
  border-radius: 50%;
  z-index: 2;
}

.ponencia-content {
  flex: 1;
  background: var(--dark-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
}

.ponencia-content:hover {
  border-color: rgba(222, 51, 29, 0.3);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ponencia-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text-white);
}

.ponencia-lab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(222, 51, 29, 0.1);
  border: 1px solid rgba(222, 51, 29, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 1rem;
}

.ponencia-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ponencia-speakers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

.speaker {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.speaker i {
  color: var(--primary-red);
  font-size: 0.85rem;
}

.lunch-item .ponencia-content {
  background: rgba(222, 51, 29, 0.05);
  border: 1px dashed rgba(222, 51, 29, 0.3);
}

.lunch-item .ponencia-title {
  color: var(--primary-red);
  margin-bottom: 0.25rem;
}

/* Carousel */
.carousel-indicators { bottom: -50px; }
.carousel-indicators button {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3);
  border: none; transition: all 0.3s ease;
}
.carousel-indicators button.active { background: var(--primary-red); width: 32px; border-radius: 6px; }
.carousel-arrow {
  width: 50px; height: 50px; background: var(--dark-bg-card);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: white; transition: all 0.3s ease;
}
.carousel-arrow:hover { background: var(--primary-red); border-color: var(--primary-red); }
.carousel-control-prev, .carousel-control-next { width: auto; opacity: 1; }
.carousel-control-prev { left: -60px; }
.carousel-control-next { right: -60px; }

.speaker-cta { display: none; }

/* Responsive Ponencias */
@media (max-width: 768px) {
  .ponencias-list::before { left: 20px; }
  .ponencia-item { gap: 1.5rem; }
  .ponencia-time { flex: 0 0 60px; font-size: 0.9rem; text-align: left; padding-top: 1.2rem; }
  .ponencia-time::after { left: -25px; right: auto; top: 22px; }
  .ponencia-content { padding: 1.5rem; }
  .ponencia-title { font-size: 1.2rem; }
}


/* Pricing Section */
.pricing-section {
  background: var(--dark-bg-lighter); padding: 6rem 0; position: relative; overflow: hidden;
}
.pricing-section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 51, 29, 0.3), transparent);
}
.pricing-card {
  background: var(--dark-bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 2.5rem; text-align: center;
  transition: all 0.4s ease; position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-8px); border-color: rgba(222, 51, 29, 0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.pricing-card.featured { border-color: rgba(222, 51, 29, 0.5); }
.pricing-card.featured::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-red);
}
.pricing-popular {
  position: absolute; top: 16px; right: -30px; background: var(--primary-red);
  color: white; font-size: 0.7rem; font-weight: 700; padding: 0.3rem 2.5rem;
  transform: rotate(45deg); text-transform: uppercase; letter-spacing: 1px;
}
.pricing-badge {
  display: inline-block; background: rgba(222, 51, 29, 0.1);
  border: 1px solid rgba(222, 51, 29, 0.2); color: var(--primary-red);
  padding: 0.3rem 1.25rem; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
}
.pricing-price { font-size: 3.5rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1; }
.pricing-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text-gray); }
.pricing-features { list-style: none; padding: 0; margin-bottom: 2rem; text-align: left; flex-grow: 1; }
.pricing-features li {
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem;
}
.pricing-features li i { font-size: 1rem; color: #22c55e; }
.pricing-features li.disabled { color: var(--text-gray); opacity: 0.5; }
.pricing-features li.disabled i { color: var(--text-gray); }
.btn-pricing {
  background: rgba(222, 51, 29, 0.15); border: 1px solid rgba(222, 51, 29, 0.3);
  color: var(--primary-red); padding: 0.875rem 2rem; border-radius: 50px;
  font-weight: 600; transition: all 0.3s ease; width: 100%;
}
.btn-pricing:hover, .btn-pricing.featured {
  background: var(--primary-red); color: white; border-color: var(--primary-red);
  box-shadow: 0 8px 25px rgba(222, 51, 29, 0.4);
}
.btn-pricing.featured:hover { background: var(--primary-red-dark); transform: translateY(-2px); }
.btn-pricing.selected {
  background: var(--primary-red); color: white; border-color: var(--primary-red);
  box-shadow: 0 8px 25px rgba(222, 51, 29, 0.4); animation: pulse 0.5s ease;
}

/* Form Section */
.form-section { background: var(--dark-bg); padding: 6rem 0; position: relative; }
.form-card {
  background: var(--dark-bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 3rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.form-header { text-align: center; margin-bottom: 2.5rem; }
.form-header h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-header p { color: var(--text-gray); }
.form-label { color: var(--text-white); font-weight: 500; margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-control, .form-select {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 0.875rem 1.25rem; color: white;
  font-size: 1rem; transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.08); border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(222, 51, 29, 0.15); color: white;
}
.form-control::placeholder { color: rgba(255,255,255,0.4); }
.form-select option { background: var(--dark-bg-card); color: white; }
.btn-submit {
  background: var(--primary-red); border: none; color: white;
  padding: 1rem 3rem; border-radius: 50px; font-weight: 600; font-size: 1.1rem;
  transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(222, 51, 29, 0.4);
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-submit:hover:not(:disabled) {
  background: var(--primary-red-dark); transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(222, 51, 29, 0.5); color: white;
}
.btn-submit:disabled { opacity: 0.8; cursor: not-allowed; }

/* PayPal Wrapper */
.paypal-wrapper {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 2rem; text-align: center;
}
.paypal-wrapper p { color: var(--text-gray); font-weight: 500; }

/* Success Message */
.success-message { text-align: center; padding: 3rem; display: none; }
.success-icon {
  width: 100px; height: 100px; background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin: 0 auto 2rem; animation: scaleIn 0.5s ease;
}
.success-message h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.success-message p { color: var(--text-gray); font-size: 1.1rem; }
.event-reminder {
  background: rgba(222, 51, 29, 0.1); border: 1px solid rgba(222, 51, 29, 0.2);
  border-radius: 16px; padding: 1.5rem; display: inline-block; margin-top: 1.5rem;
}
.event-reminder p { margin: 0; font-size: 1rem; color: var(--text-white); }

/* Footer */
footer { background: var(--dark-bg); padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-sponsor {
  text-align: center; margin-bottom: 2rem; padding: 2rem;
  background: rgba(255,255,255,0.03); border-radius: 16px;
}
.footer-sponsor p { color: var(--text-gray); font-size: 0.85rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.footer-contact { text-align: center; margin-bottom: 2rem; }
.footer-contact h5 { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-contact a { color: var(--primary-red); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.footer-logos {
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.footer-logos img { height: 35px; opacity: 0.8; transition: opacity 0.3s ease; }
.footer-logos img:hover { opacity: 1; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-gray); font-size: 0.9rem; }

/* Scroll animations */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-red-dark); }

/* Responsive */
@media (max-width: 991px) {
  .hero-section { text-align: center; padding-top: 100px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-info { justify-content: center; }
  .hero-image-container { margin-top: 3rem; }
  .floating-card { display: none; }
  .carousel-control-prev { left: -15px; }
  .carousel-control-next { right: -15px; }
  .speaker-cta-content { text-align: center; flex-direction: column; }
}

@media (max-width: 767px) {
  .navbar-nav { padding: 1rem 0; }
  .hero-cta .btn-hero-primary, .hero-cta .btn-hero-secondary { width: 100%; justify-content: center; }
  .form-card { padding: 2rem 1.5rem; }
  .ponencia-card { padding: 2rem; min-height: auto; }
  .carousel-control-prev, .carousel-control-next { display: none; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .footer-logos { gap: 2rem; }
  .footer-logos img { height: 28px; }
}
