:root {
  --gray: #f9f9f9;
  --border: #e0e0e0;
  --blue: #1665d8;
  --gray-dark: #4b4b4b;
  --text-light: #777;
  --radius: 12px;
}

body {
  font-family: 'Lato', 'Inter', system-ui, sans-serif;
  background: #f1f5f9;
  margin: 0;
  padding: 0;
  color: #333;
}


.dashboard-container {
  padding: 32px 0;
  display: flex;
  gap: 32px;
  width: 100%;
}

.dashboard-sidebar {
  position: sticky;
  top: 15px;
  width: 100%;
  max-width: 300px;
  height: 100%;
  flex-shrink: 0;
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.07);
}

.dashboard-main {
  flex: 1;
}

.dashboard-sidebar h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.dashboard-sidebar p {
  margin-bottom: 5px;
  font-size: 0.875rem;
  color: var(--gray-dark);
}

.section-title {
  color: var(--text-light);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem;
}

.menu-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  margin-bottom: 5px;
  border-radius: var(--radius);
  color: var(--gray-dark);
  background: transparent;
  transition: background 0.2s ease-in-out, color 0.2s;
  text-decoration: none !important;
}

.menu-button:hover {
  background: #f1f5ff;
  color: var(--blue);
  text-decoration: none !important;
}

.menu-button:focus {
  outline: none;
  text-decoration: none !important;
}

.menu-button.active {
  background: #095ca4;
  color: white;
  text-decoration: none !important;
}

.menu-button.active .icon {
  filter: brightness(0) invert(1);
}

.menu-button.active .label {
  color: white !important;
}

.menu-button.active .chevron {
  color: white;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  margin-right: 5px;
}

.label {
  flex-grow: 1;
  color: #4D4D4D;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none !important;
}

.chevron {
  font-size: 1rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.menu-button,
.menu-button *,
.menu-button:hover *,
.menu-button:focus *,
.menu-button.active *,
.page-content .menu-button,
.page-content .menu-button *,
.page-content .menu-button .label {
  text-decoration: none !important;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.title-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.title-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4D4D4D;
  font-family: Inter, sans-serif;
  line-height: 1.2;
}

.kpi-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: 'Lato', sans-serif;
}

.kpi-card {
  flex: 1;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.07);
}

.kpi-heading {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 2rem;
  font-weight: bold;
  color: #1E3A8A;
  margin: 0;
}

.kpi-blue {
  color: #1665d8;
}

.dashboard-note {
  margin-top: 2rem;
  color: #777777;
  font-size: 14px;
}

.dashboard-box {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.07);
  padding: 20px;
}

/* ========== RESPONSIVE ADAPTATION ========== */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    gap:16px;
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
    max-width: unset !important;
    border-radius: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-main {
    padding: 1rem;
  }

  .kpi-cards {
    flex-direction: column;
  }

  .kpi-card {
    width: 100%;
  }
}


/* === Formulario Publicaci��n === */

.form-publicacion {
  margin-top: 0;
}

.contenedor-publicacion {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-grid-superior,
.form-grid-inferior {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  flex: 1 0 0;
  background: #fff;
  border-radius: 12px;
  padding: 25px 24px;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.07);
  border: 1px solid #E2E8F0;
}

.form-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 1rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
  font-family: 'MonstroSolid','Arial Black';
}

.form-card label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
  display: block;
  width: 100%;
}

/* �9�3 Estilo para inputs, textareas y selects */
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-size: 15px;
  font-family: Inter, sans-serif;
  color: #555;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease-in-out;
}

.form-card textarea {
  min-height: 100px;
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: #004b94;
  outline: none;
}

.form-card input[disabled] {
  background-color: #F8F8F8;
  color: #9DA6AF !important;
  cursor: not-allowed;
}

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.form-row > label {
  flex: 1;
}

.form-submit-wrapper {
  text-align: right;
  width: 100%;
}

.form-submit {
  background: #1A5C98;
  color: white;
  font-size: 16px;
  border: none;
  padding: 10px 24px;
  border-radius: 500px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  font-family: 'MonstroSolid';
}

.form-submit:hover {
  background: #154a79;
}

/* �7�3 Estilos para el mapa Leaflet */
#map-location{
    text-align: center;
}
#map {
  height: 300px;
  width: 100%;
  border-radius: 8px;
  z-index: 1;
}

/* �7�3 Estilo horizontal para inputs de im��genes y videos */
.form-card .form-row input[type="file"] {
  border: 1px dashed #CBD5E1;
  padding: 1rem;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out;
}

.form-card .form-row input[type="file"]:hover {
  border-color: #004b94;
}

