/* --- Contenedor de tarjeta general --- */
.tarjeta {
  padding: 10px;
}

/* --- Contenedor principal de cursos --- */
.container-cursos {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* --- Tarjeta envolvente --- */
.tarjeta {
  border: 0;
  opacity: 1;
  transition: all 0.8s ease;
  min-height: 300px;
  padding-top: 40px;
}
:root{
  --btn-float-height: 40px;   /* alto visual del botón */
  --btn-float-overlap: 20px;  /* cuánto sobresale del borde */
  --extra-gap: 12px;          /* respiro adicional entre filas */

  --vino: #A71B41;
  --borde: #D9DCE1;     
  --borde-hover:#C9CDD3;
  --bg-input:#F7F8FA;  
}
/* --- Card base --- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #f4f4f4;
  border-radius: 20px;
  border: 2px solid #b38d5e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  overflow: visible;
  transition: all 0.3s ease;
  font-family: 'Helvetica', 'Arial', sans-serif;
  height: 100%;
  margin-bottom: calc(var(--btn-float-overlap) + (var(--btn-float-height) / 2) + var(--extra-gap));
  background-clip: padding-box; /* asegura que el color no invada el borde */
}


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

/* --- Imagen circular arriba --- */
.card-img-top {
  /*border-radius: 50%;*/
  width: 150px;
  height: 120px;
/*  object-fit: cover; */
  display: block;
  margin: 20px auto 10px;
/*  border: 3px solid #b38d5e;*/
}

/* --- Texto e iconos --- */
.texto-icon {
  color: #a71b41;
}

.texto-anotaciones-tarjeta {
  font-size: 1.1em;
}

.titulo-infografia {
  color: #4d5257 !important;
  font-weight: bold;
  font-size: 1rem;
  margin: 10px 15px;
  text-align: center;
  line-height: 1.3em;
  height: 6.6em;  /* máximo 2 líneas aprox */
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.datos-curso {
  color: #4d5257;
  font-size: 0.9rem;
  margin: 10px 15px;
  text-align: center;
  min-height: 100px;
}

/* --- Cuerpo de la tarjeta --- */
.card-body {
  flex: 1 1 auto;
  padding: 1rem 1rem 0.5rem;
  padding-bottom: 0 !important; /* elimina espacio reservado del botón viejo */
}

/* --- Footer de la tarjeta --- */
.card-footer {
  position: relative;
  background-color: #ffffff !important;
  border-top: 1px solid #ffffff;
  padding: 1.5rem 1rem calc(var(--btn-float-overlap) + 1.5rem);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-sizing: border-box;
  z-index: 2;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

.card-footer .meta {
  color: #4d5257;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  font-size: 1rem !important;
}

.card-footer .meta i {
  color: #a71b41;
}

/* --- Botón flotante --- */
.card-footer .btn-more-info {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: calc(-1 * var(--btn-float-overlap)) !important;
  height: var(--btn-float-height);
  line-height: calc(var(--btn-float-height) - 2px);
  padding: 0 24px;
  background-color: #b38d5e;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
  z-index: 3;
  transition: transform .25s ease, background-color .25s ease;
}

.card-footer .btn-more-info:hover {
  background-color: #a71b41;
  transform: translateX(-50%) scale(1.05);
}

.card { background-clip: padding-box; }

@media (max-width: 576px) {
  :root{
    --btn-float-height: 36px;
    --btn-float-overlap: 16px;
    --extra-gap: 12px;
  }
  .card-footer .btn-more-info { padding: 0 18px; border-radius: 12px; }
}

.btn-more-info{
 /* position: initial;  sin !important */
}
.text-secondary-cads {
    color: #4d5257  !important;
    font-size: 1rem !important;
}

.stat-bg-1 {
        background-image: url(https://setcapacitacion.tamaulipas.gob.mx/identidad/fondo-1.png);
    	background-size: cover;
    	background-position: top;
    	background-repeat: no-repeat;
    	width: 100%;
    	/*height: 100vh;*/
    	padding-top: 30px;
}
.stat-bg-2 {
        background-image: url('https://setcapacitacion.tamaulipas.gob.mx/identidad/fondo-2-1.png');
        /* background-size: contain;
        background-position: top;
        background-repeat: no-repeat; */
        width: 100%;
	background-color: #A71B41;
}
.stat-bg-3 {
        background-size: contain;
        background-position: top;
        background-repeat: no-repeat;
        height: 100px;
	background-color: #A71B41;
}

.posicion-texto {
  position: relative; 
  display: inline-block;
  width: auto;          
  max-width: 1000px;    
  margin: 0 auto;       
}

.posicion-texto img {
  width: 100%;
  height: auto;
  display: block;
}

.texto-banner {
  position: absolute;
  top: 50%;           
  left: 2%;           
  transform: translateY(-50%); 
  text-align: left;   
  color: #ffffff;
  font-family: 'Encode Sans', sans-serif;
  /*font-weight: 600; 
  font-size: 1.4rem;*/
  line-height: 1.4em;
  /*background: rgba(255,255,255,0.7);    */
  padding: 10px 20px;
  border-radius: 10px;
  max-width: 60%;   
}
/* Texto responsivo */
.texto-banner h1 {
  margin: 0 0 .25em;
  line-height: 1.05;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 48px);
}

.texto-banner p {
  margin: 0;
  line-height: 1.3;
  font-size: clamp(14px, 2vw, 22px);
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .texto-banner {
    top: 45%;
    left: 5%;
    max-width: 85%;
  }
}

.banner-cursos {
  display: block;
  margin: 0 auto;         
  width: auto;            
  max-width: 100%;      
  height: auto;           
}

/* Ajuste opcional para pantallas pequeñas */
@media (max-width: 768px) {
  .banner-cursos {
    max-width: 90%;       
  }
}
.titulo-modal{
    color: #4d5257 !important;
    margin: 10px 15px;
    font-weight: bold;
    line-height: 1.3em;
    text-transform: uppercase;
}
.textos-forms-proximos{
  display:contents;color: #4d5257 !important;
  font-size: 1rem !important;
  font-weight: 500;
}

/* Inputs “suaves” con borde redondeado */
#form-interesados .form-control{
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  height: 42px;                /* alto cómodo */
  padding: .55rem .9rem;
  line-height: 1.25;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.04), 0 0 0 rgba(0,0,0,0);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  outline: none;
  background-clip: padding-box;
}

