




:root{
  --primary-color:#616d9f;
  --secondary-color:#1c1d31;
  --third-color:#44aaac;


  --user-bg:#e6fcff;
  --admin-bg:#eae6ff;

  --firstColor:#616d9f ;
  --secondColor:#1c1d31;
}




html {
  font-size: 14px;
}
 
/********************HEADER**********************/
.brand {
  color: white;
  font-size: 12px;
  position: absolute;
  text-align: left;
  float: left;
  right: -1px;
  bottom: -5px;
}
.navbar-header {
  background-color: var(--secondary-color)  !important;
  color: white;
  padding: 0px;
  box-shadow: 0px 2px 6px 0px var(--secondary-color) ;
  height: 70px;
  z-index: 10;
  justify-content: start !important;
}
.navbar-header .title {
  font-weight: 500;
  font-size: 36px;
  line-height: 1.9;
  display: inline-block;
  height: 100%;
  letter-spacing: .2rem;
  text-transform: uppercase;
  font-family: Din;
}
.container-fluid{
  justify-content: start !important;
}
.container-monitoreo{
  padding-left: 2%;
  padding-right: 2%;
}
.nav-link-element:hover {
  opacity: 1;
  background-color: rgb(189, 184, 184);
  width: 100%;
}
.table-header{
  background-color: #34699A ;
  color:white;
}
.navbar .nav-link {
  background-color: white !important;
  color: black !important;
  padding: 7px;
}
.nav-link:hover {
  background-color: var(--third-color) !important;
  color: white !important;
  border-radius: 25px 0px 25px 0px;
  box-shadow: 0px 2px 5px rgba(62, 86, 121, 0.6);
}
.nav-item {
  font-weight: 400 !important;
}
.user-navbar {
  background:var(--secondary-color) !important;
  border-radius: 25px 0px 25px 0px;
  box-shadow: 5px 1px 10px 0px rgba(62, 86, 121, 1);
  color: var(--secondary-color)  !important;
}
/*********************HEADER*********************/


/**********************LOGIN************************/
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    

        }

        .left-side {
            flex: 1;
            background-color: #f0f2f5;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .right-side {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-box {
            width: 100%;
            max-width: 400px;
        }

        .btn-purple {
            background-color: #6f2dbd;
            color: white;
        }

        .btn-purple:hover {
            background-color: #5c1aa3;
        }

  /**********************LOGIN************************/

  /********validaciones******/

/********validaciones******/

/******MODIFICACIONES A ESTILOS DE BOOSTRAT***/
.btn-primary{
  background-color: var(--primary-color) !important;
  border: var(--primary-color) !important;
  font-weight: bolder !important;
  font-size: 1.1rem !important;
}
/******MODIFICACIONES A ESTILOS DE BOOSTRAT***/


/************************TABLES***************/
/* .header-table th {
    background-color:#212529 !important;
    color: white !important;
  }  */

  table{
  width: 100% !important;
  border-collapse: collapse;
}

table td{
  font-size: 1.1rem;
}
.tableCategorias tbody tr td:hover{
  background-color: #0d6efd  !important; /* color de fondo al pasar el mouse */
    cursor: pointer;          /* opcional, muestra el cursor de mano */
    transition: background-color 0.3s ease !important; /* efecto suave */
    color: #fff !important;
}

.tableCategorias tbody tr:hover td {
    color: #0d6efd; /* azul Bootstrap */
    font-weight: 600;
}

.tableCategorias tbody tr.selected,
.tableCategorias tbody tr.selected td {
    background-color: #0d6efd !important; /* fuerza el azul */
    color: #fff !important;              /* fuerza texto blanco */
    font-weight: bold;
}






/***********************TABLES***************/


/*********************BREADCRUMS************/
.breadcrumbs {
    margin: auto;
    width: 93%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-top: -15px;
    margin-bottom: 15px;
    padding-left: 50px;
    color: #53565a;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 3vh;
    animation: fadeIn;
    animation-duration: 2s;
}
.breadcrumb{
  margin-bottom: 0px;
}

.mat-icon-cicle-breadcrumbs {
    padding: 5px;
    border-radius: 12px !important;
    margin-left: 32px !important;
    margin-right: 12px !important;
}

.tracking-in-expand {
    margin-left: -20px;
    -webkit-animation: tracking-in-expand 1.7s cubic-bezier(0.215, 0.61, 0.355, 1) both;
    animation: tracking-in-expand 1.7s cubic-bezier(0.215, 0.61, 0.355, 1) both;
    color: #1c1d31 !important;
    font-weight: bolder;
    font-size: 4vh !important;
}

    .tracking-in-expand > mat-icon {
        padding-right: 12px;
    }

