:root {
  --color-coffee: #654321;
  --color-coffee-dark: #4a3219;
  --color-coffee-light: #8b7355;
  --color-latte: #e6d9cc;
  --color-cappuccino: #d8ccc0;
  --color-mocha-light: #c8b6a6;
  --color-almond: #efe5dc;
  --color-gradient-start: #8b7355;
  --color-gradient-end: #654321;
  --color-white: #ffffff;
  --color-off-white: #f9f5f2;
  --color-black: #1a1a1a;
  --color-gray-50: #f9f6f4;
  --color-gray-100: #f2ede9;
  --color-gray-200: #e5ddd7;
  --color-gray-300: #d4c9c1;
  --color-gray-400: #b3a69b;
  --color-gray-500: #8c7f73;
  --color-gray-600: #6d6258;
  --color-gray-700: #50473f;
  --color-gray-800: #362f29;
  --color-gray-900: #211c18;

  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Poppins", Arial, sans-serif;


  --shadow-sm: 0 2px 4px 0 rgba(101, 67, 33, 0.08);
  --shadow: 0 2px 5px 0 rgba(101, 67, 33, 0.15), 0 1px 3px 0 rgba(101, 67, 33, 0.1);
  --shadow-md: 0 5px 8px -1px rgba(101, 67, 33, 0.18), 0 3px 5px -1px rgba(101, 67, 33, 0.12);
  --shadow-lg: 0 12px 18px -3px rgba(101, 67, 33, 0.2), 0 5px 8px -2px rgba(101, 67, 33, 0.15);
  --shadow-xl: 0 22px 28px -5px rgba(101, 67, 33, 0.25), 0 12px 12px -5px rgba(101, 67, 33, 0.18);

  --border-radius-sm: 0.125rem;
  --border-radius: 0.25rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-2xl: 1rem;
  --border-radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-gray-50);
  color: var(--color-gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx_font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--color-coffee);
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* Contenedores y secciones */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-decoration-color: var(--color-coffee);
}

/* Ajustes generales para la navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--color-coffee);
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
  /* Permitir que los elementos se ajusten en pantallas pequeñas */
}

.navbar__logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-coffee);
  transition: transform 0.3s ease;
}

.navbar__logo:hover {
  transform: scale(1.05);
}

.navbar__logo i {
  margin-right: 0.5rem;
  color: var(--color-coffee);
}

/* Menú principal (visible en escritorio) */
.navbar__menu {
  display: none;
  /* Oculto por defecto en móviles */
  align-items: center;
  flex-wrap: nowrap;
  margin-left: auto;
}

.navbar__menu-item {
  margin-left: 1rem;
  font-weight: 500;
  position: relative;
}

.navbar__menu-item a {
  color: var(--color-gray-700);
  transition: color 0.2s ease;
  padding: 0.5rem;
  display: inline-block;
}

.navbar__menu-item a:hover {
  color: var(--color-coffee);
}

.navbar__menu-item--active a {
  color: var(--color-coffee);
}

.navbar__menu-item--active a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-coffee);
  transform: scaleX(0.7);
  transition: transform 0.3s ease;
}

.navbar__menu-item--active a:hover::after {
  transform: scaleX(1);
}

/* Botón de menú móvil */
.navbar__toggle {
  display: block;
  font-size: 1.5rem;
  color: var(--color-coffee);
  transition: all 0.2s ease;
  padding: 0.25rem;
  border-radius: var(--border-radius-sm);
}

.navbar__toggle:hover {
  color: var(--color-coffee-dark);
  background-color: var(--color-latte);
}

/* Menú móvil */
.navbar__mobile {
  display: none;
  /* Oculto por defecto */
  padding: 1rem;
  border-top: 1px solid var(--color-gray-200);
  background-color: var(--color-white);
  width: 100%;
}

.navbar__mobile.hidden {
  display: none;
}

.navbar__mobile.active {
  display: block;
  /* Mostrar cuando está activo */
}

