/* ==========================================================================
   UNIVERSIDAD DEL TEQUILA — A/B REDESIGN V2 (BRAND GLASSMORPHISM SYSTEM)
   Adopted Tokens: Liquid Glass / Institutional Navy (#002b4b) + Caliza (#ede4d3) + 3D Gold Logo
   ========================================================================== */

:root {
  /* Official Universidad del Tequila Legacy Color Palette */
  --udt-principal: #002b4b;       /* Principal Color (PANTONE 7463 C) */
  --udt-support: #003a70;         /* Support Accent (PANTONE 654 C) */
  --udt-secondary: #6d6e70;       /* Secondary Color (PANTONE Gris Black C) */
  --udt-sec-support: #d0d0ce;     /* Secondary Support Accent (PANTONE Cool Gray 2 C) */
  --udt-white: #ffffff;
  
  --udt-blue-primary: var(--udt-principal);
  --udt-blue-secondary: var(--udt-support);

  /* Legacy Mapped Accent Tokens */
  --accent-gold: var(--udt-support);
  --accent-gold-light: var(--udt-sec-support);
  
  --udt-font-sans: 'Poppins', sans-serif;
  --udt-font-serif: 'Lora', serif;
  --udt-radius: 16px;
  --udt-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Liquid Glass Core Formula */
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(0, 43, 75, 0.82);
  --glass-border-light: rgba(208, 208, 206, 0.4);
  --glass-border-dark: rgba(0, 58, 112, 0.45);
  --glass-blur: 20px;
  --glass-shadow: 0 12px 40px rgba(0, 43, 75, 0.25);
  
  --logo-badge-size: 100px;
  --logo-hover-scale: 1.06;
  --logo-shine-duration: 4.5s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #001830;
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 58, 112, 0.6) 0%, rgba(0, 20, 38, 0.95) 75%);
  color: var(--udt-white);
  font-family: var(--udt-font-sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Image with Deep Institutional Navy Ambient Overlay */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('bg_agave.png'), url('assets/img/background.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(0.65) contrast(1.15);
  transform: scale(1.04);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.background-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 24, 48, 0.82) 0%, rgba(0, 43, 75, 0.75) 45%, rgba(0, 18, 36, 0.92) 100%);
  pointer-events: none;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem 1.5rem;
}

/* ==========================================================================
   TOP URGENCY ANNOUNCEMENT BANNER
   ========================================================================== */
.v2-top-announcement-bar {
  background: linear-gradient(90deg, #001f38 0%, #003a70 50%, #001f38 100%);
  border-bottom: 1px solid rgba(208, 208, 206, 0.3);
  color: #ffffff;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 1001;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 43, 75, 0.35);
}

.v2-announcement-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.v2-announcement-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.v2-urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  border: 1px solid rgba(208, 208, 206, 0.35);
}

.v2-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: v2-wa-pulse 1.8s infinite;
}

@keyframes v2-wa-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.v2-announcement-text {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

.v2-announcement-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v2-wa-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #001830;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.v2-wa-banner-btn:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  color: #000000;
}

.v2-announcement-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.v2-announcement-close:hover {
  color: #ffffff;
}

.v2-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v2-section {
  padding: 5rem 0;
}