@-webkit-keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/*********************BREADCRUMS************/

/******************MODAL****************/
label.error {
  color: red;  
  margin-top: 0.25rem;
  font-weight: lighter;
}



.card {
    border-radius: 20px !important;         /* bordes redondeados */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* sombra suave */
    overflow: hidden;            /* asegura que los bordes redondeados se apliquen bien */
}

.table thead th {
    background-color: #f5f5f7;   /* gris claro */
    color: #6c757d;             /* gris oscuro para el texto */
    font-weight: 600;           /* semi-negrita */
    text-transform: uppercase;  /* todo en mayúsculas */
    font-size: 0.9rem;          /* un poco más pequeño */
    border-bottom: none;        /* sin borde inferior fuerte */
    padding: 12px 16px;
    border-radius: 10px;
}

.table tbody td {
    padding: 12px 16px;         /* coherencia en espaciado */
    vertical-align: middle;
}

.table {
    border-collapse: separate;
    border-spacing: 0 8px;      /* espacio entre filas */
}

.table tr {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/**************ROLES**************/
.role{
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
}

.role::before{
  font-family: "Font Awesome 6 Free"; /* Font Awesome expone cada uno de sus iconos como un glifo (carácter) dentro de una fuente tipográfica*/
  font-weight: 900;  
  /* indicamos al navegador que todo “texto” que se imprima en ese elemento debe provenir de la tipografía de Font Awesome.*/
  margin-right: 6px;
}
.role-admin{
  background-color: var(--admin-bg);
  color: var(--primary-color);
}
.role-admin::before{
  content: "\f505";/*Cada icono de FA tiene su propio codigo*/
}

.role-user{
  background-color: var(--user-bg);
  color: var(--secondary-color);
}
.role-user::before{
  content: "\f007";
}
.role-comercial{
  background-color: rgb(244, 174, 149);
  color: rgb(242, 23, 3);
}

.role-comercial::before{
  content: "\f07a"
}



/**********************************/



/***pruebas*/
.containerRight{
  
  
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  width: 100%;
  overflow-y: auto;
  
}

.subcontainerRight{
  margin: 2%;
  /* border: 2px  black solid; */
  height: 90vh;
  

}
.containerCard{
  /* border: 1px  black solid; */
  padding:0 5% 0 5%;

}

.header{
  background-color: var(--primary-color);
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  background-color: var(--third-color) !important;
  
}


/*****************************/


/*.card-winners{
  height:90vh !important;
}*/


.glow-success{
    border: 1px solid var(--bs-success);
    box-shadow: 0 .5rem 0 0 rgba(25,135,84) !important; /* verde */
  }

  .glow-danger{
    border: 1px solid var(--bs-success);
    box-shadow: 0 .5rem 0 0 rgb(143, 42, 49) !important; /* verde */
  }

  .piecedescription, .categoryname{
    height: 7rem;
  }

  /*-----------------------CARGA DE PAGINA*/
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 8px solid gray;
  border-top: 8px solid #141d29;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-overlay {
  display: flex; /*display: none;*/ /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
}
@keyframes spin {
  0% {
      transform: rotate(0deg);
  }

  100% {
      transform: rotate(360deg);
  }
}

.spinnerContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999;
  padding-top: 300px;
}

.spinner {
  width: 150px;
  height: 150px;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: #3e5679;
  animation: tri-spinner 1s infinite linear;
}

  .spinner::before,
  .spinner::after {
      content: "";
      grid-area: 1/1;
      margin: 2px;
      border: inherit;
      border-radius: 50%;
      animation: tri-spinner 2s infinite;
  }

  .spinner::after {
      margin: 8px;
      animation-duration: 3s;
  }

@keyframes tri-spinner {
  100% {
      transform: rotate(1turn);
  }
}

.loader {
  color: #072948;
  font-family: "Poppins",sans-serif;
  font-weight: 500;
  font-size: 25px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 40px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}

.words {
  overflow: hidden;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: #dca11c;
  animation: cycle-words 5s infinite;
}