.navbar__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.navbar__mobile-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar__mobile-item a,
.navbar__mobile-item button {
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all 0.2s ease;
  padding: 0.5rem;
  width: 100%;
  text-align: left;
  border-left: 3px solid transparent;
}

.navbar__mobile-item a:hover,
.navbar__mobile-item button:hover {
  color: var(--color-coffee);
  border-left-color: var(--color-coffee);
  background-color: var(--color-latte);
}

.navbar__mobile-item img.navbar__profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.navbar__mobile-item .navbar__notification-badge {
  margin-left: 0.5rem;
  font-size: 10px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

/* Estilos para el perfil */
.navbar__profile {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar__profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.navbar__profile-img:hover {
  transform: scale(1.1);
}

.navbar__notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.navbar__notification-badge.hidden {
  display: none;
}

/* Menú desplegable del perfil */
.navbar__profile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-md);
  z-index: 1000;
  min-width: 180px;
  padding: 0.5rem 0;
}

.navbar__profile-menu.active {
  display: block;
}

.navbar__profile-menu a,
.navbar__profile-menu button {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-gray-700);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.navbar__profile-menu a:hover,
.navbar__profile-menu button:hover {
  background-color: var(--color-latte);
  color: var(--color-coffee);
}

/* Media Queries para responsividad */
@media (min-width: 768px) {
  .navbar__menu {
    display: flex;
  }

  .navbar__toggle {
    display: none;
  }

  .navbar__mobile {
    display: none !important;
  }

  .navbar__profile-img {
    width: 36px;
    height: 36px;
  }

  .navbar__notification-badge {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .navbar__profile-menu {
    top: calc(100% + 8px);
    right: -8px;
  }
}

@media (max-width: 767px) {
  .navbar__container {
    padding: 0.75rem;
  }

  .navbar__logo {
    font-size: 1.1rem;
  }

  .navbar__profile-img {
    width: 32px;
    height: 32px;
  }

  .navbar__notification-badge {
    width: 16px;
    height: 16px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }

  .navbar__profile-menu {
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
  }
}

@media (min-width: 1024px) {
  .navbar__container {
    padding: 1rem 2rem;
  }

  .navbar__menu-item {
    margin-left: 1.5rem;
  }

  .navbar__profile-img {
    width: 40px;
    height: 40px;
  }

  .navbar__notification-badge {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/*Sección de Inicio*/
.hero {
  padding: 3rem 1rem;
  background-color: var(--color-cappuccino);
}

.hero__container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__image img {
  max-width: 450px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero__content {
  flex: 1;
  min-width: 280px;
}

.hero__title {
  font-size: 2.2rem;
  color: #5d4037;
  margin-bottom: 1rem;
}

.hero__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4e342e;
  margin-bottom: 0.8rem;
}

.hero__description code {
  background-color: #fff2e0;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
  }
}

.hero__image img {
  max-width: 300px;
}

.hero__image img {
  max-width: 450px;
  width: 100%;
  border-radius: 1rem;
  border: 4px solid #8d6e63;
  /* Color marrón suave */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero__image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cabecera del Repositorio */
.repo-header {
  background: linear-gradient(to right, var(--color-cappuccino), var(--color-cappuccino));
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -10px 20px -10px rgba(0, 0, 0, 0.2);
}

.repo-header::before {
  content: none;
}

.repo-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--color-latte), var(--color-coffee-light), var(--color-latte));
}

.repo-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.repo-header__description {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: var(--color-coffee);
}

@media (min-width: 768px) {
  .repo-header__title {
    font-size: 3rem;
    color: var(--color-coffee);
  }
}

/* Sección de búsqueda */
.search-section {
  background-color: var(--color-white);
  padding: 2rem 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.search-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.search-box {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-box input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-coffee);
  box-shadow: 0 0 0 3px rgba(101, 67, 33, 0.1);
}

.search-button {
  background-color: #8b7355;
  color: var(--color-white);
  padding: 0 1.5rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-color: #6d5a44;
  /* Café medio */
}

.filter-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-gray-700);
}