/* Section Header Utility */
.v2-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.v2-section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold-light);
  background: rgba(0, 43, 75, 0.8);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.v2-section-title {
  font-family: var(--udt-font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.v2-section-desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ==========================================================================
   TOP NAVIGATION & 3D GOLD LOGO BADGE
   ========================================================================== */
.glass-nav {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--glass-shadow);
  transition: var(--udt-transition);
  color: var(--udt-white);
  position: fixed;
  top: 36px; /* Increased top margin so logo badge hangs with breathing room above */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1320px;
  z-index: 1000;
  border-radius: 50px; /* Elegant pill header shape */
  padding: 0.6rem 1.6rem 0.6rem 1.2rem;
  opacity: 0;
  animation: pageLoadScaleFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

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

.logo-wrapper {
  position: relative;
  min-width: 270px;
  height: 48px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-glass-badge {
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  width: var(--logo-badge-size);
  height: var(--logo-badge-size);
  background: rgba(0, 43, 75, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50%;
  border: 1px solid rgba(208, 208, 206, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.logo-glass-badge:hover {
  transform: translateY(-50%) scale(var(--logo-hover-scale));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.header-logo-gold {
  position: relative;
  width: calc(var(--logo-badge-size) * 1.12);
  height: calc(var(--logo-badge-size) * 1.12);
  background: #ffffff;
  -webkit-mask: url('presentation/logo_udeltequila.png') no-repeat center center;
  mask: url('presentation/logo_udeltequila.png') no-repeat center center;
  -webkit-mask-size: contain;
  mask-size: contain;
  overflow: hidden;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.header-logo-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: skewX(-25deg);
  animation: shine var(--logo-shine-duration) infinite;
}

@keyframes shine {
  0% { left: -100%; }
  15% { left: 200%; }
  100% { left: 200%; }
}

.v2-brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 108px; /* Clean margin preventing overlap with the badge */
  white-space: nowrap;
}

.v2-brand-name {
  font-family: var(--udt-font-sans);
  font-weight: 700;
  font-size: 1.02rem;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.brand-motto {
  font-family: var(--udt-font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--accent-gold-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

.v2-nav-icon {
  color: var(--accent-gold-light);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover .v2-nav-icon,
.nav-link.active .v2-nav-icon {
  color: #ffffff;
  transform: scale(1.18);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-toggle {
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 3px 6px;
  border-radius: 50px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--udt-transition);
  display: flex;
  align-items: center;
}

.lang-btn.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

.lang-btn img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.btn-primary {
  font-family: var(--udt-font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--udt-white);
  background: rgba(0, 43, 75, 0.85);
  border: 1px solid rgba(234, 199, 117, 0.4);
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: var(--udt-transition);
  box-shadow: 0 4px 15px rgba(0, 43, 75, 0.2);
}

.btn-primary:hover {
  background: rgba(0, 58, 112, 0.95);
  border-color: var(--accent-gold-light);
  box-shadow: 0 6px 22px rgba(0, 58, 112, 0.4);
  transform: translateY(-2px);
}

.btn-immersive {
  font-family: var(--udt-font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--udt-white);
  background: linear-gradient(135deg, rgba(0, 43, 75, 0.9) 0%, rgba(0, 58, 112, 0.9) 100%);
  border: 1px solid var(--accent-gold);
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--udt-transition);
  box-shadow: 0 6px 20px rgba(0, 43, 75, 0.3);
  animation: immersive-pulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.btn-immersive:hover {
  background: rgba(0, 58, 112, 1);
  box-shadow: 0 12px 30px rgba(0, 43, 75, 0.6);
  transform: scale(1.04);
}

@keyframes immersive-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 58, 112, 0.7); }
  10% { transform: scale(1.03) rotate(-1deg); }
  15% { transform: scale(1.03) rotate(1deg); }
  20% { transform: scale(1.03) rotate(0deg); box-shadow: 0 0 0 18px rgba(0, 58, 112, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 58, 112, 0); }
}

@keyframes pageLoadScaleFade {
  0% { opacity: 0; transform: translateX(-50%) scale(0.96); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* ==========================================================================
   LIQUID GLASS CONTAINER REUSABLE STYLES
   ========================================================================== */
.hero-glass-card {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--udt-radius);
  box-shadow: var(--glass-shadow);
  color: var(--udt-white);
  transition: var(--udt-transition);
}

.hero-glass-card:hover {
  border-color: rgba(201, 162, 75, 0.4);
  box-shadow: 0 16px 45px rgba(0, 43, 75, 0.35);
}

/* ==========================================================================
   1. HERO SECTION & VIDEO CONTAINER
   ========================================================================== */
.v2-hero-section {
  position: relative;
  min-height: 85vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
}

.v2-hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.v2-hero-content {
  background: rgba(0, 30, 55, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 199, 117, 0.3);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.v2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 43, 75, 0.9);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Big Hero White Logo - Premium Highlighted Experience */
.v2-hero-logo-wrapper {
  margin: 0.6rem auto 0.4rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  padding: 0.8rem 0;
}

/* Pulsing Radial Glow Pedestal behind Logo */
.v2-hero-logo-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(0, 58, 112, 0.45) 0%, rgba(208, 208, 206, 0.15) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(15px);
  animation: hero-logo-aura-pulse 4s ease-in-out infinite alternate;
}

@keyframes hero-logo-aura-pulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

.v2-hero-white-logo {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 225px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 50%, #ffffff 100%);
  -webkit-mask: url('presentation/logo_udeltequila.png') no-repeat center center;
  mask: url('presentation/logo_udeltequila.png') no-repeat center center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  overflow: hidden;
  cursor: pointer;
}

/* Dynamic Metallic Shimmer Sweep across the Logo */
.v2-hero-white-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: hero-logo-shimmer 5s ease-in-out infinite;
}

@keyframes hero-logo-shimmer {
  0%, 75% { left: -120%; }
  100% { left: 160%; }
}

.v2-hero-white-logo:hover {
  transform: scale(1.05) translateY(-3px);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.65)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.85));
}

.v2-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.v2-hero-title {
  font-family: var(--udt-font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  letter-spacing: -0.5px;
}

.v2-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 620px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.v2-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.v2-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(234, 199, 117, 0.25);
}

.v2-stat-item {
  display: flex;
  flex-direction: column;
}

.v2-stat-num {
  font-family: var(--udt-font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.v2-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 130px;
  line-height: 1.35;
}

.v2-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(234, 199, 117, 0.3);
}

/* HERO VIDEO CONTAINER (Replaces Static Photo) */
.v2-visual-card {
  position: relative;
  padding: 0.6rem;
}

.v2-hero-video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--udt-radius) - 4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.v2-visual-floating-badge {
  display: none !important;
}

.v2-badge-icon { font-size: 1.8rem; }
.v2-badge-info strong { color: #ffffff; font-size: 0.92rem; display: block; }
.v2-badge-info span { color: var(--accent-gold-light); font-size: 0.78rem; }

/* ==========================================================================
   2. WHY SECTION & LIGHT GLASS CARDS
   ========================================================================== */
.v2-why-section {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 243, 246, 0.96) 100%), url('assets/img/agave_field.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(0, 58, 112, 0.25);
  border-bottom: 1px solid rgba(0, 58, 112, 0.25);
  color: var(--udt-principal);
}

.v2-why-section .v2-section-kicker {
  background: rgba(0, 43, 75, 0.08);
  border: 1px solid rgba(0, 43, 75, 0.2);
  color: var(--udt-principal);
}

.v2-why-section .v2-section-title {
  color: var(--udt-principal);
  text-shadow: none;
}

.v2-why-section .v2-section-desc {
  color: var(--udt-secondary);
  text-shadow: none;
}

.v2-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.v2-why-card {
  padding: 2.2rem 1.6rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 58, 112, 0.15);
  box-shadow: 0 10px 30px rgba(0, 43, 75, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.v2-why-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--udt-support);
  box-shadow: 0 16px 40px rgba(0, 43, 75, 0.16), 0 0 25px rgba(0, 58, 112, 0.25);
  transform: translateY(-6px);
}

.v2-why-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--udt-support);
  filter: drop-shadow(0 2px 8px rgba(0, 43, 75, 0.15));
}