@keyframes cycle-words {
  10% {
      -webkit-transform: translateY(-105%);
      transform: translateY(-105%);
  }

  25% {
      -webkit-transform: translateY(-100%);
      transform: translateY(-100%);
  }

  35% {
      -webkit-transform: translateY(-205%);
      transform: translateY(-205%);
  }

  50% {
      -webkit-transform: translateY(-200%);
      transform: translateY(-200%);
  }

  60% {
      -webkit-transform: translateY(-305%);
      transform: translateY(-305%);
  }

  75% {
      -webkit-transform: translateY(-300%);
      transform: translateY(-300%);
  }

  85% {
      -webkit-transform: translateY(-405%);
      transform: translateY(-405%);
  }

  100% {
      -webkit-transform: translateY(-400%);
      transform: translateY(-400%);
  }
}




.card-lift { transition: transform .15s ease, box-shadow .15s ease; }
.card-lift:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); }

.icon-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13,110,253,.08);
  color: #0d6efd;
}

/* Clamp de 3 líneas para descripción */
.line-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge por tipo usando data attributes (sin JS extra) */
.badge-pt { border: 1px solid transparent; }
.badge-pt[data-pt="Utilitario"] {
  background: rgba(25,135,84,.12); color: #198754; border-color: rgba(25,135,84,.25);
}
.badge-pt[data-pt="Ornamental"] {
  background: rgba(255,193,7,.12); color: #fd7e14; border-color: rgba(255,193,7,.25);
}
.badge-pt[data-pt="Ritual/Ceremonial"] {
  background: rgba(111,66,193,.12); color: #6f42c1; border-color: rgba(111,66,193,.25);
}
/* DASHBOARD VIEW* INICIO/*/
.mainDashbordContainer{
  padding: 2%;
  display: grid;
  grid-template-rows: 50px 200px;

  /*border: 1px solid rgb(222, 23, 23);*/
  min-width: 75%;

  grid-template-areas: 
  "TITLE TITLE  BTNSRIGHT BTNSRIGHT "
  "KPI1 KPI2 KPI3 KPI4 "
  "CHART1 CHART1  CHART2 CHART2"
  ;

}

.mainDashbordContainer div{
  /*border: 1px solid black;*/
  
  
}

.title{
  grid-area: TITLE;
  margin: 0%;
  padding: 0%;
}
.btnsRight{
  grid-area: BTNSRIGHT;
}
.kpi1{
  grid-area: KPI1;
  padding: 5%;
}
.kpi2{
  grid-area: KPI2;
  padding: 5%;
}
.kpi3{
  grid-area: KPI3;
  padding: 5%;
}
.kpi4{
  grid-area: KPI4;
  padding: 5%;
}

.chart1{
  grid-area: CHART1;
  padding: 2%;
}

.chart2{
  grid-area: CHART2;
  padding: 2%;
}


.number{
  display: flex;
  justify-content: center;
  font-size: 36PX;
  font-weight: bolder;
  color: var(--primary-color);
}


/* DASHBOARD VIEW*  FIN*/


table thead th,
table tbody td {
    font-size: 13px !important;
    padding: 4px 8px !important; /* hace que se vea más compacto */
}



/*? SECCION COMMPRAS */


.grid-wrapper{
  display: block;
  width: 100%;
  margin: 1% 20%;
}


.item-fecha{
  grid-column: 4 /6;
}

.container-fecha-folio{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
}
.item-text-compra{
  grid-column: 2/3;
}
.container-fecha-folio  h5{
  background: var(--primary-color);
  color: white;
}
.container-fecha-folio  h5, .container-fecha-folio  p{
  display: flex;
  justify-content: center;
  
}

.container-fecha-folio h5, .container-fecha-folio  p{
  border: 1px solid black;
  margin: 0;
  padding: 0;
}







@media(width < 1600px){
  .grid-wrapper{
    margin: 1% 15%;

  }

}
@media(width < 1400px){
  .grid-wrapper{
    margin: 1% 5%;

  }

}
@media(width < 1100px){
  .grid-wrapper{
    margin: 1% 1%;

  }

}







.container-productos p , .container-productos > div{
  border-bottom: 1px solid black;
  
}
.container-productos > div >div{
  border-bottom: 1px solid black;

}


.btn-add-row-product{
  font-family: system-ui, -apple-system, 
  BlinkMacSystemFont, 'Segoe UI', 
  Roboto, Oxygen, Ubuntu, Cantarell, 
  'Open Sans', 
  'Helvetica Neue', 
  sans-serif !important;
  background-color: var(--primary-color);
  border-radius: 5px;
  color: white;
  padding-top: 3%;
  padding-bottom: 3%;
  transition: scale 100ms ease;
}

