/* Componentes comunes de las páginas de Hosting IA:
 * Crea tu sitio web con IA (/crea-tu-sitio-web-con-ia/) y Hosting exclusivo IA (/hosting-ia/).
 * Hero en dos columnas, precio destacado, listas con verificación, etiquetas de condiciones,
 * botones pendientes de WHMCS, preguntas frecuentes en dos columnas y cierre.
 * Se carga solo en esas dos páginas (config 'paginas_ia'). */

.tc-hia { --hia-navy: #0F2830; --hia-texto: #34404C; }
#formas-de-crear, #caracteristicas-hosting-ia, #contratar-hosting-ia, #tc-hia-faq { scroll-margin-top: 110px; }

/* ── Hero: contenido y visual en dos columnas equilibradas ── */
.tc-hia-hero .tc-dhero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
.tc-hia-hero .tc-dhero-chips { flex-wrap: wrap; margin: 18px 0 0; }
:is(.entry-content, .is-root-container) .tc-hia-hero .tc-hia-precio { margin: 22px 0 0 !important; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.tc-hia-precio strong { margin-right: 6px; font-family: 'Lexend', sans-serif; font-size: 34px; font-weight: 600; color: #ffffff; }
.tc-hia-hero .tc-ctas { flex-wrap: wrap; margin-top: 22px !important; }
@media (max-width: 1100px) {
	.tc-hia-hero .tc-dhero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.tc-hia-hero .tc-dhero-content { text-align: center; }
	.tc-hia-hero .tc-kicker, .tc-hia-hero .tc-dhero-chips, .tc-hia-hero .tc-ctas { justify-content: center; }
}
@media (max-width: 767px) {
	.tc-hia-precio strong { font-size: 28px; }
	.tc-hia-hero .tc-ctas .tc-cta, .tc-hia-hero .tc-ctas .tc-cta a { width: 100%; }
}

/* Separación entre el título de sección y una grilla cuando no hay bajada */
:is(.entry-content, .is-root-container) .tc-hia .tc-hia-sinbajada { margin-top: 32px !important; }

/* ── Listas con verificación (color con --m-fg) y de exclusión ── */
:is(.entry-content, .is-root-container) .tc-hia-checks { margin: 0 0 20px; padding: 0; list-style: none; }
:is(.entry-content, .is-root-container) .tc-hia-checks li { position: relative; margin: 0 0 12px; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--hia-texto); }
.tc-hia-checks li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--m-fg, #286747);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.3 2.3 2.3 4.7-4.8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.3 2.3 2.3 4.7-4.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tc-hia-checks--no { --m-fg: #A33B3B; }
.tc-hia-checks--no li::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6M15 9l-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6M15 9l-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Etiquetas de condiciones comerciales ── */
.tc-hia-conds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tc-hia-conds > .wp-block-group__inner-container { display: contents; }
:is(.entry-content, .is-root-container) .tc-hia-conds p { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px; background: #FFF6E4; border: 1px solid #EBDDB8; border-radius: 999px; font-size: 14px; font-weight: 600; color: #6B5320; }
.tc-hia-conds p::before { content: "✓"; font-weight: 700; color: #286747; }

/* ── Botones de contratación pendientes de WHMCS: aviso visible solo en el editor ── */
.is-root-container .tc-hia-pendiente { outline: 2px dashed #D97706; outline-offset: 4px; }
.is-root-container .tc-hia-pendiente::before { content: "PENDIENTE: enlace de WHMCS"; display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; color: #B45309; }

/* ── Preguntas frecuentes en dos columnas independientes ── */
.tc-hia-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; max-width: 1100px; margin: 8px auto 0; interpolate-size: allow-keywords; }
.tc-hia-faqcol { --f-bg: #EEECFB; --f-bd: #D3CDF0; --f-fg: #5B4A9E; padding: 18px; background: var(--f-bg); border: 1px solid var(--f-bd); border-radius: 16px; box-shadow: 0 4px 12px rgba(15, 23, 42, .07); }
.tc-hia-faqcol--menta { --f-bg: #E6F4ED; --f-bd: #BFDFCC; --f-fg: #3E7A5C; }
.tc-hia-faqhead { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.tc-hia-faqhead svg { flex: none; width: 40px; height: 40px; padding: 9px; box-sizing: border-box; background: rgba(255, 255, 255, .85); border-radius: 10px; }
.tc-hia-faqhead h3 { margin: 0 !important; font-family: 'Lexend', sans-serif; font-size: 19px; font-weight: 600; color: var(--hia-navy); }
.tc-hia-q { margin: 0 0 10px; background: #ffffff; border: 1px solid var(--f-bd); border-radius: 12px; overflow: hidden; }
.tc-hia-q:last-child { margin-bottom: 0; }
.tc-hia-q summary { position: relative; display: block; padding: 15px 50px 15px 18px; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--hia-navy); transition: background .25s ease, color .25s ease; }
.tc-hia-q summary::-webkit-details-marker { display: none; }
.tc-hia-q summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--f-bg); font-size: 18px; font-weight: 600; line-height: 24px; text-align: center; color: var(--f-fg); }
.tc-hia-q summary:hover { background: var(--f-bg); }
.tc-hia-q summary:focus-visible { outline: 3px solid #F3C9C9; outline-offset: -3px; }
.tc-hia-q[open] summary { background: #0F2830; color: #ffffff; }
.tc-hia-q[open] summary::after { content: "−"; background: rgba(255, 255, 255, .15); color: #ffffff; }
.tc-hia-q::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.tc-hia-q[open]::details-content { block-size: auto; }
.tc-hia-a { padding: 14px 18px 4px; }
.tc-hia-a p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--hia-texto); }
.tc-hia-a a { color: var(--tc-acento, #B9151B); font-weight: 600; }
@media (max-width: 900px) {
	.tc-hia-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.tc-hia-faqcol { padding: 14px 10px; }
	.tc-hia-q summary { padding: 14px 46px 14px 14px; font-size: 15px; }
}

/* ── Cierre oscuro: precio, destacados y botones ── */
:is(.entry-content, .is-root-container) .tc-hia-cierre .tc-hia-precio { margin: 4px 0 14px; text-align: center; color: rgba(255, 255, 255, .78); }
.tc-hia-cierre .tc-dhero-chips { flex-wrap: wrap; justify-content: center; margin: 0 0 24px; }
:is(.entry-content, .is-root-container) .tc-hia-cierre .tc-hia-cierre-pre { margin: 28px 0 12px !important; font-size: 15.5px; text-align: center; color: rgba(255, 255, 255, .78); }
.tc-hia-cierre .tc-ctas { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
	.tc-hia-q::details-content, .tc-hia-q summary { transition: none; }
}
@media (max-width: 480px) {
	:is(.entry-content, .is-root-container) .tc-hia-cierre .tc-cta a { width: 100%; height: auto; min-height: 50px; padding: 10px 18px; line-height: 1.3; text-align: center; white-space: normal; }
}