.v2-why-card h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--udt-principal);
  margin-bottom: 0.6rem;
}

.v2-why-card p {
  font-size: 0.9rem;
  color: var(--udt-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   3. PROGRAM COMPARISON CARDS
   ========================================================================== */
.v2-mobile-tabs {
  display: none;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.v2-tab-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border-dark);
  background: var(--glass-bg-dark);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v2-tab-btn.active {
  background: rgba(0, 58, 112, 0.95);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.v2-programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.v2-program-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v2-card-ipba { border-top: 5px solid var(--udt-blue-secondary); }
.v2-card-laet { border-top: 5px solid var(--accent-gold); }

.v2-prog-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold-light);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.v2-program-header h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.v2-motto-quote {
  font-family: var(--udt-font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-gold-light);
  background: rgba(201, 162, 75, 0.12);
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.v2-prog-summary {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.v2-program-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.v2-feat-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-gold-light);
}

.v2-feat-val {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.v2-modules-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.v2-modules-list li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding-left: 1.3rem;
}

.v2-modules-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.v2-program-footer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.v2-btn-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--udt-transition);
}

.v2-btn-plan:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.v2-btn-apply-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   4. DETAILED CURRICULA (MALLAS CURRICULARES)
   ========================================================================== */
.v2-curriculum-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.v2-curr-btn {
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border-dark);
  background: var(--glass-bg-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--udt-transition);
}

