/* Importing Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* ===================================
   CSS VARIABLES
   =================================== */

:root {
  /* Primary Colors */
  --color-primary: rgb(16, 185, 129);
  --color-primary-hover: rgb(5, 150, 105);

  --color-primary-50: rgba(139, 92, 246, 0.05);
  --color-primary-100: rgba(139, 92, 246, 0.1);
  --color-primary-200: rgba(139, 92, 246, 0.2);

  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-50: rgba(16, 185, 129, 0.05);
  --color-success-100: rgba(16, 185, 129, 0.1);

  --color-warning: #f59e0b;
  --color-warning-50: rgba(245, 158, 11, 0.05);
  --color-warning-100: rgba(245, 158, 11, 0.1);

  --color-error: #ef4444;
  --color-error-50: rgba(239, 68, 68, 0.05);
  --color-error-100: rgba(239, 68, 68, 0.1);

  --color-info: #3b82f6;
  --color-info-50: rgba(59, 130, 246, 0.05);
  --color-info-100: rgba(59, 130, 246, 0.1);

  /* Text Colors */
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;

  /* Background Colors */
  --color-background: #f4f4f8;
  --color-surface: #f8fafc;
  --color-surface-hover: #f1f5f9;

  /* Border Colors */
  --color-border: #e2e8f0;

  --color-personalidad: rgb(16,185,129);
  --color-personalidad-soft: rgba(16,185,129,.08);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2rem;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-base: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --header-height: 64px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --color-text: #ffffff;
  --color-text-secondary: #c0c0c0;
  --color-text-muted: #838383;
  --color-background: #111214;
  --color-surface: #1f1f1f;
  --color-surface-hover: #262626;
  --color-border: #2d2d2d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  font-family: var(--font-primary);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.active > .material-symbols-rounded {
  color: var(--color-primary);
  font-variation-settings: "FILL" 1, "wght" 200, "GRAD" 0, "opsz" 24;
}

@supports (scrollbar-color: auto) {
  * {
    scrollbar-color: var(--color-text-muted) transparent;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-text-muted);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
}


/* ===================================
   BUTTON COMPONENTS
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===================================
   DASHBOARD LAYOUT
   =================================== */

.dashboard-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 85px;
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  transition: all 0.4s ease;
  z-index: 1000;
}

.dashboard-sidebar:hover {
  width: 260px;
}

.dashboard-sidebar .dashboard-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0 10px;
  color: #3c3750;
  white-space: nowrap;
  padding: 0px 10px;
  text-decoration: none;
  transition: 0.2s ease;
  font-weight: bold;
}

.dashboard-sidebar .dashboard-sidebar-header img {
  color: #3c3750;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 23px;
}

.dashboard-sidebar-links h4 {
  color: #3c3750;
  font-weight: 500;
  white-space: nowrap;
  margin: 10px 0;
  position: relative;
}

.dashboard-sidebar-links h4 span {
  opacity: 0;
}

.dashboard-sidebar:hover .dashboard-sidebar-links h4 span {
  opacity: 1;
}

.dashboard-sidebar-links .menu-separator {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: scaleX(1);
  transform: translateY(-50%);
  background: #3c3750;
  transform-origin: right;
  transition-delay: 0.2s;
}

.dashboard-sidebar:hover .dashboard-sidebar-links .menu-separator {
  transition-delay: 0s;
  transform: scaleX(0);
}

.dashboard-sidebar-links {
  list-style: none;
  margin-top: 20px;
  height: 80%;
  overflow-y: auto;
  scrollbar-width: none;
}

.dashboard-sidebar-links::-webkit-scrollbar {
  display: none;
}

.dashboard-sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 0 20px;
  color: #3c3750;
  white-space: nowrap;
  padding: 15px 10px;
  text-decoration: none;
  transition: 0.2s ease;
}

