/* Fondo general del formulario */
form {
  max-width: unset !important;
  margin: unset !important;
  padding: unset !important;
}

body {
  hyphens: unset !important;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  margin: 0; /* Elimina márgenes por defecto */
  padding: 0; /* Elimina padding por defecto */
  height: 100%; /* Asegura que el fondo cubra toda la pantalla */
}

html {
  height: 100%; /* Asegura que el fondo cubra todo el documento */
}

form {
  max-width: 800px;
  margin: 40px auto; /* Centra el formulario en la página */
  padding: 30px;
}

/* Inputs de texto, textarea y selects */
/* Input, select, and textarea styling */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-left: 3px solid #333 !important;
  border-bottom: 3px solid #333 !important;
  border-top: 2px solid #333 !important;
  border-right: 2px solid #333 !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s ease !important;
  background-color: #fff !important;
}

/* On focus state */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-left: 3px solid #007bff; /* Blue left border on focus */
  border-bottom: 3px solid #007bff; /* Blue bottom border on focus */
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: #007bff; /* Borde azul al enfocar */
  background-color: #f8f9fa;
  outline: none;
}

/* Estilo para el botón de guardar */
button.guardar,
input.guardar,
a.guardar {
  background-color: #ffcc00; /* Amarillo para el botón guardar */
  color: #000; /* Texto en negro */
  font-size: 16px; /* Tamaño del texto */
  font-weight: bold;
  border: 2px solid #000; /* Borde negro */
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-radius: 25px; /* Bordes redondeados */
  padding: 10px 30px; /* Espaciado interno */
  cursor: pointer; /* Cambiar cursor al pasar */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
  text-transform: uppercase;
}

/* Estilo para el botón cancelar */
button.cancelar,
input.cancelar,
a.cancelar {
  background-color: #fff; /* Blanco para el botón cancelar */
  color: #000; /* Texto negro */
  font-size: 16px; /* Tamaño del texto */
  font-weight: bold;
  border: 2px solid #000; /* Borde negro */
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-radius: 25px; /* Bordes redondeados */
  padding: 10px 30px; /* Espaciado interno */
  cursor: pointer; /* Cambiar cursor al pasar */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
  text-transform: uppercase;
}

/* Efecto hover para el botón de guardar */
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: #e6b800; /* Amarillo más oscuro al pasar */
  transform: translateY(-2px); /* Elevar ligeramente el botón */
}

/* Efecto hover para el botón cancelar */
button.cancelar:hover,
input.cancelar:hover {
  background-color: #f0f0f0; /* Gris claro al pasar */
  transform: translateY(-2px); /* Elevar ligeramente el botón */
}

/* Estilo para ambos botones cuando están enfocados */
button[type="submit"]:focus,
input[type="submit"]:focus,
button.cancelar:focus,
input.cancelar:focus {
  outline: 2px solid #007bff; /* Resaltar el botón enfocado */
  outline-offset: 3px; /* Separación del contorno */
}

/* Deshabilitar los botones (opcional) */
button:disabled,
input:disabled {
  background-color: #ddd; /* Fondo gris para botones deshabilitados */
  color: #999; /* Texto gris claro */
  border-color: #ccc; /* Borde gris claro */
  cursor: not-allowed; /* Cursor de no permitido */
  transform: none; /* Quitar efecto de hover */
}

/* Estilo de botones específicos */
button[type="submit"],
input[type="submit"] {
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
}

/* Hover para todos los elementos */
input[type="text"]:hover,
input[type="email"]:hover,
select:hover,
textarea:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: #f9f9f9; /* Fondo ligeramente gris al pasar el ratón */
}

/* Foco para todos los elementos */
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus,
button[type="submit"]:focus,
input[type="submit"]:focus {
  outline: 2px solid #007bff; /* Borde azul al enfocarse */
  outline-offset: 3px;
}

/* Botones dentro del contenedor */
.buttons-container button,
.buttons-container input[type="submit"] {
  display: inline-block;
  min-width: 160px;
  width: auto;
  box-sizing: border-box;
  text-align: center;
}

.inline-fields {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.inline-fields > div {
  flex: 1;
}

.custom-fieldset {
  margin-bottom: 15px;
  border: none !important;
  padding: 0;
}

.step-title {
  margin-bottom: 20px;
}

.step-title h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding: 0;
}