.v2-curr-btn.active {
  background: rgba(0, 58, 112, 0.95);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 4px 20px rgba(0, 43, 75, 0.4);
}

.v2-curriculum-view { display: none; }
.v2-curriculum-view.active { display: block; }

.v2-terms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.v2-terms-4cols {
  grid-template-columns: repeat(4, 1fr);
}

.v2-term-card {
  padding: 1.2rem 1rem;
}

.v2-term-highlight {
  background: rgba(0, 58, 112, 0.85);
  border-color: var(--accent-gold);
}

.v2-term-title {
  font-family: var(--udt-font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-gold-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--accent-gold);
}

.v2-term-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.v2-term-card li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

/* ==========================================================================
   5. SCHOLARSHIPS & TUITION CALCULATOR
   ========================================================================== */
.v2-scholarship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.v2-scholar-card {
  padding: 2rem 1.5rem;
  position: relative;
}

.v2-scholar-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--udt-blue-primary);
  background: var(--accent-gold-light);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.v2-scholar-card h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin-bottom: 0.6rem;
}

.v2-scholar-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.v2-calc-box {
  padding: 2.5rem;
}

.v2-calc-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.v2-calc-header h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.v2-calc-header span {
  font-size: 0.95rem;
  color: var(--accent-gold-light);
}

.v2-calc-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.v2-calc-col {
  border-radius: var(--udt-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v2-col-regular {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.v2-col-discount {
  background: linear-gradient(135deg, rgba(0, 43, 75, 0.95) 0%, rgba(0, 58, 112, 0.95) 100%);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 43, 75, 0.4);
  position: relative;
}

.v2-best-val-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-gold);
  color: var(--udt-blue-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
}

.v2-calc-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.v2-price-tag {
  font-family: var(--udt-font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1.2rem;
  color: var(--accent-gold-light);
}

.v2-price-tag span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.v2-calc-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   6. SEDES Y RECEPCIÓN DE EXPEDIENTES (LIGHT GREY THEME)
   ========================================================================== */
.v2-campus-section {
  position: relative;
  background: linear-gradient(180deg, rgba(208, 208, 206, 0.92) 0%, rgba(240, 240, 238, 0.96) 100%), url('assets/img/hornos.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(109, 110, 113, 0.25);
  border-bottom: 1px solid rgba(109, 110, 113, 0.25);
  color: var(--udt-principal);
}

.v2-campus-section .v2-section-kicker {
  background: rgba(0, 43, 75, 0.08);
  border: 1px solid rgba(0, 43, 75, 0.2);
  color: var(--udt-principal);
}

.v2-campus-section .v2-section-title {
  color: var(--udt-principal);
  text-shadow: none;
}

.v2-campus-section .v2-section-desc {
  color: var(--udt-secondary);
  text-shadow: none;
}

.v2-campus-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.8rem;
}

.v2-campus-card {
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 58, 112, 0.18);
  box-shadow: 0 10px 30px rgba(0, 43, 75, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.v2-campus-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--udt-support);
  box-shadow: 0 16px 40px rgba(0, 43, 75, 0.16);
  transform: translateY(-6px);
}

.v2-campus-main {
  border: 2px solid var(--udt-support);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 35px rgba(0, 58, 112, 0.14);
}

.v2-campus-icon {
  font-size: 2.2rem;
  color: var(--udt-support);
  filter: drop-shadow(0 2px 8px rgba(0, 43, 75, 0.12));
}

.v2-campus-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: var(--udt-support);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  align-self: flex-start;
}

