/* Dashboard - Sistema de Seguimiento de Amparos (AJUSTADO) */
:root{
  --dash-bg: #f3f3f3;
  --dash-card: #ffffff;

  --dash-shadow: 0 10px 18px rgba(0,0,0,.18);

  --dash-radius: 12px;

  --dash-wine: #8d1633;
  --dash-wine-dark: #6d0f25;
  --dash-gold: #b68b3a;
  --dash-green: #1c5c4a;

  --dash-title: #1d6b6b;
  --dash-title-strong: #0b3f3f;
  --dash-underline: #c58a3a;
}

/* =========================
   CONTENEDOR
========================= */
#templateDer #contGral.dash-wrap{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px;
  min-height: calc(100vh - 80px);
  background: transparent;
}

/* =========================
   HEADER / TÍTULO
========================= */
#templateDer #contGral .dash-header{
  text-align: center;
  margin: 8px 0 22px;
}

#templateDer #contGral .dash-title{
  margin: 0;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--dash-title);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

#templateDer #contGral .dash-title strong{
  font-weight: 800;
  color: var(--dash-title-strong);
}

#templateDer #contGral .dash-title::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(650px, 88vw);
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--dash-underline) 12%,
    var(--dash-underline) 88%,
    transparent 100%
  );
  border-radius: 2px;
}

/* =========================
   GRID
========================= */
#templateDer #contGral .dash-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px 26px;
  justify-items: start;
  align-items: start;
}

/* 4ta tarjeta abajo a la izquierda */
#templateDer #contGral .dash-grid .dash-card:nth-child(4){
  grid-column: 1 / 2;
}

/* =========================
   TARJETA (FIX REAL)
========================= */
#templateDer #contGral .dash-card{
  position: relative;
  display: flex;
  align-items: center;

  width: 100%;
  max-width: 360px;
  min-height: 86px;

  

  background: var(--dash-card);
  border-radius: var(--dash-radius);
  overflow: hidden; /* recorta el círculo dentro */

  box-shadow: var(--dash-shadow);
  text-decoration: none;

  transition: transform .12s ease, box-shadow .12s ease;
}

#templateDer #contGral .dash-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0,0,0,.22);
}

/* Bloque de color a la izquierda */
#templateDer #contGral .dash-card__band{
  position: relative;

  width: 92px;
  min-height: 86px;
  flex: 0 0 92px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background: var(--dash-wine);

  border-radius: 12px 12px 50px 14px; /* BR más pronunciada */
  overflow: hidden; /* recorta el círculo dentro */


  /* crea stacking context y asegura orden */
  z-index: 1;
}

#templateDer #contGral .dash-card__band::after{
  content: "";
  position: absolute;

  /* tamaño del círculo */
  width: 120px;
  height: 120px;
  border-radius: 999px;

  background: inherit;

  right: -32px;
  top: 50%;
  transform: translateY(-50%);

  /* abajo del icono y del texto */
  z-index: 0;
}

/* Icono encima del círculo */
#templateDer #contGral .dash-card__icon{
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
  display: block;
}

/* Texto: SIEMPRE arriba y con espacio para que el círculo no lo tape */
#templateDer #contGral .dash-card__text{
  position: relative;
  z-index: 3;           /* arriba del círculo */
  padding: 0 18px 0 46px; /* compensa la invasión del círculo */
  line-height: 1.05;
}

#templateDer #contGral .dash-card__line{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* =========================
   VARIANTES DE COLOR
========================= */
#templateDer #contGral .dash-card--wine .dash-card__band{ background: var(--dash-wine); }
#templateDer #contGral .dash-card--gold .dash-card__band{ background: var(--dash-gold); }
#templateDer #contGral .dash-card--green .dash-card__band{ background: var(--dash-green); }
#templateDer #contGral .dash-card--winedark .dash-card__band{ background: var(--dash-wine-dark); }

#templateDer #contGral .dash-card--wine .dash-card__text{ color: var(--dash-wine); }
/* VF: el texto de esta variante usaba el mismo --dash-gold que el círculo
   decorativo de fondo (#b68b3a), lo que daba 3.11:1 sobre blanco (WCAG2AA
   exige 4.5:1). Se separa un color de texto propio, más oscuro, sin tocar
   --dash-gold (lo sigue usando el círculo, que es puramente decorativo). */
#templateDer #contGral .dash-card--gold .dash-card__text{ color: #9a6f1e; }
#templateDer #contGral .dash-card--green .dash-card__text{ color: var(--dash-green); }
#templateDer #contGral .dash-card--winedark .dash-card__text{ color: var(--dash-wine-dark); }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  #templateDer #contGral .dash-grid{
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
  #templateDer #contGral .dash-grid .dash-card:nth-child(4){
    grid-column: auto;
  }
  #templateDer #contGral .dash-card{
    max-width: 100%;
  }
}

@media (max-width: 560px){
  #templateDer #contGral .dash-grid{
    grid-template-columns: 1fr;
  }
}