/* Pago de Servicios (/pago-de-servicios/).
 * Solo para esta página. Hero compacto (tc-dhero de detalle.css), tres tarjetas de medios
 * de pago, datos bancarios con botón de copiar (assets/js/pages/pago-de-servicios.js) y recordatorio. */

.tc-pg { --pg-navy: #0F2830; --pg-texto: #34404C; --pg-suave: #5B6673; }
#formas-de-pago { scroll-margin-top: 110px; }

/* ── Hero compacto de una columna ── */
.tc-pg-hero { padding: 56px 0 58px; }
.tc-pg-hero .tc-dhero-inner { grid-template-columns: minmax(0, 1fr); }
.tc-pg-hero .tc-dhero-content { max-width: 860px; }
:is(.entry-content, .is-root-container) .tc-pg-hero .tc-dhero-intro { max-width: 760px; margin-bottom: 0; }
@media (max-width: 767px) {
	.tc-pg-hero { padding: 40px 0 44px; }
}

/* ── Encabezado de la sección ── */
:is(.entry-content, .is-root-container) .tc-pg-kicker { display: flex !important; justify-content: center; margin: 0 0 12px !important; }
:is(.entry-content, .is-root-container) .tc-pg .tc-sec-lead { max-width: 720px; margin-inline: auto; }

/* ── Tres tarjetas de medios de pago ── */
.tc-pg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; margin: 34px 0 0 !important; }
.tc-pg-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #ffffff; border: 1px solid #DCE3EA; border-radius: 16px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .07); transition: transform .25s ease, box-shadow .25s ease;
}
.tc-pg-card > .wp-block-group__inner-container { display: flex; flex: 1; flex-direction: column; width: 100%; max-width: none; margin: 0 !important; padding: 0 !important; }
@media (hover: hover) and (min-width: 1101px) {
	.tc-pg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
}

/* Franja superior: número y tipo de pago */
:is(.entry-content, .is-root-container) .tc-pg-top { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 12px 18px 14px; background: #EEF4F2; border-top: 4px solid transparent; border-bottom: 1px solid #DCE6E2; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pg-navy); }
.tc-pg-card--dest .tc-pg-top { background: #FCEFEF; border-top-color: var(--tc-rojo, #D7262B); border-bottom-color: #F1D6D6; }
.tc-pg-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--pg-navy); font-size: 13px; letter-spacing: 0; color: #ffffff; }

/* Logotipo */
:is(.entry-content, .is-root-container) .tc-pg-logo { display: flex; align-items: center; justify-content: center; height: 128px; margin: 0 !important; padding: 18px 24px; background: #ffffff; border-bottom: 1px solid #E5EAF0; box-sizing: border-box; }
.tc-pg-logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 92px; object-fit: contain; }

/* Cuerpo */
.tc-pg-body { flex: 1; padding: 22px 20px 6px; }
:is(.entry-content, .is-root-container) .tc-pg-body h3 { margin: 0 0 8px; font-family: 'Lexend', sans-serif; font-size: 20px; font-weight: 600; color: var(--pg-navy); }
:is(.entry-content, .is-root-container) .tc-pg-body .tc-pg-desc { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--pg-texto); }

/* Datos bancarios */
.tc-pg-datos { margin: 0 0 16px !important; background: #F7F9FA; border: 1px solid #E1E8EE; border-radius: 12px; overflow: hidden; }
:is(.entry-content, .is-root-container) .tc-pg-dato { display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 10px 14px; border-bottom: 1px solid #E5EAF0; }
:is(.entry-content, .is-root-container) .tc-pg-dato:last-child { border-bottom: 0; }
.tc-pg-dato span { font-size: 12.5px; color: var(--pg-suave); }
.tc-pg-dato strong { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--pg-navy); overflow-wrap: anywhere; }
.tc-pg-dato a { color: var(--tc-rojo, #D7262B); text-decoration: none; }
.tc-pg-dato a:hover { text-decoration: underline; }

/* Recuadro informativo */
.tc-pg-aviso { display: flex; gap: 12px; margin: 0 0 16px !important; padding: 14px; background: #EEF4FB; border: 1px solid #CFDDEF; border-radius: 12px; }
.tc-pg-aviso > .wp-block-group__inner-container { display: contents; }
.tc-pg-aviso::before { content: "i"; display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #2F5B8F; font-family: Georgia, serif; font-size: 14px; font-weight: 700; font-style: italic; color: #ffffff; }
:is(.entry-content, .is-root-container) .tc-pg-aviso p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--pg-texto); }
.tc-pg-aviso a { font-weight: 600; color: var(--tc-rojo, #D7262B); overflow-wrap: anywhere; }

/* Pasos numerados */
:is(.entry-content, .is-root-container) .tc-pg-pasos-tit { margin: 0 0 12px !important; padding-bottom: 10px; border-bottom: 1px solid #E5EAF0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tc-rojo, #D7262B); }
:is(.entry-content, .is-root-container) ol.tc-pg-pasos { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: pgpaso; }
:is(.entry-content, .is-root-container) .tc-pg-pasos li { position: relative; margin: 0 0 14px; padding-left: 40px; min-height: 28px; font-size: 14.5px; line-height: 1.55; color: var(--pg-texto); counter-increment: pgpaso; }
.tc-pg-pasos li::before { content: counter(pgpaso); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #DCE6E2; border-radius: 8px; background: #EEF4F2; font-size: 13px; font-weight: 700; color: var(--pg-navy); }
.tc-pg-pasos strong { color: var(--pg-navy); }

/* Pie de la tarjeta: botón alineado abajo */
.tc-pg-pie { position: relative; padding: 4px 20px 32px; }
:is(.entry-content, .is-root-container) .tc-pg-pie .tc-cta { margin: 0 !important; }
:is(.entry-content, .is-root-container) .tc-pg-pie .tc-cta a { width: 100%; justify-content: center; white-space: nowrap; }
.tc-pg-copiar a::after {
	-webkit-mask-image: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E");
	        mask-image: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E");
}
.tc-pg-copiar a:hover::after { transform: none; }
.tc-pg-ok { position: absolute; left: 12px; right: 12px; bottom: 8px; text-align: center; font-size: 13px; line-height: 1.3; font-weight: 600; color: #286747; }
.tc-pg-ok:empty { visibility: hidden; }
.tc-pg-ok.is-error { color: #A33B3B; }

/* ── Recordatorio final ── */
.tc-pg-recuerda { display: flex; align-items: center; gap: 14px; max-width: 1000px; margin: 30px auto 0 !important; padding: 16px 20px; background: #E5F3EB; border: 1px solid #BFDFCC; border-radius: 14px; }
.tc-pg-recuerda > .wp-block-group__inner-container { display: contents; }
.tc-pg-recuerda::before { content: "✓"; display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #2E7A55; font-size: 16px; font-weight: 700; color: #ffffff; }
:is(.entry-content, .is-root-container) .tc-pg-recuerda p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pg-texto); }
.tc-pg-recuerda strong { color: var(--pg-navy); }

/* ── Responsive: una tarjeta debajo de otra, sin carrusel ── */
@media (max-width: 1000px) {
	.tc-pg-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto !important; gap: 20px; }
}
@media (max-width: 480px) {
	.tc-pg-body { padding: 20px 16px 4px; }
	.tc-pg-pie { padding: 4px 16px 30px; }
	:is(.entry-content, .is-root-container) .tc-pg-logo { height: 112px; }
	.tc-pg-recuerda { align-items: flex-start; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.tc-pg-card { transition: none; }
}