.dashboard-sidebar-links li a:hover {
  color: #161a2d;
  background-color: #f1f5f9;
  /*font-weight: 500;*/
  border-radius: 4px;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    padding: 13px;
    position: relative;
    cursor: pointer;
    transition: all .2s ease-in-out 0s;
    -moz-transition: all .2s ease-in-out 0s;
    border-radius: 10px;
}

.dashboard-nav-item-icon {
    max-width: 24px;
    max-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #222428;
    font-size: 19px;
    transition: all .2s ease-in-out 0s;
    -moz-transition: all .2s ease-in-out 0s;
}

.dashboard-nav-item-arrow {
    position: absolute;
    padding: 10px;
    border-radius: 5px;
    right: 9px;
    height: 35px;
    top: 50%;
    transition: all .2s ease-in-out 0s;
    -moz-transition: all .2s ease-in-out 0s;
    transform: translateY(-50%);
    -moz-ransform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    width: 33px;
    display: none;
    font-size: 13px;
    color: #63c9bc;
}
.dashboard-nav-item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.dashboard-nav-item.active {
  background: var(--color-surface-hover);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.sidebar__inner-nav-content, .sidebar__inner-nav-content-link {
    overflow: hidden;
    transition: all .2s ease-in-out 0s;
    -moz-transition: all .2s ease-in-out 0s;
}
.sidebar__inner-nav-content {
    max-height: 0;
    padding-left: 50px;
}
.sidebar__inner-nav-content-link {
    display: block;
    font-size: 14px;
    font-family: var(--font-poppins), sans-serif;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 22px;
    padding: 10px 0;
    border-bottom: 1px solid #efeff4;
}

.sidebar__inner-nav-content, .sidebar__inner-nav-content-link {
    overflow: hidden;
    transition: all .2s ease-in-out 0s;
    -moz-transition: all .2s ease-in-out 0s;
}
/* ===================================
   USER ACCOUNT
   =================================== */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: 36px;
  width: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.user-menu-trigger:hover {
  transform: translateY(-1px);
  background-color: #8a8a8a;
}

.user-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.user-avatar-small .material-symbols-rounded {
  font-size: var(--text-lg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.user-menu.active .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-base);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}

.user-menu-item:not(.theme-item):hover {
  background: #f1f5f9;
}

.user-menu-item .material-symbols-outlined {
  font-size: 1.4rem;
  color: var(--color-success);
}

.user-menu-item.theme-item {
  gap: 0;
}

.user-menu-item .icon {
  font-size: 1.4rem;
}

/* trophy Button */
.trophy-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  color: #c5c3cb;
}

.trophy-button:hover {
  color: #fff;
  background-color: #1a2532;
  transform: translateY(-1px);
}

.trophy-menu {
  position: relative;
}

.trophy-menu-dropdown {
  position: absolute;
  top: calc(100% + 38px);
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.trophy-menu.active .trophy-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.trophy-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-base);
  color: var(--color-text);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}

.trophy-menu-item:hover {
  background: var(--color-surface-hover);
}

.trophy-menu-item .material-symbols-outlined {
  font-size: 1.4rem;
  color: var(--color-success);
}

.dashboard-sidebar-overlay {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: var(--transition);
}

/* Main Content */
.dashboard-main {
  flex: 1;
  flex-direction: column;
  height: 100vh;
  overflow: auto;
}

/* Header */
.dashboard-header {
  height: var(--header-height);
  background: #1E2A38;
  display: flex;
  align-items: center;
  padding-left: 105px;
  padding-right: 20px;
  justify-content: space-between;
  gap: var(--space-md);
  box-sizing: border-box;
  border-bottom: 1px solid #1E2A38;
}

.dashboard-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dashboard-header .dashboard-sidebar-toggle {
  display: none;
}

.dashboard-header-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: #c5c3cb;
}

.dashboard-header-title:hover {
  cursor: pointer;
  color: #fff;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle (inside dropdown) */
.theme-toggle {
  display: flex;
  gap: var(--space-xs);
  margin-left: auto;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-xs);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-option {
  padding: var(--space-xs) var(--space-base);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition);
}

