/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --accent-light: #38bdf8;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden !important;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
}

/* ===== CONTAINER FIXES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.container-fluid {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  background: transparent;
  backdrop-filter: none;
  transition: var(--transition);
  padding: 1rem 0;
  width: 100%;
  left: 0;
  right: 0;
}

.navbar.scrolled {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: white !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
}

/* ===== SECTION FIXES ===== */
section {
  width: 100%;
  position: relative;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Sin padding para ocupar todo el viewport */
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.2));
  z-index: 1;
}

.z-index-1 {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 100%;
  padding: 0; /* Sin padding extra */
  transform: translateY(-10%); /* Mover ligeramente hacia arriba */
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-stats {
  margin: 1.5rem 0; /* Reducido de 2rem a 1.5rem */
}

.stat-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-item h4 {
  color: white;
  font-weight: 700;
  margin: 0.25rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 1.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
}

.stat-item i {
  font-size: 1.5rem !important;
  margin-bottom: 0.5rem !important;
}

.hero-cta {
  margin-bottom: 1.5rem; /* Reducido de 2rem a 1.5rem */
}

.hero-cta .btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 1rem 2rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-cta .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-indicator a {
  display: block;
  transition: var(--transition);
  color: white;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-indicator a:hover {
  transform: translateY(-5px);
  color: var(--accent-color);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* ===== VIDEO SECTION ===== */
.video-container {
  position: relative;
}

.video-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.3;
}

/* ===== AGENDA CARDS ===== */
.agenda-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.agenda-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.agenda-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 1.5rem;
  position: relative;
}

.agenda-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.agenda-content {
  padding: 1.5rem;
}

.agenda-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.agenda-item:last-child {
  border-bottom: none;
}

.agenda-item:hover {
  background: var(--gray-100);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== SPEAKER CARDS ===== */
.speaker-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.speaker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.speaker-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.speaker-image {
  position: relative;
  display: inline-block;
}

.speaker-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--gray-200);
  transition: var(--transition);
}

.speaker-card:hover .speaker-img {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.speaker-social {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: var(--transition);
}

.speaker-card:hover .speaker-social {
  opacity: 1;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin: 0 0.25rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.speaker-bio {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* ===== REGISTRATION FORM ===== */
.registration-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control, .form-select {
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
  color: white;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.btn-light {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-light:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

/* ===== FORM VALIDATION ===== */
.form-control.is-invalid {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--danger-color);
}

.alert {
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.alert-info {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray-900);
  color: white;
}

footer h5, footer h6 {
  color: white !important;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
}

footer ul li a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: var(--transition);
}

footer ul li a:hover {
  color: var(--accent-color) !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--gray-700);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: var(--transition);
  color: white;
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  color: white;
}

footer a {
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-color) !important;
}

/* ===== UTILITIES ===== */
.text-primary {
  color: var(--primary-color) !important;
}

.text-light {
  color: var(--light-color) !important;
}

.text-muted {
  color: var(--dark-color) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

.badge {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* ===== MODAL STYLES ===== */
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--box-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  opacity: 0.5;
  transition: var(--transition);
}

.btn-close:hover {
  opacity: 1;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
    padding-right: 0.5rem;
    max-width: 60vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar-toggler {
    margin-right: 0;
    position: relative;
    z-index: 1051;
  }
  .navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .hero-content {
    padding-top: 2.5rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
    max-width: 55vw;
  }
  .hero-title {
    font-size: 1.5rem;
    word-break: break-word;
  }
  .hero-content {
    padding-top: 3.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero-cta,
  .scroll-indicator,
  footer {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-title {
    color: black !important;
  }
}