.v2-campus-card h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--udt-principal);
}

.v2-campus-card p {
  font-size: 0.9rem;
  color: var(--udt-secondary);
  line-height: 1.5;
}

.v2-campus-card p strong {
  color: var(--udt-principal);
}

.v2-campus-note {
  font-size: 0.78rem;
  color: var(--udt-support);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ==========================================================================
   7. ADMISSION ROADMAP & PRÓRROGA
   ========================================================================== */
.v2-roadmap-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.v2-step-card {
  flex: 1;
  padding: 1.8rem 1.2rem;
  text-align: center;
  position: relative;
}

.v2-step-highlight {
  border-color: var(--accent-gold);
  background: rgba(0, 58, 112, 0.85);
}

.v2-step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--udt-blue-primary);
  background: var(--accent-gold-light);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.v2-step-card h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.v2-step-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.v2-step-arrow {
  display: flex;
  align-items: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: bold;
}

.v2-prorroga-box {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--accent-gold);
}

.v2-prorroga-icon { font-size: 2.2rem; }

.v2-prorroga-text strong {
  display: block;
  color: var(--accent-gold-light);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.v2-prorroga-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   8. DIRECT LEAD CAPTURE FORM & CONTACT
   ========================================================================== */
.v2-contact-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.v2-contact-info {
  padding: 2.8rem;
  width: 100%;
}

.v2-contact-info h2 {
  font-family: var(--udt-font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin: 0.8rem 0 1rem 0;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.v2-contact-info p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

.v2-tequiai-pointer-box {
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--accent-gold);
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
}

.v2-btn-open-tequiai {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  color: var(--udt-blue-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(201, 162, 75, 0.35);
  transition: var(--udt-transition);
}

.v2-btn-open-tequiai:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 75, 0.55);
}

.v2-pointer-hint {
  font-size: 0.82rem;
  color: var(--accent-gold-light);
  font-weight: 500;
}

.v2-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.v2-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.v2-method-icon { font-size: 1.5rem; color: var(--accent-gold-light); }
.v2-method-item strong { display: block; color: var(--accent-gold-light); }
.v2-method-item span { color: rgba(255, 255, 255, 0.85); }

.v2-whatsapp-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.v2-wa-icon { font-size: 2rem; }
.v2-wa-text strong { display: block; color: #ffffff; font-size: 0.95rem; }
.v2-wa-text span { color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; }

.v2-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 50px;
  background: var(--udt-wa-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--udt-transition);
}

.v2-btn-wa:hover {
  background: #1eb954;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
}

.v2-form-card {
  padding: 2.5rem;
}

.v2-form-card h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.v2-form-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.8rem;
}

.v2-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.v2-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold-light);
}

.v2-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.v2-input,
.v2-select,
.v2-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--udt-radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--udt-font-sans);
  font-size: 0.92rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: var(--udt-transition);
}

.v2-select option {
  background: var(--udt-blue-primary);
  color: #ffffff;
}

.v2-input:focus,
.v2-select:focus,
.v2-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(0, 43, 75, 0.9);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.25);
}

.v2-btn-submit {
  width: 100%;
  padding: 0.95rem;
  border-radius: 50px;
  margin-top: 0.5rem;
}

/* FOOTER */
.v2-footer {
  background-color: var(--udt-blue-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(201, 162, 75, 0.3);
}

.v2-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.v2-footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.2rem 0 0.8rem 0;
}

.v2-footer-links h4 {
  font-family: var(--udt-font-serif);
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.v2-footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.v2-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.v2-footer-links a:hover {
  color: var(--accent-gold-light);
}

.v2-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.v2-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.v2-legal-links { display: flex; gap: 1.5rem; }
.v2-legal-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }

