/**
 * Theme Name:     Framek Child
 * Author:         Opalthemes
 * Template:       framek
 * Version:        1.1.5
 * Text Domain:	   Framek Child
 * Description:    Framek is a modern and professional theme crafted specifically for video production companies, filmmakers, and creative agencies. Designed to showcase video projects with style and functionality, it empowers you to highlight your work, attract clients, and build a strong online presence.
 */

/* ==========================================================================
   KTX Audiovisuales — estilos propios (prefijo ktx-)
   Tokens en :root · responsive a 1024 y 767 px
   ========================================================================== */
:root {
  --ktx-red: #E8352B;
  --ktx-red-d: #C42A21;
  --ktx-ink: #0E0F11;
  --ktx-ink-2: #17191D;
  --ktx-paper: #F4F3EF;
  --ktx-text: #4A4D55;
  --ktx-text-dark: #B4B8BF;
  --ktx-line: rgba(255, 255, 255, .14);
  --ktx-line-light: #D9D7D0;
  --ktx-max: 1240px;
  --ktx-pad: clamp(72px, 9vw, 132px);
  --ktx-font-h: "Cal Sans", "Helvetica Neue", Arial, sans-serif;
  --ktx-font-t: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

/* Secciones */
.e-con.ktx-sec {
  --padding-top: var(--ktx-pad) !important;
  --padding-bottom: var(--ktx-pad) !important;
  --padding-left: 24px !important;
  --padding-right: 24px !important;
  --content-width: var(--ktx-max);
}
.e-con.ktx-dark { background-color: var(--ktx-ink); }
.e-con.ktx-light { background-color: var(--ktx-paper); }
.e-con[class*="ktx-"] { --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
.e-con.ktx-sec > .e-con-inner > .elementor-element,
.e-con.ktx-sec .e-con > .elementor-element { margin: 0; }

/* Titulares */
.e-con[class*="ktx-"] .elementor-widget-heading .elementor-heading-title {
  font-family: var(--ktx-font-h);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ktx-ink) !important;
}
.e-con.ktx-dark .elementor-widget-heading .elementor-heading-title { color: #fff !important; }
.ktx-h1 .elementor-heading-title { font-size: clamp(42px, 7vw, 100px) !important; max-width: 14ch; line-height: .98 !important; }
.ktx-h2 .elementor-heading-title { font-size: clamp(32px, 4.2vw, 58px) !important; max-width: 20ch; }
.ktx-h2 { margin-bottom: 28px !important; }

/* Antetítulo con piloto rojo de directo */
.e-con[class*="ktx-"] .ktx-eyebrow .elementor-heading-title {
  font-family: var(--ktx-font-t);
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ktx-red) !important;
}
.e-con.ktx-dark .ktx-eyebrow .elementor-heading-title { color: #fff !important; }
.ktx-eyebrow { margin-bottom: 20px !important; }
.ktx-rec .elementor-heading-title::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 12px; vertical-align: 1px;
  border-radius: 50%; background: var(--ktx-red); box-shadow: 0 0 0 0 rgba(232, 53, 43, .6);
  animation: ktx-rec 1.8s ease-out infinite;
}
@keyframes ktx-rec { 0% { box-shadow: 0 0 0 0 rgba(232, 53, 43, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(232, 53, 43, 0); } }
@media (prefers-reduced-motion: reduce) { .ktx-rec .elementor-heading-title::before { animation: none; } }

/* Texto */
.e-con[class*="ktx-"] .elementor-widget-text-editor,
.e-con[class*="ktx-"] .elementor-widget-text-editor p {
  font-family: var(--ktx-font-t);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ktx-text);
}
.e-con.ktx-dark .elementor-widget-text-editor,
.e-con.ktx-dark .elementor-widget-text-editor p { color: var(--ktx-text-dark); }
.e-con[class*="ktx-"] .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.e-con[class*="ktx-"] .ktx-lead p { font-size: clamp(18px, 1.5vw, 21px); max-width: 58ch; }
.e-con.ktx-dark .ktx-lead p { color: #D3D6DB; }

/* Botones */
.e-con.ktx-btns { flex-direction: row !important; flex-wrap: wrap; gap: 12px !important; margin-top: 36px; }
.ktx-btn .elementor-button {
  font-family: var(--ktx-font-t); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 19px 30px; border-radius: 0; border: 1px solid var(--ktx-red);
  background: var(--ktx-red) !important; color: #fff !important; fill: #fff;
  transition: background-color .2s, border-color .2s, color .2s;
}
.ktx-btn .elementor-button:hover, .ktx-btn .elementor-button:focus-visible { background: var(--ktx-red-d) !important; border-color: var(--ktx-red-d); }
.ktx-btn--ghost .elementor-button { background: transparent !important; border-color: rgba(255, 255, 255, .45); }
.ktx-btn--ghost .elementor-button:hover, .ktx-btn--ghost .elementor-button:focus-visible { background: #fff !important; border-color: #fff; color: var(--ktx-ink) !important; }
.e-con.ktx-light .ktx-btn--ghost .elementor-button { color: var(--ktx-ink) !important; border-color: var(--ktx-ink); }
.e-con.ktx-light .ktx-btn--ghost .elementor-button:hover { background: var(--ktx-ink) !important; color: #fff !important; }
.ktx-link { margin-top: auto !important; padding-top: 28px; }
.ktx-link .elementor-button {
  background: none !important; padding: 0 0 6px; border-radius: 0; border-bottom: 1px solid var(--ktx-red);
  font-family: var(--ktx-font-t); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff !important;
}
.ktx-link .elementor-button:hover { color: var(--ktx-red) !important; }
.elementor-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Portada */
.e-con.ktx-hero { min-height: min(92vh, 940px); --padding-top: 140px !important; --padding-bottom: 56px !important; }
.e-con.ktx-hero > .e-con-inner { justify-content: flex-end; }
.e-con.ktx-tags {
  flex-direction: row !important; flex-wrap: wrap; margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--ktx-line); padding-top: 22px; gap: 10px 40px !important;
}
.e-con.ktx-tags .ktx-tag .elementor-heading-title {
  font-family: var(--ktx-font-t); font-size: 13px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A9AEB6 !important;
}
.e-con.ktx-tags .ktx-tag { width: auto !important; }

/* Bloques de dos columnas */
.e-con.ktx-split { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px) !important; }
.e-con.ktx-split > .e-con { flex: 1 1 380px !important; width: auto !important; min-width: 0; }
.ktx-img img { display: block; width: 100%; height: auto; }
.ktx-img--frame { position: relative; }
.ktx-img--frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.ktx-img--frame::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 36%; height: 36%;
  border-right: 3px solid var(--ktx-red); border-bottom: 3px solid var(--ktx-red); pointer-events: none;
}

/* Frase destacada */
.e-con.ktx-quote { margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--ktx-line-light); padding-top: 44px; }
.ktx-quote__text .elementor-heading-title { font-size: clamp(30px, 4.4vw, 62px) !important; max-width: 22ch; }
.ktx-quote__sub { margin-top: 16px; }

