/* ==========================================
   CIBERSEGURIDAD 101 — EXACT MOCKUP MATCH v2
   ========================================== */

/* ---------- CSS Variables (Premium Light Mode) ---------- */
:root {
  --color-bg: #ffffff;             /* Pure white canvas */
  --color-bg-alt: #fffbfb;         /* Beautiful soft rose-tinted off-white */
  --color-bg-dark: #f8fafc;        /* Clean cool slate-gray */
  --color-primary: #E8000B;        /* Crimson Red */
  --color-primary-glow: rgba(232, 0, 11, 0.04);
  --color-text: #0f172a;           /* Deep dark slate for maximum readability */
  --color-text-muted: #475569;     /* Slate gray for secondary text */
  --color-border: rgba(232, 0, 11, 0.12); /* Soft crimson border */
  --color-blue-dark: #E8000B;      /* Redirection: step icons must be red */

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius: 12px;                  /* More organic rounded corners */
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(232, 0, 11, 0.04);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.07), 0 4px 20px rgba(232, 0, 11, 0.05);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.11), 0 8px 30px rgba(232, 0, 11, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: 0; /* Hero sits at the absolute top; navbar slides in on scroll */
}

/* Scroll Offset for anchored sections to prevent navbar overlap */
section[id] {
  scroll-margin-top: 100px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- TOP STICKY NAVBAR ---------- */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Premium weightless transition using custom curves and hardware acceleration */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  padding: 12px 0; /* Compact padding from the start */
  background: rgba(255, 255, 255, 0.96); /* Elegant persistent light background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 0, 11, 0.1);
  box-shadow: 0 10px 30px rgba(232, 0, 11, 0.04);
  
  /* Initial hidden state when at the top of the landing page */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-bar.scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Logos inside navigation must always have the filter since navbar is always light */
.nav-logo-uba,
.nav-logo-bastion {
  filter: brightness(0.1) contrast(1.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 20px; /* Slightly wider premium gap */
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-bar.scrolled .nav-logos {
  opacity: 1;
  transform: translateX(0);
}

.nav-logo-uba {
  height: 45px; /* Shrunk from 60px */
  object-fit: contain;
  transition: all 0.3s ease;
}

.nav-logo-bastion {
  height: 32px; /* Shrunk from 40px */
  object-fit: contain;
  transition: all 0.3s ease;
}

.nav-logo-fgu {
  height: 32px; /* Consistent height for the new FGU logo */
  object-fit: contain;
  transition: all 0.3s ease;
  filter: brightness(0) !important; /* Force FGU transparent logo to black in white navbar */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0 auto 0 40px; /* Shift to left side but leave margin */
  padding: 0;
  transition: all 0.4s ease;
}

.nav-bar.scrolled .nav-links {
  margin: 0 auto; /* Center when scrolled */
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7); /* Readable slate text in light mode */
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--color-primary); /* Crimson Red */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-cta {
  opacity: 1; /* Always visible from the start */
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta .btn-sm {
  padding: 10px 22px; /* Marginally larger for better presence and hit target */
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Eye-catching premium animation for the Inscripción button */
.nav-cta .btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(232, 0, 11, 0.3);
  animation: pulse-glow 2.5s infinite ease-in-out;
  z-index: 1;
}

/* Hover scales up and enhances glow */
.nav-cta .btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(232, 0, 11, 0.6);
  background-color: #d1000a;
}

/* Glossy sweep shine effect */
.nav-cta .btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmer-sweep 4s infinite ease-in-out;
  z-index: 2;
}

/* Pulse Glow Keyframes */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 4px 12px rgba(232, 0, 11, 0.3), 0 0 0 0px rgba(232, 0, 11, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(232, 0, 11, 0.5), 0 0 0 6px rgba(232, 0, 11, 0.2);
  }
  100% {
    box-shadow: 0 4px 12px rgba(232, 0, 11, 0.3), 0 0 0 10px rgba(232, 0, 11, 0);
  }
}

