/*
 * CodeForGest Apps – estilos mínimos.
 * La letra, el tamaño de texto y el fondo los pone el tema (GeneratePress);
 * aquí solo se ordenan las piezas y se da color a los botones.
 */
.cfgh-app { --cfgh-borde: rgba(0, 0, 0, .12); --cfgh-suave: rgba(0, 0, 0, .6); }
.cfgh-app > * + * { margin-top: 2.5em; }
.cfgh-app h2, .cfgh-app h3 { margin-bottom: .5em; }

/* Presentación */
.cfgh-presentacion { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cfgh-presentacion__texto { flex: 1 1 340px; min-width: 0; }
.cfgh-presentacion__imagen { flex: 1 1 340px; min-width: 0; margin: 0; }
.cfgh-presentacion__imagen a { display: block; }
.cfgh-presentacion__imagen img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--cfgh-borde); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }

/* Icono junto al título (el título lo pinta el tema) */
.cfgh-titulo { display: inline-flex; align-items: center; gap: .45em; vertical-align: middle; max-width: 100%; }
.cfgh-titulo__texto { min-width: 0; max-width: 100%; overflow-wrap: break-word; }
@media (max-width: 600px) { .cfgh-titulo { display: flex; flex-direction: column; align-items: flex-start; gap: .3em; } }
.cfgh-titulo__icono { flex: 0 0 auto; width: 1.5em !important; height: 1.5em !important; max-width: none; object-fit: cover; border-radius: 22%; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.cfgh-tarjeta__titulo { display: flex; align-items: center; gap: 12px; }
.cfgh-tarjeta__icono { flex: 0 0 auto; width: 44px; height: 44px; object-fit: cover; border-radius: 22%; }
.cfgh-presentacion__texto > :first-child { margin-top: 0; }

.cfgh-rapida { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 1.4em; }
.cfgh-rapida__datos { font-size: .9em; color: var(--cfgh-suave); }

/* Requisitos */
.cfgh-requisitos { margin-top: 1.4em; padding: 16px 20px; border-radius: 10px; background: var(--cfgh-acento-suave, #FBF4F5); }
.cfgh-requisitos__titulo { margin: 0 0 8px; font-size: .8em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cfgh-acento, #960A25); }
.cfgh-requisitos__lista { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.cfgh-requisitos__lista li { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.cfgh-requisitos__lista .cfgh-icono { color: var(--cfgh-acento, #960A25); }
.cfgh-requisitos-breve { font-size: .9em; }

/* Botones */
.cfgh-boton, .cfgh-boton:visited {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 6px;
	background: var(--cfgh-acento, #960A25); color: #fff; font-weight: 600; line-height: 1.2;
	text-decoration: none;
}
.cfgh-boton:hover, .cfgh-boton:focus { background: var(--cfgh-acento-oscuro, #71081C); color: #fff; }
.cfgh-boton--grande { min-height: 52px; padding: 13px 26px; font-size: 1.05em; }
.cfgh-boton--secundario, .cfgh-boton--secundario:visited { background: transparent; color: var(--cfgh-acento, #960A25); box-shadow: inset 0 0 0 1.5px currentColor; }
.cfgh-boton--secundario:hover, .cfgh-boton--secundario:focus { background: var(--cfgh-acento-suave, #FBF4F5); color: var(--cfgh-acento-oscuro, #71081C); }
.cfgh-icono { flex: 0 0 auto; }
.cfgh-enlace { font-weight: 600; text-decoration: none; }

/* Secciones */
.cfgh-seccion__titulo { margin-top: 0; }

/* Desplegable de instalación */
.cfgh-desplegable { border: 1px solid var(--cfgh-borde); border-radius: 10px; }
.cfgh-desplegable__titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.15em; list-style: none; }
.cfgh-desplegable__titulo::-webkit-details-marker { display: none; }
.cfgh-desplegable__titulo::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -6px; transition: transform .2s; }
.cfgh-desplegable[open] .cfgh-desplegable__titulo::after { transform: rotate(-135deg); margin-top: 4px; }
.cfgh-desplegable__titulo:hover { color: var(--cfgh-acento, #960A25); }
.cfgh-desplegable__contenido { padding: 0 22px 20px; }
.cfgh-desplegable__contenido > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .cfgh-desplegable__titulo::after { transition: none; } }

/* Versiones */
.cfgh-versiones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cfgh-version { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--cfgh-borde); border-radius: 12px; }
.cfgh-version--actual { border: 2px solid var(--cfgh-acento, #960A25); }
.cfgh-version > * { margin: 0; }
.cfgh-version__etiqueta { font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cfgh-suave); }
.cfgh-version--actual .cfgh-version__etiqueta { color: var(--cfgh-acento, #960A25); }
.cfgh-app .cfgh-version__numero { margin: 4px 0 2px; font-size: 1.8em; line-height: 1.1; }
.cfgh-version__datos { font-size: .9em; color: var(--cfgh-suave); }
.cfgh-version__subtitulo { margin-top: 14px; font-size: .9em; font-weight: 700; }
.cfgh-novedades { margin: 6px 0 0 1.2em; padding: 0; }
.cfgh-novedades li + li { margin-top: .25em; }
.cfgh-version .cfgh-boton { margin-top: auto; }
.cfgh-version .cfgh-novedades + .cfgh-boton, .cfgh-version .cfgh-version__datos + .cfgh-boton { margin-top: 18px; }
.cfgh-aviso { margin-top: 14px; font-size: .85em; color: var(--cfgh-suave); }
.cfgh-vacio { color: var(--cfgh-suave); font-style: italic; }

/* Listado [apps] */
.cfgh-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.cfgh-tarjeta { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; }
.cfgh-tarjeta > * { margin: 0; }
.cfgh-tarjeta__imagen img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.cfgh-tarjeta__titulo { font-size: 1.3em; }
.cfgh-tarjeta__titulo a { text-decoration: none; }
.cfgh-tarjeta__version { font-size: .85em; color: rgba(0, 0, 0, .6); }
.cfgh-tarjeta__texto { flex-grow: 1; }
.cfgh-tarjeta__botones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; }

/* ==========================================================================
   V1.0 – Pestañas, pasos, tutorial con índice y comentarios
   ========================================================================== */
.cfgh-intro { margin: 0 0 1em; }
.cfgh-captura { margin: 1.2em 0 0; }
.cfgh-captura img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--cfgh-borde); }
.cfgh-consejo { margin: 1em 0 0; padding: 12px 16px; border-radius: 10px; background: #FFF8E6; color: #5C4813; font-size: .95em; }

/* Pestañas */
.cfgh-pestanas__lista { display: none; }
.cfgh-js .cfgh-pestanas__lista { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--cfgh-borde); }
.cfgh-pestanas__boton { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0 0 -1px; padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--cfgh-suave); font: inherit; font-weight: 600; cursor: pointer; }
.cfgh-pestanas__boton:hover, .cfgh-pestanas__boton:focus { background: transparent; color: inherit; }
.cfgh-pestanas__boton[aria-selected="true"] { color: inherit; border-bottom-color: var(--cfgh-acento, #960A25); }
.cfgh-pestanas__boton:focus-visible { outline: 2px solid var(--cfgh-acento, #960A25); outline-offset: -2px; }
.cfgh-pestanas__contador { font-size: .75em; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .07); }
.cfgh-panel + .cfgh-panel { margin-top: 3em; }
.cfgh-js .cfgh-panel + .cfgh-panel { margin-top: 0; }
.cfgh-panel:focus { outline: none; }
.cfgh-js .cfgh-panel__titulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cfgh-panel[hidden] { display: none; }

/* Pasos */
.cfgh-pasos__barra { display: none; }
.cfgh-js .cfgh-pasos__barra { display: flex; margin: 0 0 24px; padding: 0; list-style: none; }
.cfgh-pasos__item { position: relative; flex: 1 1 0; min-width: 0; margin: 0; text-align: center; }
.cfgh-pasos__item::before, .cfgh-pasos__item::after { content: ""; position: absolute; top: 20px; height: 3px; background: rgba(0, 0, 0, .1); }
.cfgh-pasos__item::before { left: 0; right: 50%; }
.cfgh-pasos__item::after { left: 50%; right: 0; }
.cfgh-pasos__item:first-child::before, .cfgh-pasos__item:last-child::after { display: none; }
.cfgh-pasos__item.is-hecho::before, .cfgh-pasos__item.is-hecho::after, .cfgh-pasos__item.is-actual::before { background: var(--cfgh-acento, #960A25); }
.cfgh-pasos__punto { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; padding: 0 4px; color: var(--cfgh-suave); text-decoration: none; }
.cfgh-pasos__num { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); background: #fff; font-weight: 700; transition: background .2s, border-color .2s; }
.cfgh-pasos__nombre { font-size: .8em; font-weight: 600; line-height: 1.3; }
.cfgh-pasos__punto:hover .cfgh-pasos__num { border-color: var(--cfgh-acento, #960A25); }
.is-hecho .cfgh-pasos__num, .is-actual .cfgh-pasos__num { background: var(--cfgh-acento, #960A25); border-color: var(--cfgh-acento, #960A25); color: #fff; }
.is-hecho .cfgh-pasos__num { position: relative; color: transparent !important; }
.is-hecho .cfgh-pasos__num::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.is-actual .cfgh-pasos__punto { color: inherit; }
@media (max-width: 600px) { .cfgh-pasos__nombre { display: none; } .cfgh-pasos__num { width: 36px; height: 36px; } .cfgh-pasos__item::before, .cfgh-pasos__item::after { top: 17px; } }
@media (prefers-reduced-motion: reduce) { .cfgh-pasos__num { transition: none; } }

.cfgh-pasos__tarjetas { display: flex; flex-direction: column; gap: 20px; }
.cfgh-paso { border: 1px solid var(--cfgh-borde); border-radius: 16px; overflow: hidden; background: #fff; }
.cfgh-paso[hidden] { display: none; }
.cfgh-paso__progreso { height: 4px; background: rgba(0, 0, 0, .06); }
.cfgh-paso__progreso span { display: block; height: 4px; background: var(--cfgh-acento, #960A25); }
.cfgh-paso__cuerpo { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; }
.cfgh-paso__texto { flex: 1 1 340px; min-width: 0; }
.cfgh-paso__texto > * { margin-top: 0; }
.cfgh-paso__cuerpo--imagen .cfgh-captura { flex: 1 1 300px; margin: 0; }
.cfgh-paso__etiqueta, .cfgh-apartado__etiqueta { margin: 0 0 4px; font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cfgh-acento, #960A25); }
.cfgh-app .cfgh-paso__titulo { margin: 0 0 .6em; font-size: 1.6em; line-height: 1.2; }
.cfgh-paso__titulo:focus { outline: none; }
.cfgh-paso__nav { display: none; }
.cfgh-js .cfgh-paso__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 28px; border-top: 1px solid var(--cfgh-borde); background: rgba(0, 0, 0, .02); }
.cfgh-paso__anterior, .cfgh-paso__siguiente { min-height: 44px; padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.cfgh-paso__anterior { border: 1px solid rgba(0, 0, 0, .2); background: #fff; color: inherit; }
.cfgh-paso__anterior:hover { background: rgba(0, 0, 0, .04); color: inherit; }
.cfgh-paso__anterior[disabled] { opacity: .4; cursor: default; }
.cfgh-paso__siguiente { border: 0; background: var(--cfgh-acento, #960A25); color: #fff; }
.cfgh-paso__siguiente:hover, .cfgh-paso__siguiente:focus { background: var(--cfgh-acento-oscuro, #71081C); color: #fff; }
.cfgh-paso__fin { font-weight: 700; color: var(--cfgh-acento, #960A25); }
.cfgh-paso .cfgh-versiones { margin-top: 1.2em; }

/* Tutorial con índice */
.cfgh-tutorial { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cfgh-indice { flex: 1 1 220px; max-width: 280px; padding: 18px; border: 1px solid var(--cfgh-borde); border-radius: 14px; background: rgba(0, 0, 0, .02); }
@media (min-width: 800px) { .cfgh-indice { position: sticky; top: 24px; } }
@media (max-width: 799px) { .cfgh-indice { max-width: none; } }
.cfgh-indice__titulo { margin: 0 0 6px; padding: 0 10px; font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cfgh-suave); }
.cfgh-indice ol { margin: 0; padding: 0; list-style: none; }
.cfgh-indice li { margin: 0; }
.cfgh-indice a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: .95em; }
.cfgh-indice a:hover { background: rgba(0, 0, 0, .04); }
.cfgh-indice a.is-actual { background: var(--cfgh-acento-suave, #FBF4F5); color: var(--cfgh-acento, #960A25); font-weight: 700; }
.cfgh-indice__num { min-width: 1.2em; font-size: .85em; font-weight: 700; color: var(--cfgh-suave); }
.cfgh-indice a.is-actual .cfgh-indice__num { color: inherit; }
.cfgh-tutorial__apartados { flex: 999 1 420px; min-width: 0; }
.cfgh-apartado { padding-bottom: 2em; margin-bottom: 2em; border-bottom: 1px solid var(--cfgh-borde); scroll-margin-top: 24px; }
.cfgh-apartado > :last-child { margin-bottom: 0; }
.cfgh-app .cfgh-apartado__titulo { margin: 0 0 .6em; font-size: 1.6em; line-height: 1.2; }
.cfgh-duda { padding: 16px 20px; border-radius: 12px; background: var(--cfgh-acento-suave, #FBF4F5); }
.cfgh-duda a { font-weight: 700; color: var(--cfgh-acento, #960A25); }

/* Requisitos en tarjetas */
.cfgh-requisitos-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cfgh-requisitos-tarjetas li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 18px; border: 1px solid var(--cfgh-borde); border-radius: 12px; font-weight: 600; }
.cfgh-requisitos-tarjetas__check { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cfgh-acento-suave, #FBF4F5); color: var(--cfgh-acento, #960A25); }

/* Comentarios */
.cfgh-comentarios, .cfgh-comentarios .children { margin: 0; padding: 0; list-style: none; }
.cfgh-comentarios .children { padding-left: 54px; }
.cfgh-comentario { margin: 0; }
.cfgh-comentario__cuerpo { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--cfgh-borde); }
.cfgh-comentario__avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .08); font-weight: 700; }
.cfgh-comentario--autor > .cfgh-comentario__cuerpo .cfgh-comentario__avatar { background: var(--cfgh-acento, #960A25); color: #fff; }
.cfgh-comentario__texto { flex: 1 1 auto; min-width: 0; }
.cfgh-comentario__meta { margin: 0 0 4px; font-size: .9em; color: var(--cfgh-suave); }
.cfgh-comentario__meta strong { color: initial; color: inherit; }
.cfgh-comentario__autor { margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: .8em; font-weight: 700; background: var(--cfgh-acento-suave, #FBF4F5); color: var(--cfgh-acento, #960A25); }
.cfgh-comentario__contenido > :first-child { margin-top: 0; }
.cfgh-comentario__contenido > :last-child { margin-bottom: 0; }
.cfgh-comentario__pendiente { margin: 0 0 6px; font-size: .9em; font-style: italic; color: #5C4813; }
.cfgh-comentario__responder { margin: 6px 0 0; font-size: .9em; }
.cfgh-comentario__responder a { font-weight: 600; text-decoration: none; }
.cfgh-aviso-ok { padding: 12px 16px; border-radius: 10px; background: #EAF6EC; color: #1E5B2A; }
.cfgh-app .comment-respond { margin-top: 28px; padding: 22px; border: 1px solid var(--cfgh-borde); border-radius: 14px; }
.cfgh-app .comment-reply-title { margin-top: 0; }
.cfgh-app .comment-form label { display: block; font-weight: 600; }
.cfgh-app .comment-form input[type="text"], .cfgh-app .comment-form input[type="email"], .cfgh-app .comment-form textarea { width: 100%; }
.cfgh-app .comment-form-cfgh-privacidad label, .cfgh-app .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.cfgh-app .comment-form .submit { min-height: 44px; padding: 10px 22px; border: 0; border-radius: 8px; background: var(--cfgh-acento, #960A25); color: #fff; font-weight: 600; cursor: pointer; }
.cfgh-nota { font-size: .9em; color: var(--cfgh-suave); }
.cfgh-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Los temas (GeneratePress incluido) dan estilo a todos los <button>: aquí se fija el aspecto de los nuestros. */
.cfgh-app button.cfgh-pestanas__boton { background: transparent !important; color: var(--cfgh-suave) !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; font-size: 1em !important; padding: 10px 18px !important; }
.cfgh-app button.cfgh-pestanas__boton:hover { color: inherit !important; }
.cfgh-app button.cfgh-pestanas__boton[aria-selected="true"] { color: inherit !important; border-bottom-color: var(--cfgh-acento, #960A25) !important; }
.cfgh-app button.cfgh-paso__anterior, .cfgh-app button.cfgh-paso__siguiente { border-radius: 8px !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; font-size: 1em !important; padding: 10px 18px !important; line-height: 1.2 !important; }
.cfgh-app button.cfgh-paso__anterior { background: #fff !important; color: inherit !important; border: 1px solid rgba(0, 0, 0, .2) !important; }
.cfgh-app button.cfgh-paso__anterior:not([disabled]):hover { background: rgba(0, 0, 0, .04) !important; }
.cfgh-app button.cfgh-paso__siguiente { background: var(--cfgh-acento, #960A25) !important; color: #fff !important; border: 0 !important; }
.cfgh-app button.cfgh-paso__siguiente:hover, .cfgh-app button.cfgh-paso__siguiente:focus { background: var(--cfgh-acento-oscuro, #71081C) !important; color: #fff !important; }
.cfgh-app .comment-form input.submit { background: var(--cfgh-acento, #960A25) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; }
.cfgh-pasos__num { line-height: 1; box-sizing: border-box; }

/* ==========================================================================
   V2.0 – Módulos [apps_inicio] y [apps_portfolio]
   ========================================================================== */
.cfgh-enlace-tarjeta { color: inherit; text-decoration: none; }
.cfgh-enlace-tarjeta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toda la tarjeta es pulsable */
.cfgh-enlace-tarjeta:focus-visible { outline: none; }
.cfgh-destacada:focus-within, .cfgh-mini:focus-within, .cfgh-fila__tarjeta:focus-within { outline: 2px solid var(--cfgh-acento, #960A25); outline-offset: 2px; }
.cfgh-icono-vacio { display: inline-flex; align-items: center; justify-content: center; background: var(--cfgh-acento, #960A25); color: #fff; font-weight: 700; }

/* Inicio */
.cfgh-inicio { display: flex; flex-direction: column; gap: 48px; }
.cfgh-inicio__titulo { margin: 0 0 20px; }
.cfgh-destacadas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cfgh-destacada { position: relative; display: flex; gap: 22px; align-items: flex-start; padding: 28px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 18px; background: #fff; transition: box-shadow .2s, transform .2s; }
.cfgh-destacada:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.cfgh-destacada__icono { flex: 0 0 auto; width: 88px; height: 88px; object-fit: cover; border-radius: 22%; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); font-size: 36px; }
.cfgh-destacada__texto { flex: 1 1 auto; min-width: 0; }
.cfgh-destacada__nombre { margin: 0 0 6px; font-size: 1.45em; line-height: 1.2; }
.cfgh-destacada__desc { margin: 0 0 12px; color: rgba(0, 0, 0, .7); }
.cfgh-destacada__mas, .cfgh-fila__mas { font-weight: 600; color: var(--cfgh-acento, #960A25); }

.cfgh-ultimas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cfgh-ultimas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cfgh-ultimas { grid-template-columns: 1fr; } .cfgh-destacada { flex-direction: column; } }
.cfgh-mini { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 14px; background: #fff; transition: box-shadow .2s, transform .2s; }
.cfgh-mini:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.cfgh-mini__icono { flex: 0 0 auto; width: 52px; height: 52px; object-fit: cover; border-radius: 22%; font-size: 22px; }
.cfgh-mini__texto { min-width: 0; }
.cfgh-mini__nombre { margin: 0 0 4px; font-size: 1.05em; line-height: 1.25; }
.cfgh-mini__desc { margin: 0; font-size: .9em; color: rgba(0, 0, 0, .65); }
@media (prefers-reduced-motion: reduce) { .cfgh-destacada, .cfgh-mini, .cfgh-fila__tarjeta { transition: none; } .cfgh-destacada:hover, .cfgh-mini:hover, .cfgh-fila__tarjeta:hover { transform: none; } }

/* Portfolio */
.cfgh-portfolio { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.cfgh-filtros { flex: 1 1 240px; max-width: 280px; }
@media (min-width: 800px) { .cfgh-filtros { position: sticky; top: 24px; } }
@media (max-width: 799px) { .cfgh-filtros { max-width: none; } }
.cfgh-filtros__form { display: flex; flex-direction: column; gap: 22px; padding: 22px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 16px; background: rgba(0, 0, 0, .02); }
.cfgh-filtro { margin: 0; padding: 0; border: 0; min-width: 0; }
.cfgh-filtro__titulo { display: block; margin: 0 0 8px; padding: 0; font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(0, 0, 0, .6); }
.cfgh-buscador { position: relative; }
.cfgh-buscador .cfgh-icono { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(0, 0, 0, .45); pointer-events: none; }
.cfgh-app input[type="search"], .cfgh-portfolio input[type="search"] { width: 100%; min-height: 44px; padding: 8px 12px 8px 38px !important; border: 1px solid rgba(0, 0, 0, .2); border-radius: 10px; background: #fff; font: inherit; }
.cfgh-opcion { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; cursor: pointer; font-weight: 400; }
.cfgh-opcion input { margin: 0; width: 18px; height: 18px; accent-color: var(--cfgh-acento, #960A25); }
.cfgh-opcion__n { margin-left: auto; font-size: .8em; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .06); color: rgba(0, 0, 0, .6); }
.cfgh-filtros__botones { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cfgh-portfolio button.cfgh-filtros__aplicar { min-height: 40px; padding: 8px 18px !important; border: 0 !important; border-radius: 8px !important; background: var(--cfgh-acento, #960A25) !important; color: #fff !important; font: inherit; font-weight: 600; text-transform: none !important; cursor: pointer; }
.cfgh-filtros__limpiar { font-size: .9em; font-weight: 600; }

.cfgh-resultados { flex: 999 1 460px; min-width: 0; }
.cfgh-resultados__total { margin: 0 0 14px; font-weight: 600; color: rgba(0, 0, 0, .6); }
.cfgh-filas { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cfgh-filas > li { margin: 0; }
.cfgh-fila[hidden] { display: none; }
.cfgh-fila__tarjeta { position: relative; display: flex; flex-wrap: wrap; gap: 24px; padding: 20px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 16px; background: #fff; transition: box-shadow .2s, transform .2s; }
.cfgh-fila__tarjeta:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.cfgh-fila__imagen { flex: 0 1 260px; margin: 0; }
.cfgh-fila__imagen img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); }
.cfgh-fila__texto { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cfgh-fila__nombre { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.35em; line-height: 1.2; }
.cfgh-fila__icono { flex: 0 0 auto; width: 44px; height: 44px; object-fit: cover; border-radius: 22%; font-size: 18px; }
.cfgh-fila__meta { margin: 0; font-size: .85em; color: rgba(0, 0, 0, .55); }
.cfgh-fila__desc { margin: 0; }
.cfgh-fila__cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.cfgh-fila__cats li { margin: 0; padding: 2px 10px; border-radius: 999px; font-size: .8em; font-weight: 600; background: var(--cfgh-acento-suave, #FBF4F5); color: var(--cfgh-acento, #960A25); }
.cfgh-fila__mas { margin-top: auto; padding-top: 6px; }

/* Tamaños propios de los títulos de las tarjetas (algunos temas fuerzan h3 muy grandes) */
.cfgh-inicio .cfgh-destacada__nombre { font-size: 1.45em; }
.cfgh-inicio .cfgh-mini__nombre { font-size: 1.05em; }
.cfgh-portfolio .cfgh-fila__nombre { font-size: 1.35em; }
.cfgh-destacada__texto, .cfgh-mini__texto, .cfgh-fila__texto { overflow-wrap: break-word; }
.cfgh-inicio h3, .cfgh-portfolio h3 { letter-spacing: normal; }
.cfgh-destacada__icono { width: 88px !important; height: 88px !important; max-width: none !important; }
.cfgh-mini__icono { width: 52px !important; height: 52px !important; max-width: none !important; }
.cfgh-fila__icono, .cfgh-tarjeta__icono { width: 44px !important; height: 44px !important; max-width: none !important; }

/* ==========================================================================
   V3.0 – Pestaña Versiones y paso de descarga
   ========================================================================== */
.cfgh-paso-descarga { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 1.2em; }
.cfgh-paso-descarga__enlace { margin: 14px 0 0; }
.cfgh-paso-descarga__enlace a { font-weight: 600; color: var(--cfgh-acento, #960A25); text-decoration: none; }
.cfgh-historial { margin: 0; padding: 0; list-style: none; border-left: 3px solid rgba(0, 0, 0, .1); }
.cfgh-historial__item { position: relative; margin: 0; padding: 4px 0 28px 28px; }
.cfgh-historial__item::before { content: ""; position: absolute; left: -9px; top: 10px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid rgba(0, 0, 0, .25); }
.cfgh-historial__item.es-actual::before { border-color: var(--cfgh-acento, #960A25); background: var(--cfgh-acento, #960A25); }
.cfgh-historial__cabecera { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cfgh-app .cfgh-historial__numero { margin: 0; font-size: 1.4em; line-height: 1.2; }
.cfgh-historial__fecha { color: var(--cfgh-suave); font-variant-numeric: tabular-nums; }
.cfgh-historial__etiqueta { font-size: .75em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cfgh-suave); }
.es-actual .cfgh-historial__etiqueta { color: var(--cfgh-acento, #960A25); }
.cfgh-historial__importante { font-size: .75em; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--cfgh-acento, #960A25); color: #fff; }
.cfgh-historial .cfgh-novedades { margin-top: 8px; }
.cfgh-historial__descarga { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0; }
