﻿/* ===============================
   CERTIFICACIÓN TURÍSTICA (CT)
   Usa .custom-box como contenedor estándar
   =============================== */

.ct-wrap{ /* solo para encapsular */ }

.ct-wrap .ct-title{
  margin:0 0 8px;
  font-size:24px;
  font-weight:700;
  color:#1f4fb2;
}

.ct-wrap .ct-intro{
  margin:0 0 14px;
  font-size:14px;
  line-height:1.55;
  color:#333;
}

/* Índice */
.ct-wrap .ct-index{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding:10px 0 14px;
  margin:0 0 10px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.ct-wrap .ct-index a{
  font-size:13px;
  font-weight:600;
  color:#1f4fb2;
  text-decoration:none;
}

.ct-wrap .ct-index a:hover{
  text-decoration:underline;
}

/* Ancla con offset por menú fijo */
.ct-wrap .ct-anchor{
  position:relative;
  top:-120px;  /* ajusta si tu header es diferente */
  visibility:hidden;
  display:block;
  height:0;
}

/* Lista apilada dentro del custom-box */
.ct-wrap .ct-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Cada item: ficha “interna” del custom-box */
.ct-wrap .ct-item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:16px;
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px; /* consistente con custom-box */
  background:#fff;
}

/* Logo */
.ct-wrap .ct-media{
  display:flex;
  align-items:center;
  justify-content:center;
}

.ct-wrap .ct-media img{
  max-width:110px;
  max-height:110px;
  width:auto;
  height:auto;
  object-fit:contain;
}

/* Texto */
.ct-wrap .ct-body{
  display:flex;
  flex-direction:column;
}

.ct-wrap .ct-h3{
  margin:0 0 6px;
  font-size:16px;
  font-weight:700;
  color:#1f4fb2;
}

.ct-wrap .ct-text{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.55;
  color:#333;
}

/* Acciones */
.ct-wrap .ct-actions{
  margin-top:auto;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.ct-wrap .ct-btn{
  display:inline-block;
  background:#b30000;
  color:#fff !important;
  padding:10px 14px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  border-radius:6px;
  box-shadow:0 2px 5px rgba(0,0,0,.10);
}

.ct-wrap .ct-btn:hover{
  background:#8f0000;
}

.ct-wrap .ct-link{
  color:#1f4fb2;
  font-weight:600;
  text-decoration:none;
}

.ct-wrap .ct-link:hover{
  text-decoration:underline;
}

/* Responsive */
@media (max-width: 768px){
  .ct-wrap .ct-item{
    grid-template-columns: 1fr;
    text-align:left;
  }

  .ct-wrap .ct-media{
    justify-content:flex-start;
  }

  .ct-wrap .ct-media img{
    max-width:90px;
    max-height:90px;
  }
}