.producto-row{
  display: contents;
}
.btn-add-row-product:hover{
  scale: 1.1;
  font-size: 12px;
  transition-duration: 1s;
}





.inputs-productos{
  display: block;
  width: 100%;
  border: 0px;
}
.inputs-productos:focus{
  outline: none;
}


.inputs-selects{
  height: 26px !important;
  font-size: 12px !important;
}


.autocomplete{
  position: relative;
  
}


.sugerencias {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 1000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

.sugerencias div {
  padding: 8px;
  cursor: pointer;
}

.sugerencias div:hover {
  background-color: var(--primary-color);
  color: white;
}

#purchaseForm{
  display: contents;
}

.contenedorderecho{
  display: contents;
}



.loadercompras{
  width: 50px;
  height: 50px;
  background: lightseagreen;
  border-radius: 100%;
  position: absolute;
  top: 0;
  left: 10%;

}

.inputs-artesano{
  border: 0;
  border-bottom: 1px solid black;
  width: 60%;

  &:focus{
    outline: none;
    box-shadow: 0 1px 5px rgb(100, 173, 233);
  }

}

.inputs-artesano-no-modificable{
  border: 0;
  width: 85%;
  &:focus{
    outline: none;
  }
}

.infoproduct{
  display: contents;
  font-size: 11px;
}

.is-valid{
  outline: #198754;
  
  color: green !important;
}
.is-invalid{
  outline: red;
  color: red !important;
}


/*? SECCION COMMPRAS */

.container-main{
  border: 1px solid black;
  display: grid; 
  grid-auto-rows: 100px;
  grid-template-columns: repeat(5,1fr);
  grid-template-rows: 100px 160px  400px 80px 30px;
  padding: 1%;
  row-gap: 1%;
  
  

}


.grid-wrapper{
  display: block;
  width: 100%;
  margin: 1% 20%;
}

.container-main .item-logo img{
  width: 300px;
}
.item-fecha{
  grid-column: 4 /6;
}

.container-fecha-folio{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
}
.item-text-compra{
  grid-column: 2/3;
}
.container-fecha-folio  h5{
  background: var(--primary-color);
  color: white;
}
.container-fecha-folio  h5, .container-fecha-folio  p{
  display: flex;
  justify-content: center;
  
}

.container-fecha-folio h5, .container-fecha-folio  p{
  border: 1px solid black;
  margin: 0;
  padding: 0;
}

.item-provedor{
  grid-column: 1/6;
  border: 1px solid black;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  grid-template-rows: 25px 1fr 1fr 1fr 
  
}
.ac-name-artesano{
  grid-column: 1/4;
}
.container-direccion{
  grid-column: 1/4;
  grid-row: 3/4;

}
.container-curp{
  grid-column: 4/6;
  grid-row: 3/4;

}
.container-sexo{
  grid-column: 4/6;
  grid-row: 2/3;
}
.container-etnia{
  grid-column: 2/4;
  grid-row: 4/5;
}
.container-beneficiarios{
  grid-column: 1/2;
  grid-row: 4/5;

}
.container-uiltima-compra{
  grid-column: 4/6;
  grid-row: 4/5;

}

.item-provedor  input{
  margin-left: 1% !important;
}

.item-provedor *{
  margin: 0;
  padding: 0;
}
.item-provedor-text-provedor{
  border:1px solid black;
  background: var(--primary-color);
  color: white;
  grid-column: 1/6;
}


@media(width < 1600px){
  .grid-wrapper{
    margin: 1% 15%;

  }

}
@media(width < 1400px){
  .grid-wrapper{
    margin: 1% 5%;

  }

}
@media(width < 1100px){
  .grid-wrapper{
    margin: 1% 1%;

  }

}



.container-productos{
  display: grid;
  grid-template-columns:1.5fr 6fr  1fr 1fr 1fr auto;
  grid-template-rows: auto repeat(12, 1fr);
  column-gap: 1%;
  grid-column: 1/6;
  row-gap: 1% !important;
  
  
}

.container-productos h5{
  border: 1px solid black;
  display: flex;
  justify-content: center;
  background: var(--primary-color);
  color: white;

}
.container-productos p , .container-productos > div{
  border-bottom: 1px solid black;
  
}
.container-productos > div >div{
  border-bottom: 1px solid black;

}