.theme-option:not(.active):hover {
  background-color: var(--color-primary-200);
}

.theme-option.active {
  background: var(--color-primary);
  color: white;
}

/* Views */
.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.project-title-cell {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 300px;
}

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-100);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-title-text {
  font-weight: var(--weight-medium);
  color: var(--color-text);
  margin-bottom: 2px;
}

.project-meta-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.status-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
}

.status-badge.success {
  background: var(--color-success-100);
  color: var(--color-success);
}

.status-badge.warning {
  background: var(--color-warning-100);
  color: var(--color-warning);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.empty-state-icon .material-symbols-rounded {
  font-size: var(--text-4xl);
}

.empty-state-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.empty-state-description {
  color: var(--color-text-secondary);
}

.margin-top-20 {
  margin-top: 20px;
} 

.margin-top-50 {
  margin-top: 50px;
} 

.margin-bottom-20 {
  margin-bottom: 20px;
}

.margin-bottom-50 {
  margin-bottom: 50px;
}

/* SLIDER */
.inicio-slider {
  padding: 10px 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;

  padding-inline: clamp(16px, 6vw, 80px);
  scroll-snap-type: x mandatory;
  margin-bottom: 10px;
}


.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-item {
  flex: 0 0 auto;

  /* 👇 ancho controlado */
  width: 1400px;
  max-width: 100%;
  scroll-snap-align: center;

  border-radius: 8px;
  overflow: hidden;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-item:first-child {
  scroll-margin-left: clamp(16px, 6vw, 80px);
}

.slider-item:last-child {
  scroll-margin-right: clamp(16px, 6vw, 80px);
}

/* CONTENEDOR TIPO CÁPSULA */
.slider-indicator {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #d1d7f0;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 6px 7px rgba(0, 0, 0, 0.12);

  backdrop-filter: blur(3px);
  width: fit-content;
  margin: 0 auto;
  bottom: 30px;
}

/* DOTS INACTIVOS */
.slider-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.45s ease;
}

/* DOT ACTIVO (PÍLDORA BLANCA) */
.slider-indicator .dot.active {
  width: 22px;
  height: 7px;
  border-radius: 20px;
  background: #ffffff;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15);
}
/* ===================================
   HOME – CARRERAS DESTACADAS
=================================== */

.home-carreras {
  justify-content: center;
  align-items: center;
  display: grid;
  margin: 0 90px;
}

/* Tabs */
.home-carreras-tabs {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.home-carreras-tabs .tab {
  font-size: 1.1rem;
  font-weight: 600;
  color: #b3b3b3;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.home-carreras-tabs .tab:hover {
  color: #64748b;
}

.home-carreras-tabs .tab.active {
  color: #1e293b;
}

.home-carreras-tabs .tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background: var(--color-success);
  border-radius: 10px 10px 0 0;
  animation: slideIn 0.3s ease;
}

/* Carrusel horizontal */
.home-carreras-track {
  display: none;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  align-items: center;
}

.home-carreras-track.active {
  display: flex;
  animation: fadeIn 0.4s ease-in-out;
}

.home-carreras-track::-webkit-scrollbar {
  display: none;
}

/* Card */
.home-carrera-card {
  min-width: 280px;
  max-width: 280px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-carrera-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Imagen */
.home-carrera-img {
  height: 160px;
  overflow: hidden;
}

.home-carrera-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body */
.home-carrera-body {
  padding: 14px;
}

.home-carrera-tags {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.home-carrera-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.home-carrera-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.home-carrera-info {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  text-align: right;
}


/* ===================================
   ENROLL – CARRERAS PARA INSCRIBIR
=================================== */

.enroll-carreras {
  justify-content: center;
  align-items: center;
  display: grid;
  margin: 0 90px;
}

/* Tabs */
.enroll-carreras-tabs {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.enroll-carreras-tabs .tab {
  font-size: 1.1rem;
  font-weight: 600;
  color: #b3b3b3;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.enroll-carreras-tabs .tab:hover {
  color: #64748b;
}

.enroll-carreras-tabs .tab.active {
  color: #1e293b;
}

.enroll-carreras-tabs .tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background: var(--color-success);
  border-radius: 10px 10px 0 0;
  animation: slideIn 0.3s ease;
}

/* Carrusel horizontal */
.enroll-carreras-track {
  display: none;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  align-items: center;
}

.enroll-carreras-track.active {
  display: flex;
  animation: fadeIn 0.4s ease-in-out;
}

.enroll-carreras-track::-webkit-scrollbar {
  display: none;
}

/* Card */
.enroll-carrera-card {
  min-width: 280px;
  max-width: 280px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.enroll-carrera-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Imagen */
.enroll-carrera-img {
  height: 160px;
  overflow: hidden;
}

.enroll-carrera-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body */
.enroll-carrera-body {
  padding: 14px;
}

.enroll-carrera-tags {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.enroll-carrera-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.enroll-carrera-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ===================================
   CATALOG – CARRERAS DE ENCUENTRO
=================================== */
.catalogo-carreras {
  margin: 0px 90px;
}

/* Tabs */
.catalogo-tabs {
  display: flex;
  gap: 40px; /* Un poco más de espacio para que respire */
  margin-bottom: 30px;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9; /* Línea base sutil */
}

.catalogo-tab {
  font-size: 1.1rem;
  font-weight: 600;
  color: #b3b3b3;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.catalogo-tab.active {
  color: #1e293b;
}

.catalogo-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--color-success);
  border-radius: 8px 8px 0 0;
}

.catalogo-listado {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.catalogo-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.catalogo-item.reverse {
  direction: rtl;
}
.catalogo-item.reverse * {
  direction: ltr;
}

.catalogo-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

.catalogo-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.catalogo-badge {
  display: none;
}

.fade-slide {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn .8s ease forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.catalogo-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Oportunidades */
.seccion-oportunidades {
  max-width: 1100px;
  margin: 0 auto;
}

.header-centrado {
  text-align: center;
  margin-bottom: 40px;
}

.header-centrado h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 10px;
}

/* Grid de Beneficios (Estilo image_29ebc7.png) */
.oportunidades-zabdi {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid de 3 columnas */
.grid-beneficios-puntos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* Tarjetas estilo Zabdi */
.card-beneficio {
  position: relative; /* Necesario para posicionar las figuras */
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  overflow: hidden; /* Corta las figuras que se salen */
  box-shadow: 4px 4px 0 var(--color-success);
  border: 1px solid var(--color-success);
  z-index: 1;
  top: 0;
  left: 0;
  transition: all .25s ease;
  white-space: nowrap;
}

.card-beneficio:hover {
  box-shadow: 7px 7px 0 var(--color-success);
  top: -3px;
  left: -3px;
}

/* El contenido debe estar por encima de las figuras */
.card-content {
  position: relative;
  z-index: 2;
}

/* Estilo Base de las Figuras (Círculos/Waves) */
.figura {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Círculo Grande Superior Izquierdo/Derecho */
.circle-1 {
  width: 120px;
  height: 120px;
  background: rgba(0, 212, 255, 0.15); /* Cian suave */
  top: -30px;
  right: -20px;
}

/* Círculo Mediano Inferior */
.circle-2 {
  width: 80px;
  height: 80px;
  background: rgba(88, 80, 236, 0.1); /* Azul/Morado suave */
  bottom: -20px;
  left: -20px;
}

/* Variaciones de colores para cada tarjeta */
.circle-1.blue { background: rgba(0, 122, 255, 0.15); }
.circle-1.green { background: rgba(52, 211, 153, 0.2); }

/* Contenedor de Icono */
.icon-box {
  width: 70px;
  height: 70px;
  background: #f8fafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
}

.icon-box .material-symbols-rounded {
  font-size: 32px;
  color: #1e293b;
}

.card-beneficio h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

/* Estilo de la lista de puntos clave */
.lista-puntos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-puntos li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  text-align: left;
}

.dot {
  width: 6px;
  height: 6px;
  background: #FEC700; /* Punto amarillo para resaltar */
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* Banner de Beca (Estilo image_29fb66.jpg) */
.beca-banner-card {
  display: flex;
  background: #e2e2e2;
  border-radius: 20px;
  overflow: hidden;
  color: white;
  align-items: center;
}

.beca-content {
  padding: 40px;
  flex: 1;
}

.beca-tag {
  background: var(--color-success);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.beca-content h3 {
  font-size: 1.8rem;
  margin: 15px 0;
}

.btn-oportunidad {
  margin-top: 20px;
  background: white;
  color: #003366;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.beca-visual {
  flex: 1;
  height: 100%;
}

.beca-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beca-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.welcome-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3c3750;
}
#typed-text {
  color: var(--color-success); /* color destacado para la frase dinámica */
}
.typewriter-container {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.cursor {
  display: inline-block;
  color: var(--color-success);
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Personalidad */
.home-personalidad,
.test-personalidad {
  max-width: 1100px;
  margin: 0 auto;
}

/* Grid de 3 columnas */
.grid-personalidad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.personalidad-card {
  position: relative;
  overflow: hidden;
}

.personalidad-inner {
  position: relative;
  width: 240px;
  height: 240px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}

.personalidad-inner:hover {
  transform: translateY(-2px);
}

.personalidad-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease;
  z-index: 2;
}

.personalidad-inner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 80px;
  height: 80px;
  background: var(--color-personalidad);
  border-radius: 50%;
  transform: scale(1);
  transition: transform .55s ease;
  z-index: 0;
}

.personalidad-inner:hover::before {
  transform: scale(18);
}

.personalidad-hover {
  position: absolute;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ⬅ centra vertical */
  align-items: center;     /* ⬅ centra horizontal */

  text-align: center;
  padding: 24px;
  
  opacity: 0;
  transition: opacity .25s ease;
}

.personalidad-inner:hover .personalidad-hover {
  opacity: 1;
}

.personalidad-inner:hover .personalidad-title {
  opacity: 0;
}

/* Para el “fade” del cambio de contenido */
.personalidad-hover.is-fading {
  opacity: 0 !important;
}

.personalidad-hover p {
  font-size: .95rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

.personalidad-stat {
  font-size: .85rem;
  font-weight: 600;
  opacity: .9;
}

@media (hover: none) {
  .personalidad-inner {
    cursor: default;
  }
}

.personalidad-hover-title,
.vocacion-result {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.personalidad-hover-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: .95rem;
  line-height: 1.25;
  width: 100%;
}

.personalidad-hover-list li{
  text-align: center;
  backdrop-filter: blur(2px);
}

.vocacion-section {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 900px;
  margin: 60px auto;
}

.vocacion-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.vocacion-header p {
  color: #6b7280;
  margin-bottom: 24px;
}

.vocacion-slide {
  display: none;
  animation: fadeSlide 0.3s ease;
}

.vocacion-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vocacion-question {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.vocacion-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vocacion-option {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vocacion-option:hover {
  border-color: #10b981;
  background: #ecfdf5;
}

.vocacion-option.selected {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.15);
}

.vocacion-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.vocacion-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #10b981;
  color: #fff;
}

.vocacion-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vocacion-step {
  font-weight: 600;
  color: #6b7280;
}

/* LOADING + RESULT */
.vocacion-loading {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e5e7eb;
  border-top-color: #10b981;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.vocacion-result.hidden {
  display: none;
}

.vocacion-btn.restart {
  background: #f3f4f6;
  color: #111827;
  border: 1.5px solid #e5e7eb;
}

.vocacion-btn.hidden {
  display: none;
}

#hoverBox {
  transition: opacity 0.5s ease; /* transición suave de opacidad */
  opacity: 0; /* inicial invisible */
}
#hoverBox.show {
  opacity: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 1000;
    width: var(--sidebar-width);
    transition: left 0.3s ease;
  }

  .dashboard-sidebar.collapsed {
    left: 0;
  }

  .dashboard-sidebar.collapsed :is(.logo, .nav-label, .nav-icon, .dashboard-nav-title, .sidebar-back-button .btn-label) {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar.collapsed .sidebar-back-button {
    padding-left: var(--space-md);
  }

  .dashboard-header {
    padding: 0 var(--space-md);
  }

  .dashboard-header .dashboard-sidebar-toggle {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    color: #c5c3cb;
  }

  .dashboard-header .dashboard-sidebar-toggle:hover {
    color: #fff;
    background-color: #8a8a8a;
    transform: translateY(-1px);
  }

  /* Sidebar Overlay Mobile Behavior */
  .dashboard-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 1000;
    width: var(--sidebar-width);
    transition: left 0.3s ease;
  }

  .dashboard-sidebar.collapsed {
    left: 0;
    width: var(--sidebar-width);
  }

  .dashboard-sidebar .dashboard-sidebar-links .menu-separator {
    transition-delay: 0s;
    transform: scaleX(0);
  }
  .dashboard-sidebar-links h4 span {
    opacity: 1;
  }

  .dashboard-content {
    padding: var(--space-md);
    border-top-left-radius: 0;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .catalogo-carreras {
    margin: 40px 20px;
  }

  .catalogo-item {
    grid-template-columns: 1fr;
  }

  .catalogo-img img {
    height: 240px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 0 var(--space-md);
  }

  .dashboard-content {
    padding: var(--space-base);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-table-container {
    overflow-x: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* Focus Styles */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.loader {
  width: 28px;
  height: 28px;
  display: block;
  margin: 20px auto;
  box-sizing: border-box;
  position: relative;
}

.loader::after {
  content: '';
  width: 28px;
  height: 28px;
  left: 0;
  bottom: 0;
  position: absolute;
  border-radius: 50% 50% 0;
  border: 10px solid #62c9bc;
  transform: rotate(45deg) translate(0, 0);
  box-sizing: border-box;
  animation: animMarker 0.4s ease-in-out infinite alternate;
}

.loader::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 150%;
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  animation: animShadow 0.4s ease-in-out infinite alternate;
}

@keyframes animMarker {
  0% {
    transform: rotate(45deg) translate(5px, 5px);
  }

  100% {
    transform: rotate(45deg) translate(-5px, -5px);
  }
}

@keyframes animShadow {
  0% {
    transform: scale(0.5);
  }

  100% {
    transform: scale(1);
  }
}

/* ===============================
   CONTACTO – MAPA
================================ */

.contact-map {
  margin: 0px 90px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Efecto sutil al pasar el mouse (desktop) */
.contact-map:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

/* iframe del mapa */
.contact-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: none;
}

@media (max-width: 1024px) {
  .contact-map {
    margin: 30px 40px;
  }
}

@media (max-width: 768px) {
  .contact-map {
    margin: 20px 16px;
    border-radius: 14px;
  }

  .contact-map iframe {
    height: 260px;
  }
}

/* ===============================
   FAQ ZABDI
================================ */

.faq-zabdi {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 0 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.faq-subtitle {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.10);
}

.faq-card-head {
  padding: 22px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.faq-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.08);
  color: #1e293b;
  margin-bottom: 12px;
}

.faq-badge.is-green {
  background: rgba(16,185,129,0.12);
  color: #0f766e;
}

.faq-badge.is-yellow {
  background: rgba(254,199,0,0.18);
  color: #92400e;
}

.faq-badge.is-blue {
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
}

.faq-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.faq-card-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-list {
  padding: 10px 12px 14px;
}

/* FAQ item */
.faq-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  margin: 10px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 14px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: #f1f5f9;
}

.faq-icon {
  font-size: 20px;
  color: #10b981;
  transition: transform .25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 14px 14px;
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-zabdi {
    margin: 40px auto;
  }

  .faq-title {
    font-size: 1.6rem;
  }

  .faq-list {
    padding: 10px 10px 14px;
  }

  .faq-item {
    margin: 8px;
  }
}
/* =========================
   MATERIA DETALLE (Zabdi)
========================= */
.materia-detail {
  max-width: 1100px;
  margin: 35px auto;
  padding: 0 10px;
}

.materia-header {
  text-align: center;
  margin-bottom: 18px;
}

.materia-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.materia-header .back-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  transform: translateY(-1px);
}

.materia-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.materia-subtitle {
  color: #64748b;
  max-width: 650px;
  margin: 10px auto 0;
  line-height: 1.55;
}

.materia-card {
  background: #fff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
  border: 1px solid rgba(2, 6, 23, 0.06);
  margin: 20px auto 20px;
  overflow: hidden;
}

.materia-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
}

.materia-image img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  transform: scale(1.01);
}

.materia-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.materia-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.materia-meta li {
  color: #334155;
  border: 1px solid rgba(2, 6, 23, 0.05);
  padding: 10px 12px;
  border-radius: 14px;
}

.materia-meta li strong {
  color: #0f172a;
}

.materia-actions{
  display:flex;
  flex-direction:column;        /* 1 botón + link debajo */
  align-items:center;           /* centrado */
  gap:10px;
  margin-top: 8px;
}

.materia-actions .btn{
  min-width: 220px;
  justify-content: center;
}

.materia-wpp-link{
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease;
}

.materia-wpp-link:hover{
  opacity: 1;
  transform: translateY(-1px);
}


.materia-content {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.06);
}

