/* =========================================================
   Inicio (front page) · paleta Petróleo y rojo
   Se carga solo en la portada (slug «inicio»), junto con contacto.css. Todas las reglas usan clases tc-home-* / tc-plan-*
   para no afectar otras páginas.
   ========================================================= */

/* ---------- Encabezado ---------- */
.tc-home-hero .tc-dhero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
:is(.entry-content, .is-root-container) .tc-home-h1 { margin: 0 0 18px; font-size: 21px; line-height: 1.4; font-weight: 400; color: rgba(255, 255, 255, .82); }
.tc-home-h1 .tc-h1-l1 { display: inline-block; margin-bottom: 12px; font-size: 46px; line-height: 1.1; font-weight: 600; color: #ffffff; }
.tc-home-h1 .tc-h1-l2 { font-size: 25px; font-weight: 600; color: #ffffff; }
.tc-home-h1 .tc-h1-l3 { color: rgba(255, 255, 255, .78); }
.tc-home-hero .tc-dhero-intro { max-width: 560px; }
.tc-home-hero-ctas { margin-top: 26px; justify-content: flex-start; }

.tc-home-promesa { position: relative; padding: 32px 30px 28px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
:is(.entry-content, .is-root-container) .tc-home-promesa p { margin: 0; }
:is(.entry-content, .is-root-container) .tc-home-promesa-title { font-family: var(--tc-fuente-titulos); font-size: 25px; line-height: 1.2; font-weight: 600; text-transform: uppercase; color: #ffffff; }
:is(.entry-content, .is-root-container) .tc-home-promesa-text { margin-top: 10px !important; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
:is(.entry-content, .is-root-container) .tc-home-promesa-list { margin: 18px 0 0; padding: 0; list-style: none; }
.tc-home-promesa-list li { position: relative; margin: 0 0 10px; padding-left: 30px; font-size: 15px; line-height: 1.45; color: #ffffff; }
.tc-home-promesa-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--tc-acento-grad); }
.tc-home-promesa-list li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 8px; height: 5px; border-left: 2px solid #ffffff; border-bottom: 2px solid #ffffff; transform: rotate(-45deg); }
:is(.entry-content, .is-root-container) .tc-home-promesa-pie { display: flex; align-items: center; gap: 10px; margin-top: 18px !important; padding: 11px 14px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(74, 222, 128, .28); border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #4ADE80; }
.tc-home-promesa-pie::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--tc-ico) center / contain no-repeat; mask: var(--tc-ico) center / contain no-repeat; }

/* ---------- Logos de clientes ---------- */
.tc-home-logos { padding: 26px 0; background: #ffffff; border-bottom: 1px solid var(--tc-c-borde); }
.tc-home-logos-inner { max-width: var(--tc-ancho); margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.tc-home-logos-fila { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 30px; }
.tc-home-logos-fila img { display: block; width: auto; height: 50px; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.tc-home-logos-fila img:hover { filter: none; opacity: 1; }

/* ---------- Imágenes pequeñas ---------- */
.tc-home-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.tc-home-tiles { max-width: 1200px; margin: 34px auto 0; }
.tc-home-tile { padding: 12px 12px 14px; background: #ffffff; border: 1px solid var(--tc-c-borde); border-radius: 16px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tc-home-tile:hover { transform: translateY(-4px); border-color: #CBD5E1; box-shadow: 0 16px 34px rgba(15, 23, 42, .09); }
:is(.entry-content, .is-root-container) .tc-home-tile-img { margin: 0; }
.tc-home-tile-img img { display: block; width: 100%; height: auto; aspect-ratio: 550 / 300; object-fit: contain; border-radius: 10px; background: #F8FAFC; }
:is(.entry-content, .is-root-container) .tc-home-tile-label { margin: 10px 0 0; font-size: 14.5px; line-height: 1.3; font-weight: 600; }
:is(.entry-content, .is-root-container) .tc-home-tile-label a { color: var(--tc-c-navy); text-decoration: none; }
:is(.entry-content, .is-root-container) .tc-home-tile-label a:hover { color: var(--tc-acento); }

/* ---------- Tarjetas de planes ---------- */
.tc-home-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tc-home-plans { max-width: 1200px; margin: 36px auto 0; }
.tc-plan { display: flex; flex-direction: column; }
.tc-plan { overflow: hidden; background: #ffffff; border: 1px solid var(--tc-c-borde); border-radius: 20px; box-shadow: 0 14px 34px rgba(15, 23, 42, .07); transition: transform .2s ease, box-shadow .2s ease; }
.tc-plan:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(15, 23, 42, .12); }
:is(.entry-content, .is-root-container) .tc-plan-img { margin: 0; padding: 18px 18px 0; background: linear-gradient(180deg, #EEF2F6 0%, #ffffff 100%); }
.tc-plan-img img { display: block; width: 100%; height: auto; aspect-ratio: 550 / 300; object-fit: contain; }
.tc-plan-body { display: flex; flex-direction: column; flex: 1; }
.tc-plan-body { padding: 8px 26px 26px; text-align: center; }
:is(.entry-content, .is-root-container) .tc-plan-nombre { display: flex; align-items: center; justify-content: center; min-height: 2.5em; margin: 0 0 12px; font-size: 21px; line-height: 1.25; font-weight: 600; color: var(--tc-c-navy); }
:is(.entry-content, .is-root-container) .tc-plan-nombre a { color: inherit; text-decoration: none; }
:is(.entry-content, .is-root-container) .tc-plan-nombre a:hover { color: var(--tc-acento); }
:is(.entry-content, .is-root-container) .tc-plan-precio { margin: 0 0 16px; padding: 12px 14px; background: #F3F6F8; border-radius: 12px; font-family: var(--tc-fuente); font-size: 14.5px; line-height: 1.3; font-weight: 500; color: var(--tc-c-texto); }
.tc-plan-precio strong { margin: 0 3px; font-family: var(--tc-fuente-titulos); font-size: 27px; font-weight: 700; letter-spacing: -.01em; color: var(--tc-c-navy); }
:is(.entry-content, .is-root-container) .tc-plan-carac { margin: 0 0 14px; padding: 0; list-style: none; text-align: left; }
.tc-plan-carac li { position: relative; margin: 0 0 8px; padding-left: 28px; font-size: 14.5px; line-height: 1.45; color: #374151; }
.tc-plan-carac li::before { content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--tc-acento-tinte); }
.tc-plan-carac li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 4px; border-left: 2px solid var(--tc-acento); border-bottom: 2px solid var(--tc-acento); transform: rotate(-45deg); }
:is(.entry-content, .is-root-container) .tc-plan-desc { flex: 1; margin: 0 0 20px; padding-top: 14px; border-top: 1px dashed #D5DCE5; font-family: var(--tc-fuente); font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--tc-c-texto); }
.tc-plan-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-plan-btns { margin-top: auto; }
:is(.entry-content, .is-root-container) .tc-plan-btn { margin: 0; }
:is(.entry-content, .is-root-container) .tc-plan-btn a, :is(.entry-content, .is-root-container) .tc-plan-btn span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
:is(.entry-content, .is-root-container) .tc-plan-btn--det a, :is(.entry-content, .is-root-container) .tc-plan-btn--det span { border: 1.5px solid var(--tc-pet-700); color: var(--tc-pet-700); }
:is(.entry-content, .is-root-container) .tc-plan-btn--det a:hover { background: var(--tc-pet-700); color: #ffffff; }
:is(.entry-content, .is-root-container) .tc-plan-btn--cot a, :is(.entry-content, .is-root-container) .tc-plan-btn--cot span { background: var(--tc-acento-grad); color: #ffffff; box-shadow: 0 8px 18px var(--tc-acento-sombra); }
:is(.entry-content, .is-root-container) .tc-plan-btn--cot a:hover { background: var(--tc-acento-grad-hover); }

/* Grupo con una sola tarjeta (Moodle): tarjeta horizontal centrada */
.tc-home-plans--uno { grid-template-columns: minmax(0, 1fr); }
.tc-home-plans--uno { max-width: 980px; }
.tc-plan--uno { flex-direction: row; }
.tc-plan--uno .tc-plan-img { flex: 0 0 52%; display: flex; align-items: center; padding: 24px; }
.tc-plan--uno .tc-plan-body { padding: 28px 30px; justify-content: center; }

/* ---------- Servicios web ---------- */
.tc-home-serv-grid { margin-top: 36px; }
.tc-home-serv { display: flex; flex-direction: column; }
:is(.entry-content, .is-root-container) .tc-home-serv .tc-ben-title { font-size: 18px; line-height: 1.3; }
:is(.entry-content, .is-root-container) .tc-home-serv-link { margin: auto 0 0; padding-top: 14px; }
:is(.entry-content, .is-root-container) .tc-home-serv-link a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--tc-acento); text-decoration: none; }
:is(.entry-content, .is-root-container) .tc-home-serv-link a::after { content: "→"; transition: transform .2s ease; }
:is(.entry-content, .is-root-container) .tc-home-serv-link a:hover::after { transform: translateX(4px); }

/* ---------- Quiénes somos ---------- */
.tc-home-somos-box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.tc-home-somos-box { max-width: 1150px; margin-inline: auto; padding: 46px 48px; background: #ffffff; border: 1px solid var(--tc-c-borde); border-radius: 24px; box-shadow: 0 14px 34px rgba(15, 23, 42, .06); }
:is(.entry-content, .is-root-container) .tc-home-somos-title { margin: 0; padding-left: 22px; border-left: 4px solid var(--tc-acento); font-size: 31px; line-height: 1.25; font-weight: 600; color: var(--tc-c-navy); }
:is(.entry-content, .is-root-container) .tc-home-somos-p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--tc-c-texto); }
:is(.entry-content, .is-root-container) .tc-home-somos-p:last-child { margin-bottom: 0; }

/* ---------- Artículos ---------- */
.tc-home-arts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tc-home-arts { max-width: 1200px; margin: 36px auto 0; }
.tc-home-art { display: flex; flex-direction: column; }
.tc-home-art { overflow: hidden; background: #ffffff; border: 1px solid var(--tc-c-borde); border-radius: 18px; box-shadow: 0 10px 26px rgba(15, 23, 42, .06); }
:is(.entry-content, .is-root-container) .tc-home-art-img { margin: 0; }
.tc-home-art-img img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.tc-home-art-body { display: flex; flex-direction: column; flex: 1; }
.tc-home-art-body { padding: 18px 20px 22px; }
:is(.entry-content, .is-root-container) .tc-home-art-title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--tc-c-navy); }
:is(.entry-content, .is-root-container) .tc-home-art-text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--tc-c-texto); }
:is(.entry-content, .is-root-container) .tc-home-art-link { margin: auto 0 0; }
:is(.entry-content, .is-root-container) .tc-home-art-link a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--tc-acento); text-decoration: none; }
:is(.entry-content, .is-root-container) .tc-home-art-link a::after { content: "→"; }

/* ---------- Contacto (sección de la página Contacto; estilos en contacto.css) ---------- */
.tc-home-contacto.tc-contact-section { background: #ffffff; scroll-margin-top: 90px; }

/* ---------- Medios de pago ---------- */
.tc-home-pagos-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.tc-home-pagos-logos { margin-top: 28px; }
:is(.entry-content, .is-root-container) .tc-home-pagos-logos .tc-pago-logo { display: flex; align-items: center; justify-content: center; width: 200px; height: 84px; margin: 0; padding: 14px 20px; box-sizing: border-box; background: #ffffff; border: 1px solid var(--tc-c-borde); border-radius: 14px; }
.tc-home-pagos-logos .tc-pago-logo img { display: block; width: 100%; height: 48px; object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.tc-home-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tc-home-plans { gap: 18px; }
	.tc-plan-body { padding: 8px 18px 20px; }
}
@media (max-width: 1024px) {
	.tc-home-hero .tc-dhero-inner { grid-template-columns: minmax(0, 1fr); }
	.tc-home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tc-home-somos-box { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 767px) {
	.tc-home-h1 .tc-h1-l1 { font-size: 32px; }
	.tc-home-h1 .tc-h1-l2 { font-size: 20px; }
	:is(.entry-content, .is-root-container) .tc-home-h1 { font-size: 17px; }
	.tc-home-hero-ctas { flex-direction: column; align-items: stretch; }
	.tc-home-promesa { padding: 24px 20px; }
	.tc-home-logos-fila img { height: 38px; }
	.tc-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tc-home-plans:not(.tc-carrusel) { grid-template-columns: minmax(0, 1fr); }
	/* Carrusel (tc-carrusel.js): los grupos de 3 tarjetas, servicios y artículos se deslizan */
	.tc-home-plans.tc-carrusel, .tc-home-arts.tc-carrusel, .tc-home-serv-grid.tc-carrusel { display: flex; max-width: none; gap: 14px; margin: 18px -24px 0; }
	.tc-carrusel > .tc-plan, .tc-carrusel > .tc-home-art, .tc-carrusel > .wp-block-group__inner-container > .tc-plan, .tc-carrusel > .wp-block-group__inner-container > .tc-home-art { flex: 0 0 calc(100% - 48px); max-width: 400px; scroll-snap-align: center; scroll-snap-stop: always; box-sizing: border-box; }
	.tc-carrusel .tc-plan:hover { transform: none; }
	.tc-plan--uno { flex-direction: column; }
	.tc-plan--uno .tc-plan-img { flex: none; padding: 18px 18px 0; }
	.tc-plan--uno .tc-plan-body { padding: 8px 20px 22px; }
	.tc-home-somos-box { padding: 28px 22px; }
	:is(.entry-content, .is-root-container) .tc-home-somos-title { font-size: 25px; }
	:is(.entry-content, .is-root-container) .tc-home-pagos-logos .tc-pago-logo { width: calc(50% - 9px); height: 72px; }
}

/* Tarjeta con un solo botón (Moodle): el botón ocupa todo el ancho */
.tc-plan-btn:only-child { grid-column: 1 / -1; }