/* FLOATING AI CHAT BUBBLE */
.v2-chat-bubble-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

/* AGAVE MASTER FLOATING AI AVATAR TRIGGER */
.v2-agave-avatar-trigger {
  position: relative;
  width: 76px;
  height: 76px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v2-avatar-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.5) 0%, rgba(0, 43, 75, 0) 70%);
  animation: haloPulse 2.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.v2-agave-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00d2ff;
  background: #001428;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4), inset 0 0 15px rgba(0, 210, 255, 0.3);
  transition: all 0.35s ease;
  position: relative;
  z-index: 2;
}

.v2-agave-avatar-trigger:hover .v2-agave-avatar-img {
  transform: scale(1.12) rotate(3deg);
  border-color: var(--accent-gold-light);
  box-shadow: 0 15px 40px rgba(201, 162, 75, 0.6), inset 0 0 20px rgba(201, 162, 75, 0.4);
}

.v2-avatar-tooltip {
  position: absolute;
  right: 88px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 30, 60, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--accent-gold);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0.95;
  transition: all 0.3s ease;
}

.v2-agave-avatar-trigger:hover .v2-avatar-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
  border-color: var(--accent-gold-light);
}

.v2-tooltip-sub {
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  font-weight: 500;
}

.v2-tooltip-main {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 700;
}

.v2-trigger-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-gold);
  color: var(--udt-blue-primary);
  font-size: 0.72rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--udt-blue-primary);
  z-index: 3;
}

.v2-chat-modal {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 380px;
  height: 530px;
  background: var(--udt-blue-primary);
  border-radius: var(--udt-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-gold);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.3s ease;
}

.v2-chat-modal.active { display: flex; }

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.v2-chat-header {
  background: rgba(0, 20, 40, 0.95);
  color: #ffffff;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
}

.v2-chat-header-info { display: flex; align-items: center; gap: 0.75rem; }

.v2-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #001428;
  flex-shrink: 0;
}

.v2-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-chat-header-info strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.v2-chat-status { font-size: 0.72rem; color: var(--accent-gold-light); }

.v2-chat-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}

.v2-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(0, 43, 75, 0.8);
}

.v2-chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.v2-msg-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-left-radius: 2px;
}

/* TequiAI Animated Thinking Mimic Indicator */
.v2-thinking-card {
  background: linear-gradient(135deg, rgba(0, 35, 65, 0.85) 0%, rgba(0, 55, 95, 0.85) 100%);
  border: 1px solid rgba(234, 199, 117, 0.5);
  box-shadow: 0 4px 15px rgba(234, 199, 117, 0.2);
  animation: v2-thinking-glow 2s infinite alternate;
}

@keyframes v2-thinking-glow {
  0% { border-color: rgba(234, 199, 117, 0.4); box-shadow: 0 0 10px rgba(234, 199, 117, 0.15); }
  100% { border-color: rgba(234, 199, 117, 0.9); box-shadow: 0 0 20px rgba(234, 199, 117, 0.4); }
}

.v2-thinking-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.v2-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.v2-typing-dots span {
  width: 7px;
  height: 7px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  animation: v2-dot-bounce 1.4s infinite ease-in-out both;
}

.v2-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.v2-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes v2-dot-bounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; background-color: #ffffff; }
}

.v2-thinking-text {
  font-size: 0.82rem;
  color: var(--udt-sec-support);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.2px;
}

.v2-msg-user {
  align-self: flex-end;
  background: var(--accent-gold);
  color: var(--udt-blue-primary);
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.v2-chat-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.v2-prompt-title { font-size: 0.75rem; font-weight: 700; color: var(--accent-gold-light); }

.v2-prompt-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: var(--udt-transition);
}

.v2-prompt-chip:hover {
  background: rgba(201, 162, 75, 0.25);
}

.v2-chat-input-area {
  padding: 0.75rem 1rem;
  background: rgba(0, 20, 40, 0.95);
  border-top: 1px solid rgba(201, 162, 75, 0.3);
  display: flex;
  gap: 0.5rem;
}