/* Servicios */
.e-con.ktx-head { flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px !important; }
.e-con.ktx-head > .e-con { width: auto !important; flex: 0 1 auto; }
.e-con.ktx-head .ktx-h2 { margin-bottom: 0 !important; }
.e-con.ktx-cards {
  display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 1px !important;
  margin-top: 56px; background: var(--ktx-line); border: 1px solid var(--ktx-line);
}
.e-con.ktx-card {
  grid-column: span 2; width: auto !important; background: var(--ktx-ink);
  --padding-top: 40px !important; --padding-bottom: 36px !important; --padding-left: 32px !important; --padding-right: 32px !important;
  min-height: 340px; transition: background-color .25s;
}
.e-con.ktx-card:nth-child(n+4) { grid-column: span 3; }
.e-con.ktx-card:hover { background: var(--ktx-ink-2); }
.e-con[class*="ktx-"] .ktx-card__num .elementor-heading-title { font-family: var(--ktx-font-t); font-size: 14px !important; font-weight: 600; letter-spacing: .1em; color: var(--ktx-red) !important; }
.ktx-card__num { margin-bottom: 40px !important; }
.ktx-card__title .elementor-heading-title { font-size: clamp(24px, 2vw, 28px) !important; line-height: 1.12 !important; }
.ktx-card__title { margin-bottom: 14px !important; }
.e-con[class*="ktx-"] .ktx-card__text p { font-size: 16px; }