.materia-content h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px;
}

.materia-content ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.65;
}

.materia-content li {
  margin: 6px 0;
}
/* ===== Panels / Chips (mejora Zabdi) ===== */
.materia-sections{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.materia-panel{
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.06);
}

.materia-panel-head h3{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.materia-panel-head p{
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.55;
}

/* Highlights */
.materia-highlights{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.highlight{
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.05);
  padding: 12px;
  border-radius: 16px;
  transition: transform .18s ease, background .18s ease;
}

.highlight:hover{
  transform: translateY(-2px);
  background: rgba(2, 6, 23, 0.04);
}

.highlight .material-symbols-rounded{
  font-size: 22px;
  color: #0f172a;
  opacity: .85;
}

.highlight strong{
  display: block;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.highlight small{
  color: #64748b;
  font-weight: 600;
}

/* Chips */
.materia-chips{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.06);
  color: #0f172a;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  user-select: none;
}

.chip .material-symbols-rounded{
  font-size: 18px;
  opacity: .9;
}

.chip:hover{
  transform: translateY(-2px);
  background: rgba(22, 163, 74, 0.08);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}

/* Banner */
.materia-banner{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  background: linear-gradient(180deg, rgba(22,163,74,.08), rgba(2,6,23,.02));
}

.materia-banner-text h4{
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
}

.materia-banner-text p{
  margin: 6px 0 0;
  color: #64748b;
  font-weight: 600;
  line-height: 1.5;
}

.materia-banner-badge{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(2, 6, 23, 0.06);
}

.materia-banner-badge .material-symbols-rounded{
  font-size: 22px;
  color: #16a34a;
}

.materia-banner-badge strong{
  display: block;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.materia-banner-badge small{
  color: #64748b;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1000px){
  .materia-highlights{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Responsive */
@media (max-width: 900px) {
  .materia-detail {
    margin: 20px auto;
  }
  .materia-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .materia-image {
    min-height: 200px;
  }
  .materia-header h1 {
    font-size: 1.7rem;
  }
}
@media (max-width: 700px){
  .materia-banner{
    grid-template-columns: 1fr;
  }
}