/* ThesisLab SA - Premium CSS Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #080b11;
  --bg-secondary: #0f131a;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-glass: rgba(15, 23, 42, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.3);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.15);
  --secondary: #7f5af0;
  --secondary-glow: rgba(127, 90, 240, 0.15);
  
  --success: #10ac84;
  --success-glow: rgba(16, 172, 132, 0.15);
  --warning: #ff9f43;
  --warning-glow: rgba(255, 159, 67, 0.15);
  --danger: #ee5253;
  --danger-glow: rgba(238, 82, 83, 0.15);
  --info: #2e86de;
  --info-glow: rgba(46, 134, 222, 0.15);

  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Gradients */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(8, 11, 17, 0) 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(8, 11, 17, 0) 70%);
  filter: blur(100px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Layout Header/Navbar */
header {
  backdrop-filter: blur(12px);
  background-color: rgba(8, 11, 17, 0.85);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-title);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  padding-left: 0.75rem;
  margin-left: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: rgba(0, 242, 254, 0.06);
}

.nav-link.active {
  border-bottom: 2px solid var(--primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-title);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

/* SPA Sections Container */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

.section-view {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.section-view.active {
  display: block;
}

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

/* Glass Cards System */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-hover);
}

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

.glass-card:hover::before {
  opacity: 1;
}

/* 1. LANDING PAGE STYLE */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-text h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  font-family: var(--font-title);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  font-family: var(--font-title);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
}

.illustration-box {
  width: 100%;
  max-width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.illustration-card {
  position: absolute;
  width: 280px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.ill-1 {
  top: 10%;
  left: -5%;
  transform: rotate(-8deg);
  border-left: 3px solid var(--primary);
  animation: float1 6s ease-in-out infinite;
}

.ill-2 {
  bottom: 15%;
  right: -5%;
  transform: rotate(6deg);
  border-left: 3px solid var(--danger);
  animation: float2 7s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-15px); }
}

@keyframes float2 {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(15px); }
}

/* Features Grid */
.features-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: left;
}

.feature-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.icon-blue { background: rgba(0, 242, 254, 0.1); color: var(--primary); }
.icon-purple { background: rgba(127, 90, 240, 0.1); color: var(--secondary); }
.icon-green { background: rgba(16, 172, 132, 0.1); color: var(--success); }
.icon-orange { background: rgba(255, 159, 67, 0.1); color: var(--warning); }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* 2. STUDENT PORTAL STYLE */
.student-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.student-info-sidebar h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.student-info-sidebar p {
  margin-bottom: 2rem;
}

.student-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.step-item.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.03);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.step-item.active h4 {
  color: var(--primary);
}

.step-content {
  width: 100%;
}

.step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Student Forms & Uploader */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

/* File Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition);
  position: relative;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.02);
}

.upload-icon {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.upload-area:hover .upload-icon {
  color: var(--primary);
  transform: translateY(-5px);
}

.upload-text {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-text span {
  color: var(--primary);
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.file-input {
  display: none;
}

/* Upload Progress/Processing View */
.processing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
  text-align: center;
}