/* Por qué KTX */
.e-con.ktx-why__grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 36px 40px !important; margin-top: 12px; }
.e-con.ktx-why__item { width: auto !important; border-top: 2px solid var(--ktx-red); padding-top: 20px; }
.ktx-why__title .elementor-heading-title { font-size: 24px !important; }
.ktx-why__title { margin-bottom: 10px !important; }
.e-con[class*="ktx-"] .ktx-why__item .elementor-widget-text-editor p { font-size: 16px; }

/* Llamada a la acción */
.e-con.ktx-cta > .e-con-inner { align-items: center; text-align: center; }
.ktx-cta__title .elementor-heading-title { font-size: clamp(40px, 6.4vw, 92px) !important; max-width: none; }
.e-con.ktx-cta .ktx-lead p { margin: 0 auto; }
.e-con.ktx-cta .ktx-btns { justify-content: center; }

/* Responsive */
@media (max-width: 1024px) {
  .e-con.ktx-cards { grid-template-columns: 1fr 1fr; }
  .e-con.ktx-card, .e-con.ktx-card:nth-child(n+4) { grid-column: span 1; }
  .e-con.ktx-card:last-child { grid-column: span 2; }
  .e-con.ktx-card { min-height: 300px; }
}
@media (max-width: 767px) {
  .e-con.ktx-sec { --padding-left: 20px !important; --padding-right: 20px !important; }
  .e-con.ktx-hero { min-height: 0; --padding-top: 96px !important; }
  .e-con.ktx-tags { gap: 8px 24px !important; }
  .e-con.ktx-cards { grid-template-columns: 1fr; }
  .e-con.ktx-card, .e-con.ktx-card:last-child { grid-column: span 1; min-height: 0; }
  .e-con.ktx-why__grid { grid-template-columns: 1fr; gap: 28px !important; }
  .ktx-img--frame::after { right: -8px; bottom: -8px; }
  .e-con.ktx-btns > .elementor-element, .e-con.ktx-btns .elementor-button { width: 100%; }
  .e-con.ktx-btns .elementor-button { justify-content: center; }
}

/* --- Ajustes 1.0.2: botones de Framek, rellenos internos, logo --- */
/* Framek pinta la píldora en .elementor-button-content-wrapper: se neutraliza */
.ktx-btn .elementor-button-content-wrapper,
.ktx-link .elementor-button-content-wrapper { background: none !important; border-radius: 0 !important; padding: 0 !important; border: 0 !important; }
.ktx-btn .elementor-button, .ktx-link .elementor-button { border-radius: 0 !important; }
/* Contenedores internos sin el relleno de 10 px por defecto */
:where(.e-con[class*="ktx-"]:not(.ktx-sec):not(.ktx-card)) {
  --padding-top: 0px !important; --padding-bottom: 0px !important; --padding-left: 0px !important; --padding-right: 0px !important;
}
.e-con.ktx-quote { --padding-top: 44px !important; }
.e-con.ktx-tags { --padding-top: 22px !important; }
.e-con.ktx-why__item { --padding-top: 20px !important; }
.ktx-h1 .elementor-heading-title { font-size: clamp(40px, 6.2vw, 92px) !important; max-width: 16ch; }
/* Logo de la cabecera */
#masthead .elementor-widget-site-logo img { width: auto !important; max-width: 100%; max-height: 52px; }
@media (max-width: 767px) { #masthead .elementor-widget-site-logo img { max-height: 40px; } }
.ktx-btn .elementor-button-content-wrapper,
.ktx-link .elementor-button-content-wrapper { height: auto !important; min-height: 0 !important; line-height: 1.2 !important; font-size: inherit !important; }
.ktx-btn .elementor-button-text, .ktx-link .elementor-button-text { font-size: inherit !important; line-height: 1.2 !important; }
/* Márgenes entre bloques (Elementor los pisa sin !important) */
.e-con.ktx-cards { margin-top: 56px !important; }
.e-con.ktx-quote { margin-top: clamp(72px, 9vw, 120px) !important; }
.e-con.ktx-tags { margin-top: clamp(56px, 8vw, 104px) !important; }
.e-con.ktx-btns { margin-top: 36px !important; }
.ktx-h1 { margin-bottom: 28px !important; }

/* --- 1.1.0: páginas interiores, formulario, cabecera y pie --- */
.ktx-rec .elementor-heading-title::before { animation: none !important; box-shadow: none !important; }
.e-con.ktx-white { background-color: #fff; }

/* Cabecera de páginas interiores */
.e-con.ktx-page-hero { min-height: min(62vh, 620px); --padding-top: 170px !important; --padding-bottom: 72px !important; }
.e-con.ktx-page-hero > .e-con-inner { justify-content: flex-end; }
.ktx-h1--page .elementor-heading-title { font-size: clamp(40px, 5.6vw, 84px) !important; max-width: 18ch; }

/* Lista con marcas */
.e-con[class*="ktx-"] .elementor-widget-text-editor ul.ktx-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.e-con[class*="ktx-"] ul.ktx-checks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--ktx-ink); }
.e-con[class*="ktx-"] ul.ktx-checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--ktx-red); }
.e-con.ktx-service .ktx-split__media .ktx-img--frame img { aspect-ratio: 4 / 3; }
.e-con.ktx-split--top { align-items: flex-start; }