.v2-chat-input-area input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--udt-font-sans);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.v2-chat-input-area input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.v2-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--udt-blue-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ANIMATED HAMBURGER TOGGLE BUTTON */
.v2-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.v2-hamburger-btn span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.v2-hamburger-btn.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: var(--accent-gold);
}

.v2-hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.v2-hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: var(--accent-gold);
}

/* FULL MOBILE GLASS DRAWER MENU */
.v2-mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  background: rgba(0, 32, 60, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--accent-gold);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.98);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1005;
}

.v2-mobile-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.v2-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.v2-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.v2-mobile-link i {
  color: var(--accent-gold-light);
  width: 22px;
  text-align: center;
  font-size: 1.1rem;
}

.v2-mobile-link:hover,
.v2-mobile-link.active {
  background: rgba(201, 162, 75, 0.2);
  color: var(--accent-gold-light);
}

.v2-mobile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
  .v2-terms-grid { grid-template-columns: repeat(3, 1fr); }
  .v2-terms-4cols { grid-template-columns: repeat(2, 1fr); }
  .v2-campus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .v2-hamburger-btn { display: flex; }
  .v2-btn-login span { display: none; } /* Show icon on tablet */
  
  .v2-hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .v2-why-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-scholarship-grid { grid-template-columns: 1fr; }
  .v2-calc-comparison { grid-template-columns: 1fr; }
  .v2-contact-wrapper { grid-template-columns: 1fr; }
  .v2-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .glass-nav {
    top: 16px;
    width: calc(100% - 1.5rem);
    padding: 0.5rem 1rem;
  }

  .logo-wrapper { min-width: 200px; }
  .v2-brand-name { font-size: 0.88rem; }
  .brand-motto { font-size: 0.7rem; }
  .v2-brand-text { margin-left: 95px; }

  .v2-hero-content {
    padding: 1.5rem 1.2rem;
    border-radius: 18px;
  }

  .v2-hero-title { font-size: 2.1rem; }
  .v2-hero-subtitle { font-size: 0.98rem; }
  
  .v2-hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .v2-stat-divider { display: none; }

  .v2-why-grid { grid-template-columns: 1fr; }
  .v2-mobile-tabs { display: flex; }
  .v2-programs-grid { grid-template-columns: 1fr; }

  .v2-program-card { display: none; }
  .v2-program-card.active-mobile { display: flex; }

  .v2-terms-grid { grid-template-columns: 1fr; }
  .v2-terms-4cols { grid-template-columns: 1fr; }

  .v2-roadmap-grid { flex-direction: column; }
  .v2-step-arrow {
    transform: rotate(90deg);
    justify-content: center;
    margin: 0.5rem 0;
  }

  .v2-form-row { grid-template-columns: 1fr; }
  .v2-footer-grid { grid-template-columns: 1fr; }

  .v2-chat-modal {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 75px;
  }
}

/* ==========================================================================
   AGENTE DE IA AGAVE — INTERACTIVE CONVERSATIONAL WIDGET
   ========================================================================== */
.v2-ai-agent-card {
  display: none !important;
}

.v2-ai-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(208, 208, 206, 0.3);
}

.v2-ai-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--udt-support) 0%, var(--udt-sec-support) 100%);
  color: var(--udt-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.v2-ai-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.v2-ai-title h3 {
  font-family: var(--udt-font-serif);
  font-size: 1.1rem;
  color: var(--udt-white);
  margin-bottom: 0.1rem;
}

.v2-ai-status {
  font-size: 0.78rem;
  color: var(--udt-wa-green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.v2-ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.v2-ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.v2-ai-msg.ai {
  align-self: flex-start;
}

.v2-ai-msg.user {
  align-self: flex-end;
}

.v2-msg-bubble {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.v2-ai-msg.ai .v2-msg-bubble {
  background: rgba(255, 255, 255, 0.12);
  color: var(--udt-beige-caliza);
  border-top-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.v2-ai-msg.user .v2-msg-bubble {
  background: var(--accent-gold);
  color: var(--udt-blue-primary);
  font-weight: 500;
  border-top-right-radius: 2px;
}

.v2-msg-time {
  font-size: 0.68rem;
  color: rgba(237, 228, 211, 0.5);
  margin-top: 0.2rem;
  margin-left: 0.2rem;
}

.v2-ai-quick-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0;
}

.v2-topic-chip {
  background: rgba(201, 162, 75, 0.15);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--accent-gold-light);
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--udt-transition);
}

.v2-topic-chip:hover {
  background: var(--accent-gold);
  color: var(--udt-blue-primary);
}

.v2-ai-input-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.v2-ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: var(--udt-white);
  font-size: 0.85rem;
}

.v2-ai-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.18);
}