.container-btn-add-row-product{
  grid-column: 6/7;
  border: 0 !important;
  /*display: none;*/
}
.btn-add-row-product{
  font-family: system-ui, -apple-system, 
  BlinkMacSystemFont, 'Segoe UI', 
  Roboto, Oxygen, Ubuntu, Cantarell, 
  'Open Sans', 
  'Helvetica Neue', 
  sans-serif !important;
  background-color: var(--primary-color);
  border-radius: 5px;
  color: white;
  padding-top: 3%;
  padding-bottom: 3%;
  transition: scale 100ms ease;
}

.producto-row{
  display: contents;
}
.btn-add-row-product:hover{
  scale: 1.1;
  font-size: 12px;
  transition-duration: 1s;
}


.container-total{
  border: 1px solid black;
  grid-column: 1/6;
  display: grid;
  grid-template-columns:  1fr 1fr 1fr;
  grid-template-rows: 1fr;
}
.container-total-and-numero{
  grid-column: 3/4;
  font-size: 20px;
  
  
}




.inputs-productos{
  display: block;
  width: 100%;
  border: 0px;
}
.inputs-productos:focus{
  outline: none;
}


.inputs-selects{
  height: 26px !important;
  font-size: 12px !important;
}


.autocomplete{
  position: relative;
  
}


.sugerencias {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 1000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

.sugerencias div {
  padding: 8px;
  cursor: pointer;
}

.sugerencias div:hover {
  background-color: var(--primary-color);
  color: white;
}

#purchaseForm{
  display: contents;
}

.contenedorderecho{
  display: contents;
}



/*!IMPRESION*/

/* Tamaño y márgenes de la hoja */
@page {
  size: A4 portrait;          /* o letter */
  margin-right: 5mm;  
  margin-left: 4mm;
  margin-top: 16mm;             
}

/* Estilos solo al imprimir */
@media print {
  /* Oculta todo */
  body * {
    visibility: hidden;      
  }
  html{
    font-size: 12px;
  }

  /* Muestra solo la factura */
  .print-area, .print-area * {
    visibility: visible;
  }

  
  .print-area {
    position: absolute;
    left: 0; top: 0;
    width: 100%;              /* o 210mm para A4 con márgenes @page */
  }

  button, .sidebar, .navbar {
    display: none !important;
  }

  .container-productos h5{
    color: black;
    font-size: small;
    font-weight: bolder;
    
  }
  .item-provedor-text-provedor{
    color: black;
    font-size: small;
    font-weight: bolder;

  }
  .container-fecha-folio  h5{
    color: black;
    font-size: small;
    font-weight: bolder;

  }
  .container-productos > div{
    border: 0;
    font-size: small;
    font-weight: bolder;
  }

  .container-productos > div > div{
    border: 0;
    font-size: small;
    font-weight: bolder;
  }

  .container-productos > div > select{
    border: 0;
    font-size: small;
    
  }
  .container-btn-add-row-product{
    display: none;
  }
  .btn-remove-row-product,
  .col-accion{
    display: none !important;
  }
  .container-productos{
    grid-template-columns: 1.5fr 6fr repeat(3,1fr) !important; /* sin la columna acciones */
  }
  .container-firmas{
    display: grid !important;
  }


}


.loadercompras{
  width: 50px;
  height: 50px;
  background: lightseagreen;
  border-radius: 100%;
  position: absolute;
  top: 0;
  left: 10%;

}

.inputs-artesano{
  border: 0;
  border-bottom: 1px solid black;
  width: 60%;

  &:focus{
    outline: none;
    box-shadow: 0 1px 5px rgb(100, 173, 233);
  }

}



/*catalogo compras*/
.container-vercompras{
  width: 100%;
}


.btn-remove-row-product{
  justify-self: center;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #dc3545;
  background: #fff;
  color: #dc3545;
  cursor: pointer;
  line-height: 26px;
  padding: 0;
}


.container-firmas{
  /* si tu container-main es grid y usas grid-column en secciones,
     deja esta línea; si no, la puedes quitar */
  grid-column: 1/6;

  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr 1fr;
  gap: 10px;
}

.firma-box{
  height: 70px;                 /* espacio para firmar */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  font-size: 11px;
}

.firma-linea{
  border-top: 1px solid #000;
  margin-bottom: 4px;
}

.firma-label{
  font-weight: 600;
}


.leyenda-compromiso{
    /* ajusta si tu grid principal usa otra cosa */
    grid-column: 1/4;
  grid-row: 3;
  margin-top: 10px;
  font-size: 11px;
  text-align: justify;
}

.container-firmas{
  display: none;
}