/* Listas de enlaces (contacto y pie) */
.ktx-list .elementor-icon-list-items { margin: 0; padding: 0; }
.ktx-list .elementor-icon-list-item { padding: 0 !important; margin: 0 0 12px !important; }
.ktx-list .elementor-icon-list-item::after { display: none !important; }
.ktx-list .elementor-icon-list-icon { display: none !important; }
.ktx-list .elementor-icon-list-text { font-family: var(--ktx-font-t); font-size: 16px; line-height: 1.5; color: inherit; padding: 0 !important; transition: color .2s; }
.ktx-list a:hover .elementor-icon-list-text, .ktx-list a:focus-visible .elementor-icon-list-text { color: var(--ktx-red) !important; }

/* Contacto */
.ktx-contact__list { margin-top: 28px !important; border-top: 1px solid var(--ktx-line-light); padding-top: 24px; }
.ktx-contact__list .elementor-icon-list-text { color: var(--ktx-ink) !important; font-size: 17px; }
.e-con.ktx-contact__form { background: #fff; --padding-top: 40px !important; --padding-bottom: 40px !important; --padding-left: 40px !important; --padding-right: 40px !important; box-shadow: 0 1px 0 var(--ktx-line-light); border-top: 3px solid var(--ktx-red); }

/* Formulario CF7 */
.ktx-form { font-family: var(--ktx-font-t); color: var(--ktx-ink); }
.ktx-form p { margin: 0 0 18px; }
.ktx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.ktx-form label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ktx-ink); }
.ktx-form input[type="text"], .ktx-form input[type="email"], .ktx-form input[type="tel"], .ktx-form input[type="date"], .ktx-form select, .ktx-form textarea {
  width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid #CFCDC6; border-radius: 0; background: #fff;
  font-family: var(--ktx-font-t); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ktx-ink); box-shadow: none;
}
.ktx-form textarea { height: 150px; resize: vertical; }
.ktx-form input:focus, .ktx-form select:focus, .ktx-form textarea:focus { outline: none; border-color: var(--ktx-ink); box-shadow: inset 0 -2px 0 var(--ktx-red); }
.ktx-form__legal { font-size: 14px; color: var(--ktx-text); }
.ktx-form__legal .wpcf7-list-item { margin: 0; }
.ktx-form__legal a { color: var(--ktx-ink); text-decoration: underline; }
.ktx-form input[type="submit"], .ktx-form .wpcf7-submit {
  background: var(--ktx-red); color: #fff; border: 0; border-radius: 0; padding: 19px 34px; cursor: pointer;
  font-family: var(--ktx-font-t); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s;
}
.ktx-form input[type="submit"]:hover, .ktx-form .wpcf7-submit:hover { background: var(--ktx-red-d); }
.wpcf7-not-valid-tip { font-size: 13px; color: var(--ktx-red-d); margin-top: 4px; text-transform: none; letter-spacing: 0; }
.wpcf7 form .wpcf7-response-output { margin: 8px 0 0; padding: 14px 16px; border-radius: 0; font-family: var(--ktx-font-t); font-size: 15px; }

/* Cabecera */
#masthead .ktx-btn--header .elementor-button { padding: 14px 22px; font-size: 13px; }