.step-title .step-description {
  font-size: 14px;
  color: #666;
  margin: 5px 0 0 0;
  padding: 0;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  background-color: #fff;
  border: 2px solid #000;
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-radius: 10px;
  width: 300px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.experiencia-imagen {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.experiencia-content {
  padding: 15px;
}

.experiencia-fecha {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.experiencia-titulo {
  font-size: 18px;
  font-weight: bold;
  color: #0056b3;
  margin: 0 0 10px 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.experiencia-titulo a {
  text-decoration: none;
  color: inherit;
}

.experiencia-titulo a:hover {
  color: #003f7f;
}

.experiencia-resumen {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  max-height: 4.5em; /* Limita a 3 líneas */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.experiencia-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-top: 1px solid #ddd;
}

.like-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #dcd6d6;
  transition: transform 0.2s ease;
}

.like-button:hover {
  transform: scale(1.1);
}

.like-icon {
  font-size: 18px;
  margin-right: 5px;
}

.like-count {
  font-weight: bold;
}

.project-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.project-title {
  font-size: 24px;
  font-weight: bold;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-author span {
  font-weight: bold;
}

.project-social .social-icon {
  margin-right: 10px;
  text-decoration: none;
}

.project-main {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.project-image-wrapper {
  width: 60%;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  width: 40%;
  background-color: #fff;
  padding: 15px 15px 30px;
  border: 1px solid #ddd;
  border-radius: 5px;
  border: 2px solid #000; /* Borde negro */
  border-left-width: 3px;
  border-bottom-width: 3px;
}

.download-button {
  background-color: #ffcc00; /* Amarillo para el botón guardar */
  color: #000; /* Texto en negro */
  font-size: 16px; /* Tamaño del texto */
  font-weight: bold;
  border: 2px solid #000; /* Borde negro */
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-radius: 25px; /* Bordes redondeados */
  padding: 10px 30px; /* Espaciado interno */
  cursor: pointer; /* Cambiar cursor al pasar */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
  text-transform: uppercase;
}

.project-sections .project-section {
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f9f9f9;
  border: 2px solid #000;
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-radius: 5px;
  cursor: pointer;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
}

.section-content {
  padding: 10px;
  border: 2px solid #000;
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-radius: 5px;
  background-color: #fff;
  display: none;
}

.section-content.open {
  display: block;
}

/* Contenedor de la sección de filtros */
.filters-container {
  margin-bottom: 5px;
  border-bottom: 1px solid #ccc;
}


.filters-title {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  text-transform: uppercase;
}


.filters-row {
  display: flex;
  gap: 10px; 
  overflow-x: auto; 
  padding-bottom: 5px; 
}


.filters-row::-webkit-scrollbar {
  height: 6px; 
}

.filters-row::-webkit-scrollbar-thumb {
  background: #007bff; 
  border-radius: 5px; 
}

.filters-row::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.filters-row {
  scrollbar-width: thin;
  scrollbar-color: #007bff #f1f1f1;
}


.filter-select{
  padding: 5px 10px;
  font-size: 10px; 
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  white-space: nowrap; 
  height: auto;
}

.filter-button {
  background-color: #ffcc00;
  color: #000;
  font-size: 12px; 
  font-weight: bold;
  border: 2px solid #000;
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-radius: 25px;
  padding: 5px 15px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-button:hover {
  background-color: #e6b800;
}

.filter-reset {
  background-color: #fff;
  color: #666;
  border-color: #999;
}

.filter-reset:hover {
  background-color: #f0f0f0;
  color: #000;
}

@media (max-width: 768px) {
  .filter-select, .filter-button, .add-button {
    width: 48%;
  }

  .project-main {
    flex-direction: column;
  }

  .project-image-wrapper,
  .project-info {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .filter-select, .filter-button, .add-button {
    width: 100%;
  }
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 50px auto;
  padding: 20px;
  background-color: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
}

.no-results h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

.no-results p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.no-results img {
  margin-top: 20px;
  max-width: 100px;
  opacity: 0.8;
}

.like-button.liked {
  color: rgb(219, 128, 128); 
}


@media (max-width: 600px) {
  .filters-row {
    flex-direction: column;
    gap: 5px; 
  }
}

/* Paginador */
.pager-container {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}

.pager-container nav,
.pager-container .pager {
  display: flex;
  justify-content: center;
}

.pager-container ul.pager__items {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager-container .pager__item a,
.pager-container .pager__item.is-active span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 2px solid #000;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pager-container .pager__item a:hover {
  background-color: #ffcc00;
}

.pager-container .pager__item.is-active span {
  background-color: #ffcc00;
}

.pager-container .pager__item--previous a,
.pager-container .pager__item--next a,
.pager-container .pager__item--first a,
.pager-container .pager__item--last a {
  border-radius: 25px;
  padding: 0 12px;
  min-width: auto;
}
