:root {
  --primary-gradient: linear-gradient(135deg, #20e6e0 0%, #0d35ad 100%);
  --primary-color: rgb(50, 147, 212);
  --accent-color: #20e6e0;
  --text-color: #333;
  --background-color: #fff;
  --gray-light: #f5f5f5;
  --box-shadow: -5px 5px 40px rgba(50, 147, 212, 0.3);
}


/* Mobile & Tablet overlay behavior for filters (<=1024px) */
@media (max-width: 1024px) {
  .search-section {
    grid-template-columns: 1fr;
  }

  .filters-toggle {
    display: block;
  }

  /* Fullscreen overlay, hidden by default. Use !important to override desktop rule */
  .filters-sidebar {
    display: none !important;
    position: fixed;
    top: 10vh;
    left: 0;
    right: 0;
    bottom: 10vh;
    background: white;
    z-index: 1001;
    overflow: hidden; /* the inner content scrolls */
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  .filters-sidebar.active {
    display: flex !important;
  }

  .filters-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    z-index: 10;
    flex-shrink: 0;
  }

  .filters-content {
    flex: 1;
    padding: 1rem;
    padding-bottom: 140px; /* room for apply button */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
  }

  .apply-filters-btn {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
  }

  /* Hero section adjustments for tablets and mobile */
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .graduate-img {
    max-width: 400px;
  }

  .search-section-header h1 {
    font-size: 2.8rem;
  }
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Reglas específicas para texto */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
label,
button,
a {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
  white-space: normal;
}

/* Estilos específicos generales para Headings */

h2 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.titulos-h2 {
  color: var(--primary-color);
}


.centered-h2 {
  text-align: center;
  margin: 0rem 0rem 4rem 0rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {

  .titulos-h2 {
    font-size: 3rem;

  }

  .centered-h2 {
    font-size: 3rem;
  
  }

}

@media (max-width: 480px) {

  .titulos-h2 {
    font-size: 2.5rem;

  }

    .centered-h2 {
    font-size: 2.5rem;
  
  }
  
}

/* Elementos específicos que necesitan manejo especial de texto */
.university-name,
.university-location,
.university-type,
.university-price {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
}

.forum-post h3,
.forum-post .role,
.forum-post .content {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
}

.filter-option label {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Navbar */
.navbar {
  background: var(--background-color);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  margin: 0;
  left: 0;
  right: 0;
  height: 5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Arial";
}

.gradient-text {
  background: var(--primary-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.nav-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-center a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-center a:hover {
  color: var(--primary-color);
}

.nav-auth {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-login {
  background: none;
  border: 2px solid #ddd;
  cursor: pointer;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.btn-login:hover {
  border-color: #bbb;
}

/* Main content */
main {
  margin-top: 80px;
  width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.hero {
  padding: 4rem 0 0 0;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 0 1rem 0 4rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  padding-bottom: 4rem;
  padding-left: 0;
  padding-right: 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -5px;
}

.graduate-img {
  max-width: 500px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.hero .btn-primary {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: var(--box-shadow);
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

/* Universities section */
.universities {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.university-card {
  background: rgb(255, 255, 255);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0px 0px 20px rgba(160, 160, 160, 0.5);
}

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

.university-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
}

.university-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.university-info {
  padding: 1.5rem;
}

.university-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.university-location {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.university-location i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.university-type {
  font-size: 0.9rem;
  color: white;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
}

.gestion-privada {
  background-color: var(--primary-color);
}

.gestion-publica {
  background-color: #666666;
}

.university-price {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.university-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  color: white;
  font-weight: 600;
}

.rating-number {
  font-size: 1rem;
}

/* Forum section */
.forum {
  background: var(--primary-gradient);
  padding: 4rem 0;
  color: white;
  width: 100%;
  margin: 0;
}

.forum h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: white;
}

.forum-posts {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.forum-post {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 300px;
  max-width: 400px;
  min-width: 280px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.forum-post .user-info {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  height: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

.forum-post .profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.forum-post .user-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.forum-post h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-post .role {
  font-size: 0.9rem;
  color: #666;
  margin: 0.3rem 0 0 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-post .content {
  color: var(--text-color);
  line-height: 1.6;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* Signup section */
.signup {
  padding: 4rem 1rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

#signup-form input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Footer */
footer {
  background: var(--primary-gradient);
  padding: 4rem 0 2rem;
  color: white;
  width: 100%;
  margin: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 300px));
  gap: 3rem;
  justify-content: center;
  padding: 0 1rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-section h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Search Section */
.search-section {
  max-width: 1600px;
  margin: 3rem auto;
  min-height: 800px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

.filters-sidebar {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  height: fit-content;
  margin: 2rem 0;
  border: 1px solid rgba(50, 147, 212, 0.5);
}

.main-content {
  flex: 1;
  padding: 2rem 2rem 2rem 2rem;
}

.search-section-header {
  margin-bottom: 2rem;
  padding: 0rem 2rem;
}

.search-section-header p {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
  padding-left: 4px;
}

.search-bar {
  margin-bottom: 1rem;
  width: 100%;
  padding: 0rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Desktop behavior for mobile-buttons-row */
.mobile-buttons-row {
  display: contents;
}

/* Hide filters button in desktop inside the search bar */
.mobile-buttons-row .filters-toggle {
  display: none;
}

.search-bar input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-bar input:hover {
  border-color: #ccc;
  box-shadow: -5px 5px 30px rgba(32, 230, 224, 0.2);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: -5px 5px 30px rgba(32, 230, 224, 0.3);
}

.search-results-count {
  padding: 0 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.search-results-count span {
  font-weight: 600;
  color: var(--primary-color);
}

.sort-container {
  position: relative;
}

.sort-button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sort-button:hover {
  transform: translateY(-2px);
  box-shadow: -5px 5px 30px rgba(32, 230, 224, 0.3);
}

.sort-button i {
  font-size: 1.1rem;
}

.sort-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  display: none;
  z-index: 1000;
  min-width: 200px;
}

.sort-dropdown.active {
  display: block;
}

.sort-option {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-color);
  transition: all 0.2s ease;
  border-radius: 4px;
}

.sort-option:hover {
  background: var(--gray-light);
}

.sort-option i {
  width: 20px;
  color: var(--primary-color);
}

.sort-indicator {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--primary-color);
  opacity: 0;
}

.sort-option.active .sort-indicator {
  opacity: 1;
}

.sort-option.asc .sort-indicator::before {
  content: "↑";
}

.sort-option.desc .sort-indicator::before {
  content: "↓";
}

.filter-group {
  margin-bottom: 2.5rem;
}

.filter-group h4 {
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  color: var(--text-color);
}

/* Menú móvil y responsividad */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
}

.filters-toggle {
  display: none;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 1rem;
  font-weight: bold;
  width: 100%;
}

.filters-toggle i {
  margin-right: 0.5rem;
}

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

.close-filters {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-only {
  display: none;
}

.apply-filters-btn {
  display: none;
  width: 100%;
  margin-top: 1rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.apply-filters-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(25, 101, 199, 0.3);
}

@media (max-width: 1400px) {
  .university-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    padding: 0 2rem;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .forum-posts {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .forum-post {
    max-width: 100%;
    width: 100%;
    margin: 0;
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .university-grid {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .university-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  html,
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  * {
    box-sizing: border-box;
  }

  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-container {
    grid-template-columns: auto auto;
    padding: 0 1rem;
    width: 100%;
    margin: 0;
  }

  .navbar {
    padding: 1rem 0;
    width: 100%;
    margin: 0;
  }

  .nav-center {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
  }

  .nav-center.active {
    display: flex;
  }

  .nav-auth.desktop-only {
    display: none;
  }

  .nav-auth.mobile-only {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: calc(100% - 2rem);
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .nav-auth.mobile-only .btn-login,
  .nav-auth.mobile-only .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-auth.mobile-only .btn-login {
    border: 2px solid #ddd;
    background: white;
    color: var(--text-color);
  }

  .search-section {
    grid-template-columns: 1fr;
    padding: 0rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content {
    padding: 1rem 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .filters-toggle {
    display: block;
  }

  .filters-sidebar {
    display: none;
    position: fixed;
    top: 10vh;
    left: 0;
    right: 0;
    bottom: 10vh;
    background: white;
    z-index: 1001;
    /* El contenedor no scrollea, lo hace el contenido */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
  .filters-sidebar.active {
    display: flex;
  }

  .filters-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    z-index: 10;
    flex-shrink: 0;
  }

  .close-filters {
    display: block;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .close-filters:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
  }

  .filters-content {
    flex: 1;
    padding: 1rem;
    /* Dejar espacio para el botón flotante si se usa fixed */
    padding-bottom: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0; /* necesario para que flex permita scroll */
  }

  .apply-filters-btn {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1002;
    box-sizing: border-box;
    max-width: calc(100vw - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(25, 101, 199, 0.3);
  }

  .forum-posts {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .forum-post {
    height: auto;
    min-height: 300px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
  }

  .hero {
    padding: 4rem 0 0 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;

  }

  .hero-text {
    max-width: 100%;
    padding-bottom: 2rem;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    word-wrap: break-word;
    hyphens: none;
  }

  .hero-image {
    width: 100% !important;
    text-align: center !important;
    margin-top: 0;
    margin-bottom: -5px;
  }

  .graduate-img {
    max-width: 300px;
    display: inline-block !important;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
    margin: 0;
  }

  footer {
    width: 100%;
    margin: 0;
    padding: 4rem 0 2rem;
  }

  .forum {
    width: 100%;
    margin: 0;
    padding: 4rem 0;
  }

  .search-section-header {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .search-section-header h1 {
    font-size: 2.5rem;
    text-align: center;
    word-wrap: break-word;
    hyphens: none;
  }

  .search-section-header p {
    font-size: 1.1rem;
    word-wrap: break-word;
    hyphens: none;
  }

  .load-more-button {
    width: 90%;
    max-width: 400px;
    margin: 1rem auto;
    border-radius: 12px !important;
  }

  .search-bar {
    flex-direction: column;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 1rem;
  }

  .search-bar input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Contenedor para los botones Filtros y Ordenar en mobile/tablet */
  .mobile-buttons-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    box-sizing: border-box;
  }

  /* Botón Filtros en mobile/tablet - 70% del ancho */
  .mobile-buttons-row .filters-toggle {
    display: flex;
    flex: 1 1 70%;
    margin-bottom: 0;
    height: auto;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Contenedor del botón Ordenar en mobile/tablet - 30% del ancho */
  .sort-container {
    flex: 1 1 30%;
    box-sizing: border-box;
  }

  .sort-button {
    width: 100%;
    justify-content: center;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    font-size: 0.9rem;
    padding: 0.8rem 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sort-dropdown {
    width: 100%;
  }
}

@media (min-width: 1025px) {
  .nav-center {
    display: flex !important;
  }

  .filters-sidebar {
    display: block !important;
  }

  .apply-filters-btn {
    display: none !important;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .forum-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1000px;
  }

  .forum-post {
    max-width: 100%;
    margin: 0;
    width: 100%;
  }
}

/* Removed tablet-specific media query to use mobile behavior for tablets */

/* Consolidated into main @media (max-width: 1024px) rule above */

/* Estilos para el botón "Cargar más" */
.load-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem auto;
  padding: 1rem 2.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.load-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(25, 101, 199, 0.5);
}

.load-more-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.load-more-button:hover i {
  transform: translateY(3px);
}

/* Careers page styles */


.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.area-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.area-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.area-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.career-count {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.popular-careers {
  padding: 4rem 1rem;
}

.careers-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.career-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.career-item h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.universities-count {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* New careers page hero section with cyan gradient */
.careers-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #00e6cc 0%, #0099cc 100%);
  color: white;
  text-align: center;
}

.careers-hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.careers-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
  font-weight: 700;
}

.careers-hero p {
  font-size: 1.2rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* New careers grid section with modern card design */
.careers-grid-section {
  padding: 4rem 6rem;
  background: #f8f9fa;
  width: 100%;
}

.careers-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  width: 100%;
  align-items: stretch;
}

.career-area-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}

.career-area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.career-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
}

/* Different colored icons for each career area */
.tech-icon {
  background: #4285f4;
}

.health-icon {
  background: #ea4335;
}

.economics-icon {
  background: #34a853;
}

.design-icon {
  background: #9c27b0;
}

.humanities-icon {
  background: #ff9800;
}

.social-icon {
  background: #2196f3;
}

.law-icon {
  background: #424242;
}

.international-icon {
  background: #00bcd4;
}

.agrarian-icon {
  background: #4caf50;
}

.career-count {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.career-area-card h3 {
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 3.4rem;
  display: flex;
  align-items: flex-start;
}

.career-area-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
  min-height: 3rem;
  display: flex;
  align-items: flex-start;
}

.career-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.career-list li {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.more-link {
  color: var(--primary-color);
  font-weight: 500;
}

.btn-view-careers {
  width: 100%;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  flex-shrink: 0;
}

.btn-view-careers:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Vocational test call-to-action section */
.vocational-cta {
  padding: 4rem 1rem;
  background: white;
  text-align: center;
}

.vocational-cta h2 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 600;
}

.vocational-cta p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-vocational-test {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 230, 224, 0.3);
}

.btn-vocational-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 224, 0.4);
}

/* Responsive design for careers page */
@media (max-width: 1400px) and (min-width: 1025px) {
  .careers-areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .careers-areas-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .careers-hero h1 {
    font-size: 2.5rem;
  }

  .careers-hero p {
    font-size: 1.1rem;
  }

  .careers-grid-section {
    padding: 2rem 1rem;
  }

  .careers-areas-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0;
    width: 100%;
  }

  .career-area-card {
    padding: 1.5rem;
    min-height: 380px;
  }

  .career-area-card h3 {
    min-height: 2.8rem;
    font-size: 1.2rem;
  }

  .career-area-card p {
    min-height: 2.5rem;
    font-size: 0.9rem;
  }

  .vocational-cta h2 {
    font-size: 1.8rem;
  }

  .vocational-cta p {
    font-size: 1rem;
  }
}

/* University Page Styles - Legacy styles removed, now using ITBA structure */

/* Faculties Section */
.faculties-section {
  padding: 5rem 1rem;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.faculties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.faculty-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

/* Faculty Icons Colors */
.agronomia-icon { background: #4caf50; }
.arquitectura-icon { background: #ff9800; }
.economicas-icon { background: #9c27b0; }
.exactas-icon { background: #4285f4; }
.sociales-icon { background: #2196f3; }
.veterinarias-icon { background: #795548; }
.derecho-icon { background: #424242; }
.farmacia-icon { background: #e91e63; }
.filosofia-icon { background: #ff5722; }
.ingenieria-icon { background: #34a853; }
.medicina-icon { background: #ea4335; }
.odontologia-icon { background: #00bcd4; }
.psicologia-icon { background: #673ab7; }

.faculty-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
}

.faculty-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
  flex-grow: 1;
}

.faculty-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.stat-item i {
  color: var(--primary-color);
  width: 16px;
}

.btn-view-faculty {
  width: 100%;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-view-faculty:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* University Stats */
.university-stats {
  padding: 4rem 1rem;
  background: white;
}

.university-stats h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 3rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-color), #667eea);
  border-radius: 16px;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Responsive Design for Faculties Page */
@media (max-width: 768px) {

  .faculties-section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .faculties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faculty-card {
    padding: 1.5rem;
    min-height: 280px;
  }

  .faculty-card h3 {
    font-size: 1.2rem;
    min-height: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .university-stats h2 {
    font-size: 2rem;
  }
}

/* ITBA Hero Section Styles (used by UBA and other universities) */
.universidad-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
  color: white;
  padding: 6rem 1rem 4rem;
  text-align: center;
  position: relative;
}

.universidad-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

.universidad-hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.universidad-logo {
  margin-bottom: 2rem;
}

.universidad-logo img {
  height: 160px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.universidad-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.universidad-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  font-weight: 300;
}

.universidad-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.universidad-stats .stat-item {
  text-align: center;
}

.universidad-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.universidad-stats .stat-label {
  font-size: 1rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* University Info Section */
.university-information {
  padding: 5rem 1rem;
  background: white;
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
}

.university-description {
  text-align: center;
  margin-bottom: 4rem;
}

.university-description h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.university-description p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

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

.info-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.info-card p {
  color: #666;
  line-height: 1.5;
  font-size: 1rem;
}

/* Responsive for ITBA Hero and University Info */
@media (max-width: 768px) {
  .universidad-hero {
    padding: 4rem 1rem 3rem;
  }

  .universidad-hero h1 {
    font-size: 2.2rem;
  }

  .universidad-subtitle {
    font-size: 1.1rem;
  }

  .universidad-stats {
    gap: 2rem;
  }

  .universidad-stats .stat-number {
    font-size: 2rem;
  }

  .universidad-logo img {
    height: 80px;
  }

  .university-information {
    padding: 3rem 1rem;
  }

  .university-description h2 {
    font-size: 2rem;
  }

  .university-description p {
    font-size: 1.1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-card {
    padding: 1.5rem;
  }
}

/* Universities page styles */
.universities-section {
  padding: 4rem 1rem;
  background: #f8f9fa;
}

.university-types {
  padding: 4rem 2rem;
}

/* ========================================
   UNIVERSITY SPECIFIC STYLES (ITBA & UBA)
   ======================================== */

/* UBA Page Specific Styles - Based on ITBA Design */

/* Hero Section */
.universidad-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Make navbar logo act as clean home link */
.logo a {
    text-decoration: none;
}

.universidad-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.universidad-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.universidad-logo {
    margin-bottom: 2rem;
}

.universidad-logo img {
    height: 160px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.universidad-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.universidad-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 400;
}

.universidad-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.universidad-stats .stat-item {
    text-align: center;
}

.universidad-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.universidad-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* University Information Section */
.university-information {
    padding: 4rem 0;
    background: #f8f9fa;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Removed duplicate .info-grid - using the one from university pages */

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.5s ease;
}

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

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

.university-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.university-description h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.university-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Faculties Section (UBA) */
.faculties-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.faculties-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-header h2.primary-title {
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Removed duplicate .faculties-grid - using the one from earlier */

.faculty-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.faculty-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 3.6rem;
    display: flex;
    align-items: center;
}

.faculty-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.faculty-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.faculty-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.faculty-stats .stat-item i {
    color: var(--primary-color);
    width: 16px;
}

.btn-view-faculty {
    width: 100%;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-view-faculty:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Faculty Icons Colors */
.agronomia-icon { background: #4caf50; }
.arquitectura-icon { background: #ff9800; }
.economicas-icon { background: #9c27b0; }
.exactas-icon { background: #4285f4; }
.sociales-icon { background: #2196f3; }
.veterinarias-icon { background: #795548; }
.derecho-icon { background: #424242; }
.farmacia-icon { background: #e91e63; }
.filosofia-icon { background: #ff5722; }
.ingenieria-icon { background: #34a853; }
.medicina-icon { background: #ea4335; }
.odontologia-icon { background: #00bcd4; }
.psicologia-icon { background: #673ab7; }

/* Careers Section (ITBA) */
.careers-section {
    padding: 4rem 6rem;
    background: white;
}

.careers-container {
    margin: 0 auto;
    padding: 0 1rem;
}

.careers-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.careers-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.career-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.career-header {
    margin-bottom: 1rem;
}

.career-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.career-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 1400px) {
  .careers-section {
      padding: 4rem 2rem;
  }
}

@media (max-width: 1024px) {
    .careers-section {
        padding: 4rem 1rem;
    }
}

@media (max-width: 768px) {
  .careers-section {
      padding: 4rem 4rem;
  }
}

@media (max-width: 580px) {
  .careers-section {
      padding: 4rem 1rem;
  }
}

/* Scholarships Section */
.scholarships-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.scholarships-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.scholarships-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.scholarships-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.scholarship-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
}

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

.scholarship-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scholarship-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.scholarship-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0;
}

.scholarship-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.scholarship-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.scholarship-details .detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.scholarship-details .detail-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Subforum Section */
.subforum-section {
    padding: 4rem 0;
    background: white;
}

.subforum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.subforum-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subforum-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.forum-category {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
}

.forum-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.forum-category h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.forum-category p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.join-forum {
    text-align: center;
}

/* Materials Section */
.materials-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.materials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.materials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.materials-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.materials-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.material-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0;
}

.material-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.material-item:hover {
    background: #e9ecef;
}

.material-name {
    font-weight: 500;
    color: var(--text-color);
}

.material-count {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.upload-section {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.upload-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-section p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* University Stats Section (UBA) */
.university-stats {
    padding: 4rem 0;
    background: white;
}

.university-stats h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Removed duplicate .stats-grid - using the one from earlier */

/* Removed duplicate .stat-card - using the one from earlier */

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design for University Pages */
/* Responsive breakpoint for careers-grid < 1400px */
@media (max-width: 1400px) {
    .careers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .faculties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .careers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .universidad-stats {
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .universidad-hero {
        padding: 4rem 0 3rem;
    }
    
    .universidad-hero h1 {
        font-size: 2.5rem;
    }
    
    .universidad-subtitle {
        font-size: 1.1rem;
    }
    
    .universidad-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .universidad-logo img {
        height: 80px;
        width: auto;
    }
    
    .university-description h2 {
        font-size: 2rem;
    }
    
    .university-description p {
        font-size: 1rem;
    }
    
    .faculties-section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .faculties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faculty-card {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    .faculty-card h3 {
        font-size: 1.2rem;
        min-height: 3rem;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .career-card {
        padding: 1rem;
    }
    
    .career-card h3 {
        font-size: 1rem;
    }
    
    .university-stats {
        padding: 3rem 0;
    }
    
    .university-stats h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .scholarships-grid,
    .subforum-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-categories {
        grid-template-columns: 1fr;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .universidad-hero h1 {
        font-size: 2rem;
    }
    
    .universidad-logo img {
        height: 60px;
        width: auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .faculty-card {
        padding: 1rem;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.type-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.type-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.type-card ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.type-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.type-card li:before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Vocational guidance styles */
.vocational-section {
  padding: 4rem 1rem;
  background: #f8f9fa;
}

.vocational-container {
  margin: 1rem 4rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  background: var(--primary-gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.test-features {
  padding: 4rem 1rem;
  margin: 4rem;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cta-section {
  padding: 4rem 1rem;
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-color);
  margin-top: 1rem;
}

/* Scholarships styles */
.scholarships-section {
  padding: 4rem 1rem;
  background: #f8f9fa;
}

/* .scholarships-container rule removed to avoid conflict */

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

.scholarship-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scholarship-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.scholarship-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.scholarship-card li {
  padding: 0.3rem 0;
  color: #666;
}

.scholarship-card li:before {
  content: "•";
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.available-count {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

.featured-scholarships {
  padding: 4rem 1rem;
  margin: 1rem 4rem;
}

.scholarships-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.scholarship-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.scholarship-info h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.scholarship-description {
  color: #666;
  margin-bottom: 1rem;
}

.scholarship-details {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.deadline,
.coverage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.application-process {
  padding: 4rem 1rem;
  background: #f8f9fa;
}

.application-process-div {
  margin: 1rem 4rem;
}

/* Forum styles */
.forum-section {
  padding: 4rem 1rem;
  margin: 4rem;
}

.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.forum-categories {
  margin-bottom: 2rem;
}

.category-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.8rem 1.5rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  background: var(--primary-gradient);
  color: white;
}

.forum-posts {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.forum-post {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 1rem;
}

.post-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.post-content {
  flex: 1;
}

.post-header h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.category {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.post-excerpt {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.post-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.post-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.forum-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-btn,
.page-btn {
  padding: 0.8rem 1.2rem;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn.active,
.pagination-btn:hover,
.page-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.forum-stats {
  padding: 4rem 1rem;
  background: #f8f9fa;
}

.forum-container {
  margin: 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}


.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 1rem;
}


/* Logo link styling */
.logo a {
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .forum-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .scholarship-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .scholarship-details {
    justify-content: center;
    flex-wrap: wrap;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .types-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Map Section Styles */
.map-section {
  padding: 4rem 0;
  background: #fafbfc;
}

.map-header {
  text-align: center;
  margin-bottom: 3rem;
}

.map-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #1965c7; /* Fallback para navegadores que no soportan background-clip */
}

.map-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.map-container {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #e9ecef;
}

.university-map {
  height: 500px;
  width: 100%;
  border-radius: 20px;
  filter: hue-rotate(10deg) saturate(0.8) brightness(1.05);
}

.map-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 400;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-marker.public {
  background-color: #1ca5d4;
}

.legend-marker.private {
  background-color: #1965c7;
}

/* Custom Marker Styles */
.custom-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid white;
}

.marker-pin i {
  transform: rotate(45deg);
  color: white;
  font-size: 14px;
}



/* Custom Popup Styles */
.custom-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 280px;
}

.custom-popup .leaflet-popup-content {
  margin: 15px 20px;
  line-height: 1.4;
  font-size: 14px;
  min-width: 240px;
}

.university-popup h3 {
  color: var(--primary-color);
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: none;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.popup-info {
  margin-bottom: 15px;
}

.popup-info p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
}

.popup-info i {
  margin-right: 8px;
  width: 16px;
  color: var(--primary-color);
}

.popup-description {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.4;
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.popup-link {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.popup-link:hover {
  background: var(--secondary-color);
  color: white;
}

/* Responsive Map Styles */
@media (max-width: 1024px) {
  .load-more-button {
    width: 70%;
    max-width: 350px;
    border-radius: 25px !important;
  }
  
  .map-section {
    padding: 3rem 1rem;
  }
  
  .map-header h2 {
    font-size: 2rem;
  }
  
  .university-map {
    height: 400px;
  }
  
  .map-container {
    max-width: 95%;
    margin: 0 auto;
    border-radius: 16px;
  }
  
  .university-map {
    border-radius: 16px;
  }
  
  .map-legend {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Solo icono para tablet - sin pin */
  .marker-pin {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
  }
  
  .marker-pin::after {
    display: none !important;
  }
  
  .marker-pin.public,
  .marker-pin.private {
    background: transparent !important;
  }
  
  .marker-pin i {
    font-size: 22px !important;
    transform: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  }
  
  .marker-pin.public i {
    color: #1ca5d4 !important;
  }
  
  .marker-pin.private i {
    color: #1965c7 !important;
  }

  /* Popup en tablet */
  .custom-popup .leaflet-popup-content-wrapper {
    min-width: 300px;
    max-width: 400px;
  }
  
  .custom-popup .leaflet-popup-content {
    min-width: 280px;
    max-width: 380px;
  }
}

@media (max-width: 480px) {
  .map-section {
    padding: 2rem 0.5rem;
  }
  
  .university-map {
    height: 350px;
  }
  
  .map-container {
    max-width: 98%;
    border-radius: 14px;
  }
  
  .university-map {
    border-radius: 14px;
  }
  
  .map-header h2 {
    font-size: 1.8rem;
  }
  
  .map-header p {
    font-size: 1rem;
  }
  
  /* Solo icono para móvil y tablet - sin pin */
  .marker-pin {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  
  .marker-pin::after {
    display: none !important;
  }
  
  .marker-pin.public,
  .marker-pin.private {
    background: transparent !important;
  }
  
  .marker-pin i {
    font-size: 24px !important;
    transform: none !important;
    z-index: 1 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  }
  

  /* Popup responsive mejorado */
  .custom-popup .leaflet-popup-content-wrapper {
    min-width: 260px !important;
    max-width: 85vw !important;
    box-sizing: border-box !important;
  }
  
  .custom-popup .leaflet-popup-content {
    min-width: 240px !important;
    max-width: calc(85vw - 32px) !important;
    margin: 12px 16px !important;
    font-size: 13px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  
  .university-popup {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .university-popup h3 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .popup-info p {
    font-size: 0.85rem !important;
    margin: 4px 0 !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .popup-description {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .popup-link {
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
  }
}

/* Career image styling for exact and natural sciences page */
.career-image {
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
}

.career-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CTA buttons styling */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-btn {
  margin: 0.5rem;
}

/* Career content layout organization */
.career-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 180px;
}

.career-title {
  font-weight: 700 !important;
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.career-description {
  color: #666 !important;
  line-height: 1.4 !important;
  margin-bottom: auto !important;
  flex-grow: 1;
  font-size: 0.95rem !important;
  font-weight: normal !important;
}

.career-stats {
  margin-top: 0.5rem;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Responsive adjustments for career images */
@media (max-width: 768px) {
  .career-image {
    height: 180px;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
  }
  
  .career-title {
    font-size: 1.2rem;
  }
}

/* ============================================================================
   ESTILOS PARA MODALES DE AUTENTICACIÓN
   ============================================================================ */

/* Overlay del modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
}

/* Modal base */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenido del modal */
.modal-content {
  background: white;
  margin: 2% auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header del modal */
.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
}

.close:hover,
.close:focus {
  color: var(--primary-color);
}

/* Body del modal */
.modal-body {
  padding: 2rem;
  box-sizing: border-box;
}

/* Formularios de autenticación */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Fila de formulario (para nombre y apellido) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Grupos de formulario */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.9rem;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(50, 147, 212, 0.1);
}

.form-group input:invalid {
  border-color: #ff4757;
}

/* Input de contraseña con toggle */
.password-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.password-input input {
  width: 100%;
  padding-right: 50px;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--primary-color);
}

/* Indicador de fortaleza de contraseña */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background-color: #e1e5e9;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Opciones del formulario */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Checkbox personalizado */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  gap: 0.75rem;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Enlaces */
.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Botones de autenticación */
.auth-btn {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Botón de Google */
.btn-google {
  background: white;
  border: 2px solid #e1e5e9;
  color: #333;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-google:hover {
  border-color: #4285f4;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-google i {
  color: #4285f4;
  font-size: 1.1rem;
}

/* Divisor */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 1rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5e9;
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Cambio de formulario */
.auth-switch {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Mensajes de error */
.error-message {
  color: #ff4757;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
  font-weight: 500;
}

/* Spinner de carga */
.loading-spinner {
  display: none;
}

.loading-spinner i {
  animation: spin 1s linear infinite;
}

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

/* Mensaje de éxito */
.success-message {
  text-align: center;
  padding: 2rem;
  color: #2ed573;
}

.success-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.success-message p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Texto de recuperar contraseña */
.forgot-password-text {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Menú de usuario */
.user-menu {
  position: relative;
}

.user-button {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: bold;
}

.user-button:hover {
  background: var(--primary-color);
  color: white;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  display: none;
  margin-top: 0.5rem;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background-color: #f8f9fa;
}

.user-dropdown i {
  width: 16px;
  color: #666;
}

/* Responsive para modales */
@media (max-width: 768px) {
  .modal {
    padding: 15px;
  }
  
  .modal-content {
    margin: 5% auto;
    max-width: 100%;
    width: calc(100% - 30px);
  }
  
  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .checkbox-container {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    width: calc(100% - 20px);
    margin: 10px auto;
  }
  
  .modal-header,
  .modal-body {
    padding: 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .form-group input {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

/* ============================================================================
   SISTEMA DE ESTADO DE SESIÓN - PREVENCIÓN DE PARPADEOS
   ============================================================================ */

/* Por defecto, mostrar botones de login (estado "fuera") */
.nav-auth {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Ocultar menú de usuario por defecto */
.nav-auth .user-menu {
  display: none;
}

/* Estados de sesión */
html[data-session-state="dentro"] .nav-auth .btn-login,
html[data-session-state="dentro"] .nav-auth .btn-primary {
  display: none;
}

html[data-session-state="dentro"] .nav-auth .user-menu {
  display: block;
}

html[data-session-state="fuera"] .nav-auth .user-menu {
  display: none;
}

html[data-session-state="fuera"] .nav-auth .btn-login,
html[data-session-state="fuera"] .nav-auth .btn-primary {
  display: inline-block;
}
