/* Tropa Kids – Home en Elementor.
   Guardar en: TropaKids-v15/assets/css/tk-home-elementor.css
   (las rutas ../images/ son relativas a esa carpeta).
   Solo contiene lo que los controles de Elementor Free no pueden hacer. */

/* Anula los h1/h2/p globales de home.css para que manden los controles de Elementor */
.tk-sec p { color: inherit; margin-top: 0; }
.tk-sec .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.tk-accent { color: #ffcf39; font-style: normal; }

/* Botones: elevación al pasar el ratón */
.tk-sec .elementor-button { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; white-space: normal; }
.tk-sec .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,30,70,.12); filter: brightness(1.04); }
@media (prefers-reduced-motion: reduce) { .tk-sec .elementor-button { transition: none; } .tk-sec .elementor-button:hover { transform: none; } }

/* ---------- Hero ---------- */
.tk-hero { position: relative; isolation: isolate; }
.tk-hero::after { content: ''; position: absolute; z-index: 3; left: -4%; bottom: -1px; width: 108%; height: 45px;
  background: #f4f9ff; border-radius: 50% 50% 0 0 / 90% 90% 0 0; pointer-events: none; }
.tk-hero > * { position: relative; z-index: 5; }
.tk-hero-lead { max-width: 520px; }
/* Tablet y móvil: la imagen baja a la parte inferior con borde superior difuminado */
@media (max-width: 1024px) {
  .tk-hero.e-con { background-image: linear-gradient(115deg, #092d76, #1760b8) !important; background-color: #123e94; }
  .tk-hero.e-con::before { content: ''; position: absolute; top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 390px; z-index: 0;
    pointer-events: none; background: url('../images/tk-alt-hero-integrado.webp') right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 27%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 27%, #000 100%); }
  .tk-hero-copy { max-width: 635px; }
}
@media (max-width: 767px) { .tk-hero.e-con::before { height: 335px; } }
@media (max-width: 480px) { .tk-hero.e-con::before { height: 285px; } }

/* ---------- Franja de ventajas ---------- */
.tk-trust { position: relative; z-index: 4; }
.tk-trust-item:not(:last-child) { border-right: 1px solid #c8d9ef; }
.tk-trust-item:first-child { padding-left: 0; }
.tk-trust-item .elementor-image-box-wrapper { align-items: center; }
@media (max-width: 767px) {
  .tk-trust-item.e-con { --width: 50%; margin-bottom: 26px; }
  .tk-trust-item:nth-child(2) { border-right: 0; }
  .tk-trust-item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 480px) { .tk-trust-item.e-con { --width: 100%; border-right: 0; padding-left: 0; margin-bottom: 18px; } }

/* ---------- Tarjetas de cursos ---------- */
.tk-course-card .elementor-widget-image img { display: block; }
.tk-course-wide.elementor-widget { width: calc(100% + 68px) !important; max-width: none; margin-left: -34px !important; margin-right: -34px !important; }
.tk-course-wide img { width: 100%; height: auto; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }
.tk-course-card .elementor-button { width: 100%; max-width: 100%; }
.tk-card-ai .elementor-button { min-width: min(340px, 100%); }
@media (max-width: 1024px) { .tk-course-wide.elementor-widget { width: calc(100% + 52px) !important; margin-left: -26px !important; margin-right: -26px !important; } }
@media (max-width: 767px)  { .tk-course-wide.elementor-widget { width: calc(100% + 48px) !important; margin-left: -24px !important; margin-right: -24px !important; } }
@media (max-width: 430px)  { .tk-course-wide.elementor-widget { width: calc(100% + 40px) !important; margin-left: -20px !important; margin-right: -20px !important; } }

/* ---------- Preguntas frecuentes (tarjetas) ---------- */
.tk-faq .elementor-toggle-item { background: #f0f6ff; border: 1px solid #dbe7f7; border-radius: 16px; padding: 18px 22px; margin-bottom: 14px; }
.tk-faq .elementor-toggle-item:last-child { margin-bottom: 0; }
.tk-faq .elementor-tab-title { padding: 0 !important; border: 0 !important; }
.tk-faq .elementor-tab-title a { color: inherit; }
.tk-faq .elementor-tab-content { padding: 15px 0 0 !important; border: 0 !important; }
.tk-faq .elementor-tab-content p + p { margin-top: 12px; }
.tk-faq .elementor-tab-content ul { margin: 12px 0 0; padding-left: 21px; }
.tk-faq .elementor-tab-content li { margin-bottom: 7px; }
.tk-faq .elementor-tab-content li:last-child { margin-bottom: 0; }
.tk-faq .elementor-tab-content strong { color: #183c72; font-weight: 850; }
.tk-faq .elementor-tab-content a { color: #1266ca; text-decoration: underline; text-underline-offset: 2px; }
.tk-faq .elementor-tab-content a:hover { color: #0b3f96; }