.form-card .form-row label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

.btn-ubicacion {
  background-color: var(--blue) !important;
  color: white !important;
  padding: 10px 16px;
  border: none;
  border-radius: 61px !important;
  font-weight: 600;
  cursor: pointer;
  margin: 1rem 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.btn-ubicacion:hover {
  background-color: #0e4eb3;
}


/* �9�5 Responsive */
@media (max-width: 768px) {
  .form-grid-superior,
  .form-grid-inferior,
  .form-row {
    flex-direction: column;
  }

  .form-card {
    width: 100%;
  }
}



/*############### Dashboard Perfil ###############*/
.perfil-wrapper {
  display: flex;
  justify-content: center;
  padding: 0;
  width: 100%;
  height: 100%;
}

.perfil-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
}

.perfil-heading {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-family: 'MonstroSolid', 'Arial Black', sans-serif;
  letter-spacing: 0.5px;
}

.perfil-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Grid de campos (responsive) */
.perfil-grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.perfil-field {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.perfil-field label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: #333;
}

.perfil-field input,
.perfil-field select {
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.375rem;
  height: 2.5rem;
  color: #555;
  transition: border-color 0.2s ease;
}

.perfil-field input:focus,
.perfil-field select:focus {
  border-color: #004b94;
  outline: none;
}

.perfil-field input[disabled] {
  background-color: #F8F8F8;
  color: #9DA6AF !important;
  cursor: not-allowed;
}

/* Acci��n del bot��n */
.perfil-actions {
  display: flex;
  justify-content: flex-end;
}

.perfil-btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.625rem !important;

  width: 150px !important;
  height: 40px !important;
  padding: 1rem 2.25rem !important;

  border-radius: 999px !important;
  background-color: #1A5C98 !important;

  color: #fff !important;
  font-family: 'MonstroSolid';
  font-size: 0.875rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.perfil-btn:hover {
  background-color: #154a79 !important;
}

/* Alerta */
.perfil-alerta {
  background: #e6f8ea;
  color: #207c4c;
  border: 1px solid #b6e3c3;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  max-width: 700px;
  margin: 0.625rem auto 1.25rem;
  text-align: center;
  font-weight: 500;
}

/* Adaptaci��n a m��vil */
@media (max-width: 768px) {
  .perfil-field {
    flex: 1 1 100%;
  }

  .perfil-actions {
    justify-content: center;
  }

  .perfil-btn {
    width: 100% !important;
    max-width: 300px;
  }
}

/*#############################################*/


/*############### Dashboard Mis Publicaciones ###############*/
.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.panel__title {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-family: 'MonstroSolid','Arial Black', sans-serif;
  letter-spacing: 0.5px;
}

/* Grid responsivo */
.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .publication-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .publication-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta */
.publication-card {
  max-width: 100%;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s ease;
}

.publication-card__wrapper {
  display: flex;
  flex-direction: column;
}

/* Imagen */
.publication-card__image {
  position: relative;
  overflow: hidden;
}

.publication-card__image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

/* Tags (sexo, raza) */
.publication-card__tags {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  background: #E2E8F0;
  color: #1E293B;
  white-space: nowrap;
}

.tag--sex {
  background: #F1F5F9;
  color: #334155;
}

.tag--breed {
  background: #E9F3FB;
  color: #1A5C98;
}

/* Bot��n editar */
.publication-card__edit-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #E0F2FE;
  color: #0284C7;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.publication-card__edit-btn:hover {
  background: #bae6fd;
  color: #0369a1;
}

/* Contenido */
.publication-card__content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.publication-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #FBBF24;
}

.rating-score {
  font-size: 0.8125rem;
  color: #6B7280;
}

/* Header de título + precio */
.publication-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.publication-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  flex: 1;
  line-height: 1.3;
  word-break: break-word;
  min-width: 0; /* Permite que el flex item se contraiga */
}

.publication-card__price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0; /* Evita que el precio se contraiga */
  min-width: 80px; /* Ancho mínimo para el precio */
}

.price-group__total {
  color: #1A5C98;
  font-weight: bold;
  font-size: 0.9375rem;
  white-space: nowrap; /* Evita que el precio se parta en múltiples líneas */
}

.price-group__per-kg {
  font-size: 0.8125rem;
  color: #64748B;
  white-space: nowrap; /* Evita que el precio se parta en múltiples líneas */
}

/* Responsive - En móviles cambiar a diseño vertical */
@media (max-width: 480px) {
  .publication-card__header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .publication-card__title {
    max-width: 100%;
  }
  
  .publication-card__price-group {
    align-items: flex-start;
    text-align: left;
    min-width: auto;
  }
}