/* Hover: un poco más marcado */
#form-interesados .form-control:hover{
  border-color: var(--borde-hover);
}

/* Focus: borde vino + halo suave */
#form-interesados .form-control:focus{
  background: #fff;
  border-color: var(--vino);
  box-shadow: 0 0 0 3px rgba(167,27,65,.15);
}

/* Placeholders más sutiles */
#form-interesados .form-control::placeholder{
  color:#9aa0a6;
  opacity:1;
}

/* Si usas input-group, respeta el radio */
#form-interesados .input-group .form-control{
  border-radius: 12px !important;
}

/* Estados de validación (opcional) */
#form-interesados .form-control.is-invalid,
#form-interesados .form-control:invalid{
  border-color:#f4f4f4;
  /*box-shadow:0 0 0 3px rgba(220,53,69,.12);*/
}
#form-interesados .form-control.is-valid{
  border-color:#dddddd;
  box-shadow:0 0 0 3px rgba(40,167,69,.12);
}

/* Separadores dorados entre columnas del stats-section con rombo dorado debajo de la mitad */
    .stats-section .row.g-0 > [class*="col-"] {
        position: relative;
    }
    .stats-section .row.g-0 > [class*="col-"]:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 15%;
        height: 80%;           /* no cubre todo el alto */
        width: 2px;
        background-color: #e0cead; /* dorado */
        border-radius: 1px;
        z-index: 2;
    }
    .stats-section .row.g-0 > [class*="col-"]:not(:last-child)::before {
        content: "";
        position: absolute;
        right: -6px;           /* centra el rombo sobre la línea */
        top: calc(15% + 50%);  /* ligeramente por debajo de la mitad */
        width: 14px;
        height: 14px;
        background-color: #e0cead; /* dorado */
        transform: rotate(45deg);
        z-index: 3;
    }
    .stats-section .col-lg-3, .stats-section .col-md-6 {
        display: flex;
        padding-left: 0;
        padding-right: 0;
        min-height: 520px;
    }