.filter-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius-md);
  background-color: var(--color-white);
  font-size: 0.875rem;
  color: var(--color-gray-800);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236d6258' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--color-coffee);
  box-shadow: 0 0 0 3px rgba(101, 67, 33, 0.1);
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background-color: var(--color-latte);
  color: var(--color-coffee);
}

@media (min-width: 768px) {
  .filter-container {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: end;
  }
}

/* Pestañas de navegación */
.tabs-section {
  padding: 1rem 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}

.tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.tab-button {
  padding: 0.75rem 1.25rem;
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: var(--color-latte);
  color: var(--color-coffee);
}

.tab-button.active {
  background-color: #8b7355;
  color: var(--color-white);
}

.tab-button i {
  font-size: 0.875rem;
}

/* Secciones de recursos */
.section-header::before {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  margin: 0 auto 1.5rem auto;
  border-radius: 10px;
  background: linear-gradient(to right, transparent, var(--color-coffee), transparent);
}

.resources-section {
  padding: 2rem 0;
}

.resources-section--alt {
  background-color: var(--color-gray-50);
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-coffee);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: none;
}

.section-description {
  color: var(--color-gray-600);
  max-width: 700px;
  margin: 0 auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.resources-grid--documents {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid--documents {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .resources-grid--documents {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjetas de recursos */
.resource-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-coffee-light);
}

.resource-card__image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.resource-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.resource-card__format {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-coffee);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.resource-card__duration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.resource-card__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(101, 67, 33, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.resource-card:hover .resource-card__play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.resource-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resource-card__category {
  background-color: #8b7355;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  margin-bottom: 0.75rem;
}

.resource-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-coffee);
  line-height: 1.3;
}

.resource-card__author {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.resource-card__description {
  color: var(--color-gray-700);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.resource-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.resource-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  width: 100%;
}

/* Estilos específicos para tarjetas de documentos */
.document-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.document-card__icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  margin-right: 0;
  transition: all 0.3s ease;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-white);
  color: var(--color-gray-700);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-200);
}

.pagination__link:hover {
  background-color: var(--color-latte);
  color: var(--color-coffee);
  border-color: var(--color-coffee-light);
}

.pagination__link--active {
  background-color: var(--color-coffee);
  color: var(--color-white);
  border-color: var(--color-coffee);
}

.pagination__dots {
  color: var(--color-gray-600);
  padding: 0 0.5rem;
}

.pagination__link--next {
  font-size: 0.875rem;
}

/* Sección CTA */
.cta-section {
  padding: 4rem 0;
  background-color: var(--color-latte);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23654321' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-content {
  text-align: center;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-coffee);
  margin-bottom: 1rem;
}

.cta-description {
  color: var(--color-gray-700);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.cta-image {
  display: none;
}

.cta-image img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-container {
    flex-direction: row;
    align-items: center;
    padding: 3rem;
  }

  .cta-content {
    flex: 1;
    text-align: left;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .cta-image {
    display: block;
    flex: 1;
  }

  .cta-title {
    font-size: 2rem;
  }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-align: center;
  border: 2px solid var(--color-coffee);
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn:hover {
  background-color: var(--color-coffee-light);
  transform: scale(1.05);
  border: var(--color-coffee);
  border-radius: 1.5rem;
  color: white;
}

.hero__boton-volver {
  text-align: right;
  margin-top: 30px;
  padding-right: 2rem;

  .btn-volver {
    background-color: #ffffff;
    color: var(--color-coffee-dark);
    border: #7a4e12;
    border-radius: 1.5rem;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: right;
  }

  .btn-volver:hover {
    background-color: var(--color-coffee-light);
    transform: scale(1.05);
    border: var(--color-coffee);
    border-radius: 1.5rem;
    color: white;
  }

  .btn--outline {
    background-color: transparent;
    color: #8b7355;
    border-color: #8b7355;
    text-decoration: #1a1a1a;
  }

  .btn--outline:hover {
    background-color: var(--color-cappuccino);
    color: #6d5a44;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(139, 115, 85, 0.2);
  }

  .btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-color: #7a4e12;
    text-decoration: var(--color-coffee-dark);
  }

  /* Animaciones y efectos adicionales */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  .fa-spin {
    animation: spin 1s linear infinite;
  }

  /* Ajustar el tamaño de los botones para que se vean completos */
  .resource-card__actions .btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex: 1;
  }

  /* En pantallas más grandes, mostrar los botones en fila */
  @media (min-width: 480px) {
    .resource-card__actions {
      flex-direction: row;
    }
  }
}