/* Ubicaci��n y origen */
.publication-card__location,
.publication-card__origin {
  font-size: 0.8125rem;
  color: #4B5563;
  display: flex;
  align-items: center;
  gap: 6px;
}

/*######################CSS LOGIN#######################*/

/* === CONTENEDOR PADRE CENTRADO === */
.ganado-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

/* === CAJA DEL FORMULARIO === */
.ganado-login-box {
  background: #fff;
  border-radius: 16px;
  width: 460px;
  min-height: 360px;
  padding: 30px 30px 20px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* === T�0�1TULO === */
.ganado-login-box h2 {
  font-size: 24px;
  font-weight: normal;
  color: #4D4D4D;
  margin: 0 0 24px;
  font-family: 'MonstroSolid', sans-serif;
  text-transform: uppercase;
}

/* === ETIQUETAS === */
.ganado-login-box label {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #4D4D4D;
  font-family: 'Inter', sans-serif;
  margin-bottom: 6px;
}

/* === CAMPOS === */
.ganado-login-box input[type="text"],
.ganado-login-box input[type="password"],
.ganado-login-box input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  margin-bottom: 14px;
  font-family: Inter, sans-serif;
  box-sizing: border-box;
}

/* === CHECKBOX === */
.ganado-login-box input[type="checkbox"] {
  margin-right: 6px;
}

.ganado-login-box label[for="rememberme"] {
  font-size: 14px;
  color: #4D4D4D;
  display: inline-block;
  margin-bottom: 20px;
}

/* === BOT�0�7N DE ACCI�0�7N === */
.ganado-login-box input[type="submit"] {
  width: 100%;
  background-color: #0e4d86;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  font-family: 'MonstroSolid', sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.ganado-login-box input[type="submit"]:hover {
  background-color: #0b3d6d;
}

/* === TEXTOS INFERIORES (p, links) === */
.ganado-login-box p {
  font-size: 13px;
  color: #333;
  margin-top: 18px;
  line-height: 1.4;
  text-align: center;
  font-family: Inter, sans-serif;
}

.ganado-login-box a {
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: 500;
}

.ganado-login-box a:hover {
  color: #1665d8;
}

/* === RESPONSIVE === */
@media (max-width: 500px) {
  .ganado-login-box {
    width: 100%;
    max-width: 360px;
    padding: 24px 20px 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  }

  .ganado-login-box h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .ganado-login-box input[type="submit"] {
    font-size: 15px;
    padding: 12px;
  }

  .ganado-login-box label {
    font-size: 13px;
  }

  .ganado-login-box p {
    font-size: 12px;
  }
}

.ganado-login-box {
  background: #fff;
  border-radius: 16px;
  width: 460px;
  padding: 30px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  margin: auto;
}

.ganado-login-box h2 {
  font-size: 24px;
  font-weight: normal;
  color: #4D4D4D;
  margin-bottom: 24px;
  font-family: 'MonstroSolid', sans-serif;
  text-transform: uppercase;
}

.ganado-login-box label {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.ganado-login-box input[type="text"],
.ganado-login-box input[type="email"],
.ganado-login-box input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.ganado-btn {
  width: 100%;
  padding: 12px;
  background-color: #0D4D90;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
}

.ganado-btn:hover {
  background-color: #083b6d;
}

/* Estilos para gráficos del dashboard */
.charts-container {
  margin-top: 2rem;
}

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

.chart-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border);
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.chart-wrapper {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-wrapper canvas {
  max-width: 100%;
  max-height: 100%;
}

.no-data-message {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border);
}

.no-data-message p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

/* Responsive para tablets */
@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .chart-box {
    padding: 1rem;
  }
  
  .chart-wrapper {
    height: 250px;
  }
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .charts-container {
    margin-top: 1rem;
  }
  
  .chart-wrapper {
    height: 200px;
  }
  
  .chart-title {
    font-size: 1rem;
  }
}

/*###########################*/

/* Configuración de fuentes */
/* Aplicar Lato como fuente principal para todo el contenido */
.publication-card,
.publication-card__content,
.publication-card__title,
.publication-card__location,
.publication-card__origin,
.price-group__total,
.price-group__per-kg,
.rating-score,
.tag,
.panel__content,
.form-group label,
.form-control,
.empty-state__description {
  font-family: 'Lato', 'Inter', system-ui, sans-serif;
}

/* Aplicar Monstro Solid a títulos principales */
.panel__title,
.dashboard-sidebar h2,
.empty-state__title,
.chart-title {
  font-family: 'Monstro Solid', 'MonstroSolid', sans-serif;
}