/* Pie */
.e-con.ktx-footer { --padding-top: clamp(72px, 8vw, 104px) !important; --padding-bottom: 32px !important; }
.e-con.ktx-footer__top { flex-direction: row !important; flex-wrap: wrap; gap: 48px 40px !important; padding-bottom: 56px; border-bottom: 1px solid var(--ktx-line); }
.e-con.ktx-footer__top > .e-con { width: auto !important; flex: 1 1 180px; }
.e-con.ktx-footer__top > .ktx-footer__brand { flex: 1.6 1 280px; }
.ktx-footer__logo img { width: 150px !important; height: auto; }
.ktx-footer__claim { margin-top: 20px; max-width: 32ch; }
.e-con.ktx-footer .ktx-btns { margin-top: 24px !important; }
.e-con[class*="ktx-"] .ktx-footer__title .elementor-heading-title { font-family: var(--ktx-font-t); font-size: 13px !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff !important; }
.ktx-footer__title { margin-bottom: 20px !important; }
.e-con.ktx-footer .ktx-list .elementor-icon-list-text { color: var(--ktx-text-dark); font-size: 15px; }
.e-con.ktx-footer__bottom { flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px !important; padding-top: 28px; }
.e-con.ktx-footer__bottom > .elementor-element { width: auto !important; }
.e-con[class*="ktx-"] .ktx-footer__copy p { font-size: 14px; color: #8A8F98; }
.ktx-footer__legal .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ktx-footer__legal .elementor-icon-list-item { margin: 0 !important; }
.e-con.ktx-footer .ktx-footer__legal .elementor-icon-list-text { font-size: 14px; color: #8A8F98; }

@media (max-width: 1024px) {
  .e-con.ktx-page-hero { --padding-top: 140px !important; min-height: 0; }
}
@media (max-width: 767px) {
  .e-con.ktx-page-hero { --padding-top: 120px !important; --padding-bottom: 56px !important; }
  .ktx-form__row { grid-template-columns: 1fr; }
  .e-con.ktx-contact__form { --padding-top: 28px !important; --padding-bottom: 28px !important; --padding-left: 20px !important; --padding-right: 20px !important; }
  .e-con.ktx-footer__top > .e-con { flex: 1 1 100%; }
  .e-con.ktx-footer__bottom { flex-direction: column !important; align-items: flex-start; }
}

/* --- 1.1.1: legales, ajustes de formulario y pie --- */
.e-con.ktx-page-hero--small { min-height: 0; --padding-top: 170px !important; --padding-bottom: 56px !important; }
.e-con.ktx-legal > .e-con-inner { max-width: 860px; }
.e-con[class*="ktx-"] .ktx-legal__text h2 { font-family: var(--ktx-font-h); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: var(--ktx-ink); margin: 44px 0 14px; }
.e-con[class*="ktx-"] .ktx-legal__text h2:first-of-type { margin-top: 28px; }
.e-con[class*="ktx-"] .ktx-legal__text ul { margin: 0 0 18px; padding-left: 20px; }
.e-con[class*="ktx-"] .ktx-legal__text li { font-size: 17px; line-height: 1.6; margin-bottom: 6px; color: var(--ktx-text); }
.e-con[class*="ktx-"] .ktx-legal__text a { color: var(--ktx-ink); text-decoration: underline; text-decoration-color: var(--ktx-red); text-underline-offset: 3px; }
.ktx-legal__text mark { background: #FFE7A3; color: var(--ktx-ink); padding: 0 4px; }
.ktx-footer__logo, .ktx-footer__logo .elementor-widget-container { text-align: left !important; }
.ktx-footer__logo img { margin: 0 !important; }
.ktx-form select { height: 52px; -webkit-appearance: none; appearance: none; border: 1px solid #CFCDC6 !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E0F11' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center !important; padding-right: 40px !important; }
.ktx-form input[type="date"] { height: 52px; }
.ktx-form__legal label { display: inline; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 14px !important; color: var(--ktx-text) !important; }
.ktx-form__legal input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--ktx-red); }
.ktx-form .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }

.ktx-footer__claim { margin-top: 22px !important; }

/* 1.1.4: legales alineadas con el título */
.e-con.ktx-legal > .e-con-inner { max-width: var(--ktx-max) !important; }
.e-con.ktx-legal .elementor-element.ktx-legal__text { max-width: 860px !important; width: 100% !important; }
