.dashboard-main {
  padding: 30px 40px;
  color: #333;
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.search-bar {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  width: 250px;
}

.date {
  font-size: 14px;
  color: #888;
}

/* Welcome Card */
.welcome-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 260px; 
}


.logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.welcome-text {
  flex: 1 1 auto;
}

.welcome-text h2 {
  font-size: 2rem;
  color: #1a237e;
  margin: 0;
}

.welcome-text p {
  font-size: 1.1rem;
  color: #424242;
  margin: 0.5rem 0 0;
}

.btn-primary {
  background: #3c5e20;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* Classes Section */
.classes-section {
  margin-bottom: 30px;
}

.class-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 15px;
  align-items: start;
}

.class-card {
  padding: 20px;
  border-radius: 16px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 70px;
  transition: box-shadow 0.2s;
}

.class-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-card .info-icon {
  font-size: 1.5rem;
  margin-left: 0.5rem;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.class-card .card-desc {
  opacity: 0;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(.4,2,.6,1), opacity 0.4s;
  pointer-events: none;
  margin: 0;
  padding-top: 0.5rem;
  will-change: max-height, opacity;
}

.class-card.active .card-desc {
  opacity: 1;
  max-height: 500px;
  pointer-events: auto;
}

.class-card.active .info-icon {
  opacity: 1;
}

.class-card .card-header h4 {
  margin-bottom: 0;
}

.class-card p {
  font-size: 13.5px;
}

/* Colores de tarjetas */
.card-green1 { background: #1a4314; }
.card-green2 { background: #2c5e1a; }
.card-green3 { background: #2f5233; }
.card-green4 { background: #84c25e; }
.card-green5 { background: #76b947; }
.card-green6 { background: #94ca9c; }
.card-green7 { background: #9dc78b; }

/* Intro Section */
.intro-section {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

/* sitios de interes */
.interest-section {
  margin: 40px 0;
  text-align: center;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0 10px;
}

.tag {
  display: inline-block;
  background-color: #eff8ee;
  color: #333;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.tag:hover {
  background-color: #2d5a1f;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-main {
    padding: 20px;
  }

  .search-bar {
    width: 100%;
  }

  .welcome-card {
    flex-direction: column;
    text-align: center;
  }

  .welcome-image {
    text-align: center;
    margin-top: 15px;
  }
}

@media (max-width: 600px) {
  .logo-container {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    max-width: 160px;
  }

  .welcome-text h2 {
    font-size: 1.5rem;
  }

  .welcome-text p {
    font-size: 1rem;
  }
}

/*Presentacion y grafica */

.presentacion-dashboard-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0 2.5rem 0;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Tarjeta de presentación */
.presentacion-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
    padding: 2rem 2.5rem;
    flex: 1 1 320px;
    min-width: 280px;
    /* max-width: 540px; */
    display: flex;
    flex-direction: column;   
    align-items: center;  
    font-size: 1.15rem;
    color: #222;
    line-height: 1.7;
    justify-content: center;
}

.presentacion-card p{
  font-size: 18px;
}

/* Tarjeta de gráfica */
.grafica-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
    padding: 2rem 2.5rem;
    flex: 1 1 380px;
    min-width: 320px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.highcharts-figure {
    width: 100%;
    margin: 0;
}

#container2-inicio {
    min-width: 260px;
    min-height: 260px;
    width: 100%;
    height: 320px;
    margin: 0 auto;
}

#custom-legend-inicio {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1600px) {
    .presentacion-dashboard-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .presentacion-card, .grafica-card {
        max-width: 100%;
        padding: 1.2rem 1rem;
    }
    #container2-inicio {
        height: 260px;
        min-width: 180px;
    }
    .presentacion-card p{
      font-size: 15px;
    }
}

.class-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.class-card {
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 270px;
    box-sizing: border-box;
    width: 270px;
}

@media (max-width: 600px) {
  .class-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .class-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}