.spinner-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--primary);
  animation: pulse 2s infinite alternate;
}

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

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.process-steps {
  width: 100%;
  max-width: 380px;
  margin-top: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.proc-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.proc-step i {
  font-size: 1.1rem;
}

.proc-step.pending i {
  color: var(--text-dim);
}

.proc-step.loading i {
  color: var(--primary);
  animation: spin 1.5s linear infinite;
}

.proc-step.success {
  color: var(--success);
}

.proc-step.success i {
  color: var(--success);
}

/* EMOTIONAL FEEDBACK MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 90%;
  max-width: 580px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-header p {
  font-size: 0.95rem;
}

/* Plutchik Primary Buttons */
.emotion-badge-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.emotion-badge-btn i {
  font-size: 1.35rem;
}

.emotion-badge-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

/* Plutchik Color states */
.emotion-badge-btn.selected[data-emotion="alegria"] { background: rgba(16,172,132,0.15); border-color: #10ac84; color: #10ac84; }
.emotion-badge-btn.selected[data-emotion="confianza"] { background: rgba(46,134,222,0.15); border-color: #2e86de; color: #2e86de; }
.emotion-badge-btn.selected[data-emotion="miedo"] { background: rgba(255,159,67,0.15); border-color: #ff9f43; color: #ff9f43; }
.emotion-badge-btn.selected[data-emotion="sorpresa"] { background: rgba(0,210,211,0.15); border-color: #00d2d3; color: #00d2d3; }
.emotion-badge-btn.selected[data-emotion="tristeza"] { background: rgba(84,160,255,0.15); border-color: #54a0ff; color: #54a0ff; }
.emotion-badge-btn.selected[data-emotion="asco"] { background: rgba(131,149,167,0.15); border-color: #8395a7; color: #8395a7; }
.emotion-badge-btn.selected[data-emotion="ira"] { background: rgba(238,82,83,0.15); border-color: #ee5253; color: #ee5253; }
.emotion-badge-btn.selected[data-emotion="anticipacion"] { background: rgba(127,90,240,0.15); border-color: #7f5af0; color: #7f5af0; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 3. ENTERPRISE ANALYTICS DASHBOARD */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 2rem;
  font-family: var(--font-title);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-trend {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-card {
  min-height: 325px;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-title h3 {
  font-size: 1.15rem;
}

.chart-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
}

/* Student Table Directory */
.directory-card {
  margin-bottom: 2rem;
}

.directory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-filter-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-input {
  padding-left: 2.25rem;
  width: 260px;
}

.select-filter {
  width: 180px;
}

.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 700;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.student-meta-cell {
  display: flex;
  flex-direction: column;
}

.student-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.student-email {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.badge-emotion {
  color: #fff;
  border: none;
}

.table-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.table-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.progress-bar-container {
  width: 100%;
  max-width: 150px;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  width: 0;
  transition: width 0.6s ease;
}

.score-text {
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* STUDENT DETAILED WINDOW MODAL */
.detail-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 17, 0.9);
  backdrop-filter: blur(16px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.detail-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.detail-modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 95%;
  max-width: 1100px;
  height: 85vh;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.detail-modal-overlay.active .detail-modal-container {
  transform: scale(1);
}

.detail-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.detail-close-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.detail-modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
}

.student-detail-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
}

.sidebar-profile-card {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #000;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-family: var(--font-title);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.sidebar-profile-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.sidebar-profile-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.detail-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.info-item-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* History logs */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.history-item-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  padding: 1.5rem;
  transition: var(--transition);
}

.history-item-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.history-version-badge {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.history-card-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.history-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem;
  border-radius: 8px;
}

.metric-mini-box {
  text-align: center;
}

.metric-mini-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.metric-mini-value {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-title);
}

.metric-mini-value.danger { color: var(--danger); }
.metric-mini-value.success { color: var(--success); }

/* Psychological analysis box */
.psych-analysis-box {
  background: rgba(127, 90, 240, 0.06);
  border: 1px dashed rgba(127, 90, 240, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.psych-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.psych-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  border-left: 2px solid var(--secondary);
  padding-left: 0.75rem;
}

.psych-eval {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-sug-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.detail-sug-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.detail-sug-list li {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 3px solid var(--text-dim);
}

.detail-sug-list li.sug-estructura { border-left-color: var(--secondary); }
.detail-sug-list li.sug-coherencia { border-left-color: var(--info); }
.detail-sug-list li.sug-referencias { border-left-color: var(--warning); }
.detail-sug-list li.sug-plagio { border-left-color: var(--danger); }

/* 4. SIMULATION INBOX DRAWER */
.sim-drawer {
  position: fixed;
  bottom: 0;
  right: 2rem;
  width: 480px;
  height: 520px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  z-index: 90;
  display: grid;
  grid-template-rows: 50px 1fr;
  transform: translateY(470px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  overflow: hidden;
}

.sim-drawer.expanded {
  transform: translateY(0);
}

.sim-drawer-header {
  background: linear-gradient(90deg, #161c24 0%, #1e2633 100%);
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-color);
}

.sim-drawer-title {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.sim-indicator {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.sim-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.sim-drawer-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  height: 100%;
  overflow: hidden;
  background: #0d1117;
}

.sim-email-list {
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.sim-email-item {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.sim-email-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sim-email-item.active {
  background: rgba(0, 242, 254, 0.05);
  border-left: 3px solid var(--primary);
}

.sim-email-sender {
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-email-subject {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.sim-email-time {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.sim-email-content-view {
  overflow-y: auto;
  padding: 1.25rem;
  background: #0f131a;
  display: flex;
  flex-direction: column;
}

.sim-email-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.sim-email-header h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sim-email-meta-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.sim-email-body-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #c9d1d9;
}

/* Suggestion cards inside email body */
.email-sug-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

.email-sug-type {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.email-sug-type.estructura { color: var(--secondary); }
.email-sug-type.coherencia { color: var(--info); }
.email-sug-type.referencias { color: var(--warning); }
.email-sug-type.plagio { color: var(--danger); }

.email-sug-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.email-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  height: 100%;
  text-align: center;
  padding: 1rem;
}

.email-empty-state i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-illustration {
    order: -1;
  }
  .hero-actions {
    justify-content: center;
  }
  .student-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .detail-modal-body {
    grid-template-columns: 1fr;
  }
  .student-detail-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 2rem;
  }
  .sim-drawer {
    width: calc(100% - 4rem);
    right: 2rem;
  }
}

@media (max-width: 640px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .nav-container {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
}

/* --- ThesisLab SA Extensions CSS --- */

/* Language Selector Styles */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  padding: 0 0.25rem;
  font-family: var(--font-body);
}
.lang-btn:hover {
  color: var(--primary);
}
.lang-btn.active {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}
.lang-divider {
  color: var(--text-dim);
  opacity: 0.5;
}

/* Lead Capture Section */
.lead-section {
  margin-top: 5rem;
  margin-bottom: 3rem;
}
.lead-card {
  border-top: 3px solid var(--secondary);
}
.lead-header {
  text-align: center;
  margin-bottom: 2rem;
}
.lead-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead-form {
  max-width: 800px;
  margin: 0 auto;
}
.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .lead-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Partners Section */
.partners-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 2rem;
}
.partners-container {
  text-align: center;
}
.partners-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.partner-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.partner-logo {
  max-height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}
.partner-logo:hover {
  filter: grayscale(0%) drop-shadow(0 0 10px var(--primary-glow));
  opacity: 1;
  transform: scale(1.05);
}

/* Footer Styles */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem 2rem;
  width: 100%;
  margin-top: auto;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* Pricing & Paywall Modal Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.05);
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.pricing-badge {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
}
.pricing-card h4 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.price {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}
.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}
.pricing-features li[style*="line-through"]::before {
  content: '✗';
  color: var(--danger);
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links a:hover {
    transform: none;
  }
  .branding-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Pricing Grid & Modern Cards - High-End Business Dashboard Theme */
.pricing-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  align-items: stretch;
}

.pricing-card-modern {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card-modern:hover {
  transform: translateY(-5px);
}

.pricing-card-modern.entry-plan:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.pricing-card-modern.campus-plan:hover {
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(127, 90, 240, 0.2);
}

.pricing-card-modern.vanguard-plan:hover {
  border-color: #a29bfe;
  box-shadow: 0 10px 30px rgba(162, 155, 254, 0.2);
}

.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.card-accent-bar.cyan {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.card-accent-bar.purple {
  background: linear-gradient(90deg, var(--secondary), transparent);
}

.card-accent-bar.violet {
  background: linear-gradient(90deg, #a29bfe, transparent);
}

.plan-badge-top {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--secondary) 0%, #a29bfe 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(127, 90, 240, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-price-block {
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price-range {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--text-main);
}

.price-currency {
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-details-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-details-list li i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.entry-plan .plan-details-list li i { color: var(--primary); }
.campus-plan .plan-details-list li i { color: var(--secondary); }
.vanguard-plan .plan-details-list li i { color: #a29bfe; }

.btn-plan-cta {
  display: block;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  font-family: var(--font-title);
  transition: var(--transition);
}

.btn-plan-cta.cyan {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-plan-cta.cyan:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.btn-plan-cta.purple {
  background: rgba(127, 90, 240, 0.15);
  color: #c3b5fd;
  border: 1px solid var(--secondary);
}

.btn-plan-cta.purple:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(127, 90, 240, 0.4);
}

.btn-plan-cta.violet {
  background: rgba(162, 155, 254, 0.1);
  color: #a29bfe;
  border: 1px solid #a29bfe;
}

.btn-plan-cta.violet:hover {
  background: #a29bfe;
  color: #000;
  box-shadow: 0 5px 15px rgba(162, 155, 254, 0.3);
}

@media (max-width: 992px) {
  .pricing-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   #SECCION-PLANES — Sección Independiente de Planes Comerciales
   Dashboard de Alta Gama | Neón Cian + Púrpura
   ═══════════════════════════════════════════════════════════════════════ */

#seccion-planes {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 30%, #08090f 100%);
  padding: 6rem 2rem 5rem 2rem;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px; /* Offset para el header sticky */
}

/* Fondo decorativo con ruido de neón */
#seccion-planes::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(0, 242, 254, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 50%, rgba(127, 90, 240, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Línea neón superior */
.planes-neon-border-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary) 25%,
    var(--secondary) 50%,
    var(--primary) 75%,
    transparent 100%
  );
  opacity: 0.6;
  animation: neon-border-pulse 4s ease-in-out infinite;
}

@keyframes neon-border-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* Wrapper centrado */
.planes-section-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Encabezado */
.planes-header {
  text-align: center;
  margin-bottom: 4rem;
}

.planes-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.planes-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-title);
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.planes-main-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Grid de Tarjetas ─── */
.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* ─── Tarjeta Base ─── */
.planes-card {
  background: rgba(13, 17, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  backdrop-filter: blur(20px);
}

/* Barra de acento superior */
.planes-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 20px 20px 0 0;
}

.cyan-accent   { background: linear-gradient(90deg, var(--primary), rgba(0,242,254,0.1)); }
.purple-accent { background: linear-gradient(90deg, var(--secondary), rgba(127,90,240,0.1)); }
.violet-accent { background: linear-gradient(90deg, #a29bfe, rgba(162,155,254,0.1)); }

/* Glow de fondo absoluto */
.planes-card-glow {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(60px);
}

.cyan-glow   { background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%); }
.purple-glow { background: radial-gradient(circle, rgba(127, 90, 240, 0.14) 0%, transparent 70%); }
.violet-glow { background: radial-gradient(circle, rgba(162, 155, 254, 0.12) 0%, transparent 70%); }

.planes-card:hover .planes-card-glow { opacity: 1; }

/* Hover por tipo */
.planes-entry:hover {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 50px rgba(0, 242, 254, 0.1), 0 0 0 1px rgba(0,242,254,0.08);
  transform: translateY(-6px);
}

.planes-campus:hover {
  border-color: rgba(127, 90, 240, 0.45);
  box-shadow: 0 20px 50px rgba(127, 90, 240, 0.15), 0 0 0 1px rgba(127,90,240,0.12);
  transform: translateY(-8px);
}

.planes-vanguard:hover {
  border-color: rgba(162, 155, 254, 0.35);
  box-shadow: 0 20px 50px rgba(162, 155, 254, 0.1), 0 0 0 1px rgba(162,155,254,0.08);
  transform: translateY(-6px);
}

/* Tarjeta destacada (CAMPUS) */
.planes-featured {
  border-color: rgba(127, 90, 240, 0.3);
  background: rgba(15, 12, 30, 0.9);
  box-shadow:
    0 0 0 1px rgba(127, 90, 240, 0.2),
    0 15px 40px rgba(127, 90, 240, 0.12),
    inset 0 0 30px rgba(127, 90, 240, 0.03);
  transform: scale(1.03);
}

/* Badge neón superior de la tarjeta CAMPUS */
.planes-featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--secondary) 0%, #a29bfe 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(127, 90, 240, 0.4);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Ícono de la tarjeta */
.planes-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Cuerpo de la tarjeta */
.planes-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.planes-card-name {
  font-size: 1.55rem;
  font-weight: 800;
  font-family: var(--font-title);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.planes-card-focus {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* Bloque de precio */
.planes-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.planes-price {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--text-main);
  line-height: 1;
}

.planes-price-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features list */
.planes-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.planes-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Dot de feature */
.planes-feat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cyan-dot   { background: var(--primary);   box-shadow: 0 0 6px rgba(0, 242, 254, 0.6); }
.purple-dot { background: var(--secondary); box-shadow: 0 0 6px rgba(127, 90, 240, 0.6); }
.violet-dot { background: #a29bfe;          box-shadow: 0 0 6px rgba(162, 155, 254, 0.5); }

/* ─── Botones CTA de planes ─── */
.planes-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-title);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.planes-cta-cyan {
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.planes-cta-cyan:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 5px 20px rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

.planes-cta-purple {
  background: linear-gradient(135deg, var(--secondary) 0%, #a29bfe 100%);
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
}
.planes-cta-purple:hover {
  background: linear-gradient(135deg, #9d72ff 0%, #c3b5fd 100%);
  box-shadow: 0 8px 25px rgba(127, 90, 240, 0.5);
  transform: translateY(-2px);
}

.planes-cta-violet {
  background: rgba(162, 155, 254, 0.08);
  color: #a29bfe;
  border: 1.5px solid #a29bfe;
}
.planes-cta-violet:hover {
  background: #a29bfe;
  color: #000;
  box-shadow: 0 5px 20px rgba(162, 155, 254, 0.3);
  transform: translateY(-2px);
}

/* ─── Nota de muestra gratis ─── */
.planes-free-sample-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(0, 242, 254, 0.04);
  border: 1px dashed rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .planes-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 3rem auto;
  }
  .planes-featured {
    transform: scale(1); /* Quita escala en mobile */
  }
  .planes-main-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  #seccion-planes {
    padding: 4rem 1.25rem 3rem 1.25rem;
  }
  .planes-main-title {
    font-size: 1.9rem;
  }
  .planes-card {
    padding: 2rem 1.5rem;
  }
}