.v2-ai-send-btn {
  background: var(--accent-gold);
  color: var(--udt-blue-primary);
  border: none;
  border-radius: 8px;
  padding: 0 1.1rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--udt-transition);
}

.v2-ai-send-btn:hover {
  background: var(--accent-gold-light);
}

/* ==========================================================================
   MODERN ANIMATIONS & PERFORMANCE ENHANCEMENTS (V2)
   ========================================================================== */

/* 1. Scroll Reveal Animations (IntersectionObserver) */
.v2-reveal {
  opacity: 0;
  transform: translateY(35px);
  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: opacity, transform;
}

.v2-reveal.v2-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.v2-reveal-scale {
  opacity: 0;
  transform: scale(0.93) translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.v2-reveal-scale.v2-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
  will-change: auto;
}

/* Stagger Delays for Grid Item Entry */
.v2-delay-1 { transition-delay: 0.1s; }
.v2-delay-2 { transition-delay: 0.2s; }
.v2-delay-3 { transition-delay: 0.3s; }
.v2-delay-4 { transition-delay: 0.4s; }

/* 2. Interactive Card Hover Glow & Smooth Elevation */
.hero-glass-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.hero-glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(234, 199, 117, 0.25);
  border-color: rgba(234, 199, 117, 0.6);
}

/* 3. Gold Shimmer Sweep on Primary Action Buttons */
.v2-btn-primary, .v2-btn-secondary, .v2-btn-open-tequiai, .v2-btn-apply-card {
  position: relative;
  overflow: hidden;
}

.v2-btn-primary::before, .v2-btn-secondary::before, .v2-btn-open-tequiai::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.v2-btn-primary:hover::before, .v2-btn-secondary:hover::before, .v2-btn-open-tequiai:hover::before {
  left: 140%;
}

/* 4. Glowing Micro-Animations for Icons */
.v2-why-icon, .v2-campus-icon, .v2-prorroga-icon {
  transition: transform 0.4s ease, color 0.4s ease, filter 0.4s ease;
}

.hero-glass-card:hover .v2-why-icon,
.hero-glass-card:hover .v2-campus-icon {
  transform: scale(1.12) rotate(4deg);
  filter: drop-shadow(0 0 10px rgba(234, 199, 117, 0.7));
}

/* 5. Smooth Floating Micro-Movement for Badges */
.v2-hero-badge {
  animation: v2-badge-float 4s ease-in-out infinite alternate;
}

@keyframes v2-badge-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* Hardware Acceleration & Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Authentic Photo Integration inside Glass Cards & Banners */
.v2-card-img-header,
.v2-card-banner-img {
  position: relative;
  width: 100%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  width: calc(100% + 3.5rem);
}

.v2-card-img-header {
  height: 165px;
}

.v2-card-banner-img {
  height: 200px;
}

.v2-card-img-header img,
.v2-card-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.9) contrast(1.05);
}

/* Gradient Vignette Mask to integrate photos into deep navy theme */
.v2-card-img-header::after,
.v2-card-banner-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 24, 48, 0.15) 0%, rgba(0, 24, 48, 0.75) 75%, rgba(0, 24, 48, 0.98) 100%);
  pointer-events: none;
}

.hero-glass-card:hover .v2-card-img-header img,
.hero-glass-card:hover .v2-card-banner-img img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1);
}