/* Tarjeta de duración */
.duracion-card{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  /*padding: 18px 24px;*/
  border-radius: 18px;
  border: 1px solid #E6DED0;
  background: linear-gradient(to bottom, #ffffff 60%, #F3EBDE 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  /*min-width: 200px;  */  /* ajusta a tu gusto */
  min-height: 150px;   /* ajusta a tu gusto */
}

/* Icono circular */
.duracion-card__icon{
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #A71B41;
  color: #A71B41;
  background: #fff;
  font-size: 26px;
}

/* Textos */
.duracion-card__label{
  color:#4d5257; font-weight: 800;
  font-size: 1.1rem; line-height: 1.1;
}
.duracion-card__value{
  color:#4d5257; font-weight: 600;
  font-size: 1.1rem; line-height: 1.2;
}

/* Responsive pequeño */
@media (max-width: 576px){
  .duracion-card{ min-width: 180px; padding: 16px 18px; }
  .duracion-card__icon{ width: 50px; height: 50px; font-size: 22px; }
}
/* * */
.border-style-seccion{ height:6px; background:#7a1b40; width:100%; }

/* Bloque gris con dos columnas (Duración | Capacidad) y divisor */
.datos-curso-grid{
  display:flex; align-items:center; justify-content:space-between;
  background:#f3f3f3; padding:12px 16px; border-radius:12px;
}
.dato-item{ display:flex; align-items:center; justify-content:center; gap:18px; flex: 1 1 180px; }
.dato-icon{ width:28px; height:auto; display:block; }
.dato-text{ line-height:1.15; text-align:left; }
.dato-label{ font-weight:700; color:#4d5257; }
.dato-value{ color:#3a3a3a; }
.divider-v{ width:1px; align-self:stretch; background:#dcdcdc; }

/* Banda gris para Periodo del curso */
.periodo-block{
  margin-top:10px; background:#f3f3f3; padding:12px 16px; border-radius:12px; text-align:center;
}
.periodo-icon{ width:28px; display:block; margin:0 auto 6px; }
.periodo-label{ font-weight:700; color:#4d5257; }
.periodo-value{ color:#3a3a3a; margin-top:2px; }

/* Tipos utilizados en el card */
.titulo-infografia{ font-size:1rem; }
.text-secondary-cads{ color:#6c757d; }

/* Footer del card: meta + acciones */
.card-footer{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-footer .meta{ font-size:.9rem; color:#6c757d; text-align:center; }
.card-footer .acciones .btn-more-info{ white-space:nowrap; }

/* Responsive */
@media (max-width: 576px){
  .datos-curso-grid{ flex-direction:column; gap:10px; }
  .divider-v{ display:none; }
  .dato-text{ text-align:center; }
}
.badge.badge-secondary {
  font-size: 1rem;          /* aumenta el tamaño del texto (por defecto es ~0.75rem) */
  padding: 8px 14px;        /* más espacio interno */
  border-radius: 10px;      /* esquinas suaves */
  background-color: #b38d5e; /* dorado o tu color institucional */
  color: #fff;              /* texto blanco */
  font-weight: 600;         /* texto más grueso */
}
.datos-curso-grid {
  background: #f3f3f3;
  padding: 12px 16px;
  border-radius: 12px;
}
.dato-icon {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}
.dato-label {
  font-weight: 700;
  color: #4d5257;
}
.dato-value {
  color: #3a3a3a;
}
/* Visual de la banda — sin romper el grid BS4 */
.datos-curso-grid{
  background:#f3f3f3;
  padding:12px 16px;
  border-radius:12px;
}
.dato-icon{ width:28px; height:auto; flex-shrink:0; }
.dato-label{ font-weight:700; color:#4d5257; margin:0; }
.dato-value{ color:#3a3a3a; margin:0; }

/* divisor solo en md+ */
.divider-v{ display:none; }
@media (min-width:768px){
  .divider-v{ display:block; width:1px; align-self:stretch; background:#dcdcdc; }
}

/* --- Forzar fila horizontal para la banda de duración/capacidad en escritorio --- */

/* Visual de la banda */
.datos-curso-grid{ background:#f3f3f3; padding:12px 16px; border-radius:12px; }
.datos-curso-grid .col-12, .datos-curso-grid .col-md-6 { min-width:0; } /* permite encoger contenido */
.dato-icon{ width:28px; height:auto; flex-shrink:0; }
.dato-label{ font-weight:700; color:#4d5257; margin:0; }
.dato-value{ color:#3a3a3a; margin:0; }

/* Escritorio: una sola fila y divisor como borde */
@media (min-width: 992px){
  .datos-curso-grid.row{ flex-wrap: nowrap !important; }
  .datos-curso-grid .col-md-6{ flex:0 0 50%; max-width:50%; }
  .datos-curso-grid .col-md-6:first-child{
    border-right:1px solid #dcdcdc;
    padding-right:12px;
    margin-right:12px; /* pequeño respiro visual */
  }
}

/* Contenedor de acciones: deja altura fija para evitar saltos */
.card-footer .acciones{
  position: relative;
  min-height: var(--btn-float-height); /* asegura el mismo alto en ambos estados */
}

/* Botón flotante (ya lo tienes) */
.card-footer .btn-more-info {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: calc(-1 * var(--btn-float-overlap)) !important;
  height: var(--btn-float-height);
  line-height: calc(var(--btn-float-height) - 2px);
  padding: 0 24px;
  background-color: #b38d5e;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
  z-index: 3;
  transition: transform .25s ease, background-color .25s ease;
  white-space: nowrap;
}

/* Hover (activo) */
.card-footer .btn-more-info:hover:not([disabled]) {
  background-color: #a71b41;
  transform: translateX(-50%) scale(1.05);
}

/* Estado deshabilitado: mismo tamaño/posición, sin “bailes” */
.card-footer .btn-more-info[disabled],
.card-footer .btn-more-info[aria-disabled="true"]{
  background-color: #b8b8b8;
  cursor: not-allowed;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  transform: translateX(-50%);           /* sin escala en hover */
}

/* Asegura espacio inferior de la tarjeta para el solape del botón */
.card {
  margin-bottom: calc(var(--btn-float-overlap) + (var(--btn-float-height) / 2) + var(--extra-gap));
}

/* Footer con padding suficiente para el solape (ya lo tienes, lo repito para claridad) */
.card-footer {
  padding: 1.5rem 1rem calc(var(--btn-float-overlap) + 1.5rem);
}

/* --- Estilos específicos del modal de cursos --- */
.modal-curso-style {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  font-family: 'Encode Sans', sans-serif;
}

/* Icono flotante */
/* .modal-curso-style::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 74px;
  background-color: #A71B41;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  background-image: url('/identidad/icon-robot.png'); /* cámbialo al icono que uses 
  background-size: 44px;
  background-repeat: no-repeat;
  background-position: center;
} */

/* Header */
/* .modal-curso-style .modal-header {
  background: linear-gradient(180deg, #f1f2f4 0%, #ffffff 100%);
  border: none;
  /* text-align: center; 
  padding-top: 48px; 
}*/
.modal-curso-style .modal-title {
  width: 100%;
  color: #3f4750;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Body */
.modal-curso-style .modal-body {
  text-align: center;
  padding: 16px 28px 8px;
}
.modal-curso-style #descCurso {
  color: #5a6672;
  margin-bottom: 18px;
  font-size: 1rem;
}

/* Caja de información (duración, capacidad, periodos) */
.modal-curso-style .info-pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  border: 1px solid #E6DED0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 14px 12px;
  margin: 0 auto 14px;
  background: linear-gradient(to bottom, #ffffff 60%, #F3EBDE 100%);
}
/*.modal-curso-style .info-pill__item {
   flex: 1 1 180px;
  text-align: center;
  padding: 6px 8px;
  position: relative; 

}*/
.modal-curso-style .info-pill__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  width: 1px;
  height: 64%;
  background: #e6e6e6;
}
.modal-curso-style .info-pill__label {
  font-weight: 700;
  color: #4d5257;
  font-size: .95rem;
}
.modal-curso-style .info-pill__value {
  color: #3a3a3a;
  /* font-weight: 600; */
  font-size: .95rem;
}
.modal-curso-style .info-pill__icon {
  width: 26px;
  height: auto;
  margin-bottom: 6px;
}

/* Texto constancia */
.modal-curso-style #cuenta_con {
  color: #4d5257;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Imagen del curso 
.modal-curso-style #img-curso {
  /* width: 260px;
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); 
}*/

/* Footer / botón */
.modal-curso-style .modal-footer {
  border: none;
  justify-content: center;
  padding: 6px 28px 24px;
}
.modal-curso-style .btn-inscribirme {
  background: #bc955c;
  color: #fff !important;
  border: none;
  padding: .6rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.modal-curso-style .btn-inscribirme:hover {
  background: #A71B41;
}

/* Backdrop blur SOLO para este modal */
.modal-backdrop.backdrop-blur.show {
  opacity: .55;
  backdrop-filter: blur(3px);
}

/* Adaptación móvil */
@media (max-width: 768px) {
  .modal-curso-style .info-pill__item {
    flex: 1 1 50%;
  }
  .modal-curso-style .info-pill__item:nth-child(2)::after {
    display: none;
  }
}