/* Shimmer Sweep Keyframes */
@keyframes shimmer-sweep {
  0% {
    left: -70%;
  }
  20% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-primary { color: var(--color-primary); }
.text-white-bold { font-weight: 800; color: #ffffff; }
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-red {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-red:hover { 
  background-color: #c40009; 
  box-shadow: 0 0 15px rgba(232, 0, 11, 0.4);
  transform: translateY(-2px);
}

.btn-green {
  background-color: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-green:hover { 
  background-color: #128C7E; 
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: 8px; }
.btn-block { width: 100%; display: block; }

/* ==========================================
   1. HERO SECTION (Light Premium Full Width)
   ========================================== */
.hero-section {
  background-color: #000000; /* Black fallback for a dark premium look */
  background-image: url('public/img/santi/Nueva%20IMG%20Hero%20Section.png');
  background-size: cover; /* cover is perfect for the new background sizing */
  background-position: right center; /* Focus on the person and center of operations on the right */
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  min-height: 650px;
  position: relative;
  perspective: 1000px;
}

@media (min-width: 1025px) {
  .hero-section {
    zoom: 0.8; /* Applies the 80% zoom effect exclusively to the Hero Section on desktop */
    min-height: 812px; /* Compensates height so visual height is exactly 650px (812px * 0.8) */
  }
}

/* Accreditation logos bottom right of Hero */
.hero-right-logos {
  position: absolute;
  bottom: 50px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 30px; /* Marginally wider gap for larger logos */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.hero-right-logos:hover {
  transform: translateY(-5px);
}

.hero-logo-cel {
  height: 52px; /* Increased from 35px */
  width: auto;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.2); /* Pop on dark bg */
  transition: transform 0.3s ease;
}

.hero-logo-fgu-bottom {
  height: 78px; /* Increased from 58px to make it visibly larger and balanced */
  width: auto;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.2); /* Pop on dark bg */
  transition: transform 0.3s ease;
}

.hero-logo-cel:hover,
.hero-logo-fgu-bottom:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-right-logos {
    position: static;
    margin-top: 30px;
    justify-content: center;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
  }
  .hero-logo-cel {
    height: 40px; /* Slightly smaller for mobile screens */
  }
  .hero-logo-fgu-bottom {
    height: 58px; /* Increased for mobile screens */
  }
}
}

@media (max-width: 1024px) {
  .hero-section {
    background-size: cover; /* Fallback to cover on tablets and mobiles to fill composition correctly */
  }
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Reduced from 280px to make the gradient much narrower */
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.header {
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.header-logos {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.logo-uba { height: 90px; object-fit: contain; filter: none; transition: filter 0.3s ease; }
.logo-bastion { height: 65px; object-fit: contain; filter: none; transition: filter 0.3s ease; }
.logo-fgu { height: 65px; object-fit: contain; filter: none; transition: filter 0.3s ease; }

/* Antigravity Design Additions */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 0, 11, 0.12);
  box-shadow: 0 20px 40px rgba(232, 0, 11, 0.05);
  border-radius: 16px;
  padding: 12px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  will-change: transform, box-shadow;
}

.glass-effect:hover {
  transform: translateY(-8px) scale(1.05) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 30px 60px rgba(232, 0, 11, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.float-effect {
  animation: float-anim 6s ease-in-out infinite;
}

@keyframes float-anim {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.hero-logo-2 {
  width: 95px;
  height: auto;
  align-self: center;
}

.hero-content-container {
  padding: 60px 20px 100px;
  position: relative;
  z-index: 10;
  display: flex;
}

.hero-left {
  max-width: 600px;
  color: #ffffff;
}

.badge-online {
  background-color: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title-group {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.shield-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  color: var(--color-text);
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 400;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 5px;
  margin-top: 15px;
}

.hero-subtitle-2 {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   2. BENEFITS & FORM SECTION
   ========================================== */
.benefits-form-section {
  background-color: var(--color-bg);
  padding: 80px 0 100px 0; /* Clean top padding to bring the second section up closer */
  position: relative;
  z-index: 2;
}

.benefits-form-section .container {
  position: relative;
  z-index: 2;
}

/* --- Benefits Cards Grid Layout --- */
.benefits-registry-wrapper {
  max-width: 1140px;
  margin: 0 auto;
}

.benefits-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for card grid, centered */
  gap: 20px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid rgba(232, 0, 11, 0.05);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 2px 10px rgba(232, 0, 11, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 4px 15px rgba(232, 0, 11, 0.04);
  border-color: rgba(232, 0, 11, 0.18);
}

.benefit-card-icon {
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(232, 0, 11, 0.15));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.benefit-card-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

.benefit-card-subtext {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}

.benefit-price-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 3px 10px;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 6px;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(232, 0, 11, 0.25);
  letter-spacing: 0.5px;
}

.benefits-form-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.benefits-form-wrapper .form-container {
  width: 100%; /* Fill the column */
  max-width: 400px;
  background: #ffffff;
  border: 1px solid rgba(232, 0, 11, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(232, 0, 11, 0.02);
}

/* The Form */
.form-container {
  width: 380px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  border: 1px solid rgba(232, 0, 11, 0.15);
  position: relative;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-subtitle {
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(232, 0, 11, 0.2);
  background: #fff;
}

.phone-input {
  display: flex;
}

.phone-input .flag {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-right: none;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 0 0 6px;
  font-size: 1.15rem;
  color: var(--color-text);
  white-space: nowrap;
  gap: 6px;
}

.phone-input input {
  border-radius: 0 6px 6px 0;
}

.form-group-checkbox {
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 26px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input {
  position: absolute; opacity: 0; cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 2px; left: 0;
  height: 16px; width: 16px;
  background-color: #fff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
  background-color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.3);
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-label input:checked ~ .checkmark:after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label a { color: var(--color-primary); text-decoration: underline; }

.form-note {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 15px;
}

/* ==========================================
   3. MENTOR SECTION
   ========================================== */
.mentor-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 15%, var(--color-bg-alt) 85%, var(--color-bg) 100%);
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-pretitle {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.2;
  color: var(--color-text);
}

.mentor-grid {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.mentor-left {
  flex: 1;
  max-width: 400px;
}

.mentor-tabs {
  display: flex;
  flex-direction: column;
}

.tab-btn {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
  color: var(--color-primary);
  border-color: rgba(232, 0, 11, 0.3);
  background: rgba(232, 0, 11, 0.02);
  transform: translateX(5px);
}

.tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(232, 0, 11, 0.3);
  transform: translateX(8px);
}

.mentor-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mentor-image {
  width: 260px;
  height: 260px;
  border-radius: 50%; /* Perfect circular shape */
  overflow: hidden;
  margin-bottom: 25px; /* Added spacing before bio card */
  position: relative;
  z-index: 2;
  border: 4px solid #ffffff; /* Premium white border */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(232, 0, 11, 0.04);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mentor-image:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(232, 0, 11, 0.06);
}

.mentor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Always grayscale/black and white */
}

/* Daniel Joa's portrait photo needs cover to perfectly fill the circular frame */
.mentor-image img[src*="daniel-joa"] {
  object-fit: cover;
  object-position: center 15%; /* Calibrated to center the head perfectly inside the circle */
  background-color: #e5e7eb; /* Soft neutral gray matching the B&W look */
}

.mentor-bio {
  background: #fff;
  border: 1px solid rgba(232, 0, 11, 0.1);
  padding: 40px;
  border-radius: 16px; /* Complete rounded corners for separate card look */
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 4px 20px rgba(232, 0, 11, 0.05);
  position: relative;
}

.mentor-name {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.mentor-bio ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.mentor-bio ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.mentor-bio ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ==========================================
   4. MODULES SECTION
   ========================================== */
.modules-section {
  background-color: var(--color-bg);
  padding: 100px 0;
}

.modules-accordion {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 991px) {
  .modules-accordion {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.module-card {
  background: #ffffff;
  border: 1px solid rgba(232, 0, 11, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 4px 15px rgba(232, 0, 11, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  opacity: 0.8;
  z-index: 5;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 0, 11, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(232, 0, 11, 0.04);
}

.module-card-header {
  padding: 30px 30px 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: text;
}

.module-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.35;
}

.module-card-content {
  max-height: none !important;
  overflow: visible !important;
}

.module-card-content-inner {
  padding: 0 30px 30px 30px;
}

.module-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid rgba(232, 0, 11, 0.2);
  padding-left: 15px;
}

.module-card ul {
  list-style: none;
  padding-left: 0;
}

.module-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.module-card ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 6px rgba(232, 0, 11, 0.45);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.module-card ul li:hover {
  color: var(--color-text);
}

.module-card ul li:hover::before {
  transform: scale(1.3);
  background-color: #d1000a;
}

.module-card ul li strong {
  color: var(--color-text);
  font-weight: 700;
  margin-right: 4px;
}

.modules-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  max-width: 900px;
  margin: 40px auto 0;
}

/* Premium Antigravity Design Brochure Button styling */
.btn-brochure {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 16px 40px !important; /* Premium capsule layout size */
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  background: var(--color-primary) !important; /* Identical solid red to match standard buttons */
  border-radius: var(--radius) !important; /* Identical corners to match other buttons */
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 25px rgba(232, 0, 11, 0.25), 
              0 20px 50px rgba(232, 0, 11, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, box-shadow;
  animation: pulse-glow-brochure 3s infinite ease-in-out !important;
  z-index: 1;
}

.btn-brochure .btn-icon {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-brochure:hover {
  transform: translateY(-4px) scale(1.04) !important;
  background: #c40009 !important; /* Matches standard button hover solid color */
  box-shadow: 0 15px 35px rgba(232, 0, 11, 0.35), 
              0 30px 70px rgba(232, 0, 11, 0.25), 
              inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-brochure:hover .btn-icon {
  transform: translateY(3px); /* Subtle downward bounce of the download arrow indicating action */
}

.btn-brochure:active {
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: 0 5px 15px rgba(232, 0, 11, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Glossy sheen sweep overlay */
.btn-brochure::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmer-sweep 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

@keyframes pulse-glow-brochure {
  0% {
    box-shadow: 0 10px 25px rgba(232, 0, 11, 0.25), 0 20px 50px rgba(232, 0, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 0px rgba(232, 0, 11, 0.3);
  }
  50% {
    box-shadow: 0 12px 30px rgba(232, 0, 11, 0.35), 0 25px 55px rgba(232, 0, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 10px rgba(232, 0, 11, 0);
  }
  100% {
    box-shadow: 0 10px 25px rgba(232, 0, 11, 0.25), 0 20px 50px rgba(232, 0, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 15px rgba(232, 0, 11, 0);
  }
}

/* ==========================================
   5. POR QUÉ REALIZAR (WHY SECTION)
   ========================================== */
.why-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 15%, var(--color-bg-alt) 85%, var(--color-bg) 100%);
  padding: 80px 0;
}

.why-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.why-box {
  background: #ffffff;
  border: 1px solid rgba(232, 0, 11, 0.08);
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 4px 20px rgba(232, 0, 11, 0.05);
}

.why-box ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.why-box ul li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.why-box ul li strong {
  color: var(--color-text);
}

.why-red-text {
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
  margin-top: 30px;
  font-size: 0.95rem;
}

/* ==========================================
   6. ADMISSION PROCESS (REDESIGNED)
   ========================================== */
.admission-section {
  background-color: var(--color-bg);
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.admission-header {
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.admission-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.admission-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.step-card {
  background: #ffffff;
  border: 1px solid rgba(232, 0, 11, 0.06);
  border-radius: 20px;
  padding: 45px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 2px 10px rgba(232, 0, 11, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, border-color;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 0, 11, 0.22);
  box-shadow: 0 20px 45px rgba(232, 0, 11, 0.07), 0 4px 15px rgba(232, 0, 11, 0.04);
}

.step-card-icon-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: rgba(232, 0, 11, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  color: var(--color-primary);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 10px rgba(232, 0, 11, 0.1));
}

.step-card:hover .step-card-icon-wrapper {
  transform: scale(1.1);
  background-color: var(--color-primary);
  color: #ffffff;
  filter: drop-shadow(0 8px 20px rgba(232, 0, 11, 0.3));
}

.step-card-icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.2px;
}

.step-card-badge {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.step-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.step-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.admission-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .admission-steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .step-card {
    padding: 35px 25px;
  }

  .admission-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .admission-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================
   7. FAQ (Manejado por el sistema de optimizaciones al final)
   ========================================== */

/* ==========================================
   8. UBA BANNER
   ========================================== */
.uba-banner-section {
  background-color: var(--color-bg);
  padding: 60px 0;
}

.uba-banner-box {
  background: #07192e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(7, 25, 46, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.uba-banner-content {
  flex: 1;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.uba-banner-pre {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 20px;
}

.uba-banner-main {
  background: rgba(4, 15, 30, 0.85); /* Deep premium UBA blue card */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  max-width: 350px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.comienza-text {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.discount-text {
  color: var(--color-primary);
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(232, 0, 11, 0.15);
}

.discount-sub {
  font-size: 1.2rem;
  color: #ffffff;
}

.en-tus-cuotas {
  margin: 15px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cuotas-badge {
  background: var(--color-primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(232, 0, 11, 0.35);
}

.valido-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 15px;
}

.uba-banner-interactive-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  overflow: visible;
}

.uba-banner-pointing-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.uba-banner-pointing-logo img {
  height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 45px rgba(255, 255, 255, 0.25));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.uba-banner-pointing-logo img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 20px 55px rgba(255, 255, 255, 0.4));
}

/* ==========================================
   9. AODD VIDEO & FINAL FORM
   ========================================== */
.aodd-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 20%, var(--color-bg-alt) 80%, var(--color-bg) 100%);
  padding: 100px 0;
}

.aodd-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text);
}

.aodd-video {
  max-width: 800px;
  margin: 0 auto 60px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232, 0, 11, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.aodd-video img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.aodd-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(232, 0, 11, 0.06);
}

.final-form-box-wrapper {
  background: #ffffff;
  border: 1px solid rgba(232, 0, 11, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.final-form-image {
  flex: 1.2;
  display: block;
  border-radius: 16px;
  overflow: hidden;
}

.final-form-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
}

.final-form-container {
  flex: 1;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* ==========================================
   10. FOOTER
   ========================================== */
.footer {
  background: #fff8f8;
  color: var(--color-text);
  padding: 40px 0;
  border-top: 1px solid rgba(232, 0, 11, 0.12);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 130px; /* Enlarged from 60px for more prominence */
  filter: brightness(0.1) contrast(1.2);
}

.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-contact p, .footer-links a, .footer-links p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-floating {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fab:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #c40009 !important;
  box-shadow: 0 0 15px rgba(232, 0, 11, 0.6) !important;
}

.fab-orange {
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.fab-green {
  background: #E8000B;
  box-shadow: 0 0 12px rgba(232, 0, 11, 0.35);
}

.fab-instagram {
  background: #E8000B;
  box-shadow: 0 0 12px rgba(232, 0, 11, 0.35);
}

/* ---------- SCROLL REVEAL ANIMATION (Antigravity Vibe) ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.scroll-reveal.active-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   DIPLOMADO EN CIBERSEGURIDAD — OPTIMIZACIONES UX/UI
   ========================================== */

/* 1. HERO CTA BUTTON OPTIMIZATION */
.hero-cta-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(232, 0, 11, 0.4);
  animation: pulse-glow 3s infinite ease-in-out;
  z-index: 1;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(232, 0, 11, 0.7);
  background-color: #d1000a;
}

.hero-cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmer-sweep 3.5s infinite ease-in-out;
  z-index: 2;
}

/* 2. FAQ ACCORDION PANEL SYSTEM */
.faq-section {
  background-color: var(--color-bg-dark);
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(232, 0, 11, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01), 0 0 10px rgba(232, 0, 11, 0.01);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
  border-color: rgba(232, 0, 11, 0.2);
  box-shadow: 0 12px 30px rgba(232, 0, 11, 0.04);
}

.faq-item.open {
  border-color: rgba(232, 0, 11, 0.3);
  box-shadow: 0 15px 35px rgba(232, 0, 11, 0.08);
  background-color: #fffdfd;
}

.faq-question {
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  gap: 15px;
  transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
  color: var(--color-primary);
}

.faq-item.open .faq-question {
  color: var(--color-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: rgba(232, 0, 11, 0.05);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  background: var(--color-primary);
  color: #ffffff;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(232, 0, 11, 0.25);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 25px;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 25px 25px 25px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* 3. DYNAMIC MENTOR TABS TRANSITIONS */
.mentor-image img,
.mentor-bio {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.mentor-image img.fade-out,
.mentor-bio.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-content-container, .form-benefits-container, .mentor-grid, .admission-top, .uba-banner-box, .final-form-box-wrapper {
    flex-direction: column;
  }
  .hero-content-container {
    padding: 40px 20px 60px;
  }
  .hero-left {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
  }
  .benefits-registry-wrapper {
    max-width: 800px;
    margin: 0 auto;
  }
  .benefits-cards-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
  }
  .final-form-box-wrapper {
    padding: 35px 20px;
    gap: 30px;
    align-items: center;
  }
  .final-form-image {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .form-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  .uba-banner-box {
    padding: 40px 20px;
    align-items: center;
    text-align: center;
  }
  .uba-banner-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 20px 0;
  }
  .uba-banner-main {
    max-width: 100%;
    width: 100%;
  }
  .uba-banner-interactive-area {
    width: 100%;
    min-height: 320px;
    height: auto;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .uba-banner-pointing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .uba-banner-pointing-logo img {
    height: 280px;
  }
  .steps-container {
    flex-direction: column;
    gap: 20px;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .footer-floating {
    flex-direction: row;
  }
  .mentor-left {
    max-width: 100%;
    width: 100%;
  }
  .mentor-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .tab-btn {
    text-align: center;
    margin-bottom: 0;
  }
  .tab-btn.active, .tab-btn:hover {
    transform: none;
  }
}
@media (max-width: 768px) {
  .nav-bar {
    padding: 10px 0;
  }
  .nav-links {
    margin: 0;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    width: 100%;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  .nav-cta {
    display: none; /* Hide button on mobile navbar to save space */
  }
  body {
    padding-top: 0; /* Hero sits at the absolute top on mobile as well */
  }
  
  /* Prevent Header logo clipping and oversized layouts on small screens */
  .logo-uba {
    height: 60px !important;
  }
  .logo-bastion {
    height: 40px !important;
  }
  .logo-fgu {
    height: 40px !important;
  }
  .header-logos {
    gap: 20px;
    justify-content: center; /* Center header logos on mobile for clean symmetry */
    width: 100%;
  }

  /* Dark Overlay tint to ensure maximum text readability over operation room background on mobile */
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
  }
  
  .header, .hero-content-container {
    position: relative;
    z-index: 2;
  }

  /* Compact padding for mentor bio card on mobile to save space */
  .mentor-bio {
    padding: 20px !important;
  }
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.0rem; /* Marginally smaller for small mobile screens to prevent text wrap issues */
  }
  .hero-subtitle, .hero-subtitle-2 {
    font-size: 1.0rem; /* Scale down hero subtitle sizes */
  }
  .hero-logo-2 {
    width: 75px; /* Scale down UBA shield logo inside Hero title for balance */
  }
  .benefits-cards-grid {
    grid-template-columns: 1fr;
  }
  .modules-accordion { /* Fixed from modules-grid typo to modules-accordion */
    grid-template-columns: 1fr;
  }
  .uba-banner-interactive-area {
    min-height: 240px;
    height: auto;
  }
  .uba-banner-pointing-logo img {
    height: 200px;
  }
  
  /* Make admission CTA buttons stack vertically on tiny mobile screens to avoid text truncation */
  .admission-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .admission-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Premium Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 450px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 5px solid #25D366;
}

.toast-error {
  border-left: 5px solid #E8000B;
}

.toast-info {
  border-left: 5px solid #0056b3;
}

.toast-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
  font-family: var(--font-heading);
}

.toast-message {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: color 0.3s ease;
  line-height: 1;
}

.toast-close:hover {
  color: #ffffff;
}

/* loading spinner for buttons */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: button-spinner 0.6s linear infinite;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 500px) {
  .toast-container {
    top: 20px;
    right: 20px;
    left: 20px;
    width: auto;
  }
  .toast {
    min-width: 100%;
    max-width: 100%;
  }
}

