@font-face {
  font-family: 'Albertus Nova';
  src: url('/fonts/AlbertusNova.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Albertus Nova', 'Times New Roman', serif;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}

:root {
  --main-color: #042354;
  --text-color: #ffffff;
  --other-color: #0000;
  --secondary-color: #d97b54;
  --bg-color: #fef2e6;
  --big-font-size: 4.5rem;
  --h2-font-size: 2.6rem;
  --p-font-size: 1.1rem;
}

body {
  background-color: var(--bg-color);
  color: var(--main-color);
}

header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  padding: 30px;
  background: var(--main-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 33px;
  font-weight: 700;
}

.navlist {
  display: flex;
  gap: 30px 50px;
}

.navlist a {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.5s ease;
}

.navlist a:hover {
  color: var(--secondary-color);
}

.navlist a.active {
  color: var(--secondary-color);
}

main {
  padding-top: 110px;
}

.hero {
  background: #ffffff;
  color: #042354;
  padding: 60px 14%;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 55%;
}

.subtitle {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #4a4a4a;
}

.hero-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-box {
  background: var(--text-color);
  border-radius: 24px;
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.hero-box h3 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.hero-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5b5b5b;
}

.hero-image {
  max-width: 40%;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
  }

  .hero-text,
  .hero-image {
    max-width: 100%;
  }

  .hero-boxes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  header {
    padding: 20px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

/* BUSQUEDA */
.busqueda-section {
  padding: 60px 20px;
  background: var(--text-color);
}

.busqueda-container {
  max-width: 1000px;
  margin: 0 auto;
}

.busqueda-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--main-color);
  margin-bottom: 10px;
}

.busqueda-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

.busqueda-box {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-wrapper input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s;
  background: white;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 4px rgba(4, 35, 84, 0.15);
}

.search-btn {
  padding: 15px 30px;
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 35, 84, 0.4);
}

.search-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  color: #555;
}

.filter-btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

.filter-btn.active {
  background: var(--main-color);
  color: white;
  border-color: var(--main-color);
}

.search-results {
  margin-top: 30px;
}

.search-placeholder {
  text-align: center;
  padding: 40px;
  color: #999;
}

.search-placeholder p {
  margin-top: 10px;
  font-size: 1.1rem;
}

.result-card {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-left: 5px var(--main-color) solid;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-card .result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.result-card .result-curso {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
}

.result-card .result-docente {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.result-card .result-comentario {
  color: #444;
  line-height: 1.6;
  margin-top: 8px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.95rem;
}

.result-card .result-meta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.result-card .result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #888;
}

.no-results i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 15px;
}

.searching-indicator {
  text-align: center;
  padding: 20px;
  color: var(--main-color);
  font-weight: 500;
}

.searching-indicator .spinner-small {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--main-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .search-wrapper {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .result-card .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* REVIEWS */
.reviews-section {
  background: #ffffff;
  padding: 60px 14%;
}

.section {
  background: var(--secondary-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.tab-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 20px;
  background: var(--text-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.tab.active {
  background: var(--main-color);
  color: white;
}

.tab:hover {
  transform: translateY(-2px);
}

.teacher-card {
  background: var(--text-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid var(--main-color);
  transition: 0.2s;
}

.teacher-card:hover {
  transform: translateX(5px);
}

.teacher-card .rank {
  display: inline-block;
  background: var(--main-color);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  margin-right: 10px;
}

.teacher-card .name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.teacher-card .score {
  float: right;
  background: var(--main-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .teacher-card .score {
    float: none;
    display: inline-block;
    margin-top: 10px;
  }
}

.teacher-card .details {
  margin-top: 10px;
  color: #666;
}

.teacher-card .details span {
  display: inline-block;
  background: #e9ecef;
  padding: 3px 10px;
  border-radius: 12px;
  margin: 3px 5px 3px 0;
  font-size: 0.85rem;
}

.teacher-card .comment {
  margin-top: 10px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid #042354;
  color: #555;
  font-style: italic;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-box .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #042354;
}

.stat-box .label {
  color: #666;
}

.error {
  background: #f44336;
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #666;
}

.reviews-title {
  font-size: 2rem;
  text-align: center;
  margin: 40px 0 20px;
  color: #042354;
}

/* CONTRIBUIR */
.contribuir-section {
  background: #ffffff;
  padding: 60px 20px;
}

.contribuir-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contribuir-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 10px;
}

.contribuir-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.contribuir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .contribuir-grid {
    grid-template-columns: 1fr;
  }
}

.contribuir-beneficios {
  background: var(--text-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contribuir-beneficios h3 {
  color: #1a1a2e;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contribuir-beneficios ul {
  list-style: none;
  padding: 0;
}

.contribuir-beneficios ul li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 1rem;
}

.contribuir-beneficios ul li:last-child {
  border-bottom: none;
}

.contribuir-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--main-color);
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

.contribuir-formulario {
  background: var(--text-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contribuir-formulario h3 {
  color: #1a1a2e;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.btn-contribuir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px 35px;
  background: var(--main-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(4, 35, 84, 0.4);
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-contribuir:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(4, 35, 84, 0.6);
  color: white;
}

.btn-contribuir i {
  font-size: 1.2rem;
}

.btn-contribuir i:last-child {
  transition: transform 0.3s;
}

.btn-contribuir:hover i:last-child {
  transform: translateX(8px);
}

.btn-contribuir-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--text-color);
  color: var(--main-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--main-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-contribuir-secondary:hover {
  background: var(--main-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 35, 84, 0.3);
}