/* Estilos para el contenedor del perfil */
.navbar__profile {
  position: relative;
}

/* Estilos para el icono de perfil */
.navbar__profile-icon {
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  /* Ajusta el color según tu diseño */
}

/* Estilos para el menú desplegable */
.navbar__profile-menu {
  display: none;
  /* Oculto por defecto */
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 10px;
  z-index: 1000;
}

/* Estilos cuando el menú está activo (visible) */
.navbar__profile-menu.active {
  display: block;
  /* Mostrar cuando tiene la clase 'active' */
}

/* Estilos para los elementos dentro del menú */
.navbar__profile-menu a,
.navbar__profile-menu button {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.navbar__profile-menu a:hover,
.navbar__profile-menu button:hover {
  background-color: #f0f0f0;
  color: #007bff;
  /* Ajusta el color según tu diseño */
}

.pagination__link--disabled {
  pointer-events: none;
  opacity: 0.5;
}

.book-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-cappuccino);
  padding-top: 1rem;
  margin-top: 1rem;
}

.comment-card__footer {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--color-gray-200);
  padding-top: 1rem;
}

.footer__quote {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: dark var(--color-coffee);
  font-size: 1.05rem;
  border-left: 3px solid rgba(148, 79, 0, 0.803);
  padding-left: 1rem;
}

.footer__philosophy-text {
  line-height: 1.5;
  color: var(--color-coffee);
  margin-bottom: 1.5rem;
}

/* Aseguramos que el footer tenga un buen espaciado */
.footer__heading {
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer__heading:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: rgba(178, 80, 0, 0.806);
}

.footer {
  background-color: var(--color-mocha-light);
  color: var(--color-gray-800);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Cambiar el patrón de fondo */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23654321' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.15;
}

/* Cambiar el efecto de onda en la parte superior */
.footer::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  transform: rotate(180deg);
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-coffee);
}

.footer__logo::after {
  display: none;
  /* Oculta todas las líneas similares */
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-coffee);
  border-radius: var(--border-radius-full);
}

.footer__description {
  color: var(--color-gray-700);
  margin-bottom: 1.5rem;
}

.footer__heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-coffee);
}

.footer__heading::after {
  display: none;
  /* Oculta todas las líneas similares */
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-coffee);
  border-radius: var(--border-radius-full);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--color-gray-700);
  transition: all 0.3s ease;
  padding-left: 0;
}

.footer__link::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer__link:hover {
  color: var(--color-coffee);
  transform: translateX(20px);
}

.footer__link:hover::before {
  opacity: 1;
  left: 0;
}

.footer__form {
  display: flex;
  margin-top: 1rem;
}

.footer__input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-cappuccino);
  background-color: var(--color-white);
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  outline: none;
  transition: all 0.3s ease;
}

.footer__input:focus {
  border-color: var(--color-coffee);
  box-shadow: 0 0 0 3px rgba(101, 67, 33, 0.15);
}

.footer__button {
  padding: 0.75rem 1rem;
  background-color: var(--color-coffee);
  color: var(--color-white);
  border: none;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer__button:hover {
  background-color: var(--color-coffee-dark);
  transform: translateX(3px);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-cappuccino);
  position: relative;
  z-index: 1;
}

.footer__copyright {
  color: var(--color-gray-700);
  text-align: center;
}

.footer__social {
  display: flex;
  gap: 1.5rem;
}

.footer__social-link {
  color: var(--color-coffee);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.footer__social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-coffee-light);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.footer__social-link:hover {
  color: var(--color-white);
  transform: translateY(-5px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.footer__social-link:hover::before {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__copyright {
    text-align: left;
  }
}