/*
 * Rediseño de tmsolutions.mx sobre la captura de WordPress.
 *
 * Esta hoja se inyecta al servir (app/[[...slug]]/route.ts, addTheme), justo
 * antes de </head>, así que carga DESPUÉS de todos los CSS del tema Bridge y
 * gana a igualdad de especificidad. Aplica a todas las páginas y a todos los
 * idiomas (es, zh, en) sin tocar los HTML capturados.
 *
 * Reglas para mantenerla ordenada:
 *  - Los valores de marca viven como variables en :root; las secciones de
 *    abajo solo las consumen.
 *  - Cada cambio va con su versión móvil en la misma sección. El tema cambia
 *    de diseño en 1000px (menú móvil) y en 768px / 600px / 480px.
 *  - Los formularios de Gravity Forms cargan su CSS dentro de <body>, después
 *    de esta hoja: para ellos hace falta más especificidad.
 *  - El tema pone muchos estilos en línea (style="...") o con !important; en
 *    esos casos no queda más que responder con !important.
 */

:root {
  /* Marca */
  --tms-coral: #f4364c;        /* acento principal (botones, enlaces activos) */
  --tms-coral-dark: #d92a3f;   /* coral al pasar el mouse */
  --tms-guinda: #ba0c2f;       /* acento secundario (footer, detalles) */
  --tms-violeta: #612141;      /* bandas oscuras (antes negro #313131) */
  --tms-orange: #ffac00;       /* el naranja del logo (medido del PNG) */
  --tms-orange-dark: #e69a00;  /* naranja al pasar el mouse */
  --tms-ink: #101820;          /* texto principal */
  --tms-ink-soft: #4a525a;     /* texto secundario */
  --tms-line: #e6e8ea;         /* separadores */
  --tms-white: #ffffff;

  /* Header */
  --tms-header-h: 120px;       /* alto del header en escritorio */
  --tms-logo-h: 74px;          /* alto del logo en escritorio */
  --tms-header-h-sticky: 80px; /* alto al hacer scroll */
  --tms-logo-h-sticky: 52px;
}

/* ===== Contenido escondido de momento ===== */

/*
 * "Boletines informativos" (el blog) solo tiene entradas de prueba con
 * Lorem ipsum. Se esconde del menú de escritorio y del móvil en todos los
 * idiomas (el id 626 es el mismo en es, zh y en). La página sigue existiendo
 * en /blog-tm-solutions-mx/ por si alguien entra con el enlace directo.
 */
#nav-menu-item-626,
#mobile-menu-item-626 {
  display: none !important;
}

/* ===== Tipografía ===== */

/* Figtree se carga desde Google Fonts en route.ts (THEME_LINK). */
:root {
  --tms-font-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

/*
 * Una sola familia en todo el sitio. El tema pone Montserrat en el body, en
 * h1-h6, en enlaces y en línea (style="font-family: montserrat") en muchos
 * bloques, así que hace falta !important. Se excluyen:
 *  - las fuentes de íconos (FontAwesome .fa, ElegantIcons/Linea "icon_*",
 *    "icon-*", etc.), que se romperían;
 *  - el slider de la home (LayerSlider calcula el acomodo con su fuente).
 */
body,
body :is(h1, h2, h3, h4, h5, h6, p, li, a, span, div, td, th, label, strong, b, em,
  input, textarea, select, button, blockquote):not([class*="icon"]):not(.fa):not([class*="fa-"]):not(.ls-container *) {
  font-family: var(--tms-font-display) !important;
}

/* Enlaces dentro del texto: del dorado del tema (#dd9933) al guinda */
.content :is(p, li, td, .wpb_text_column, .custom_font_holder) a:not(.qbutton) {
  color: var(--tms-guinda) !important;
  transition: color 0.2s ease;
}
.content :is(p, li, td, .wpb_text_column, .custom_font_holder) a:not(.qbutton):hover {
  color: var(--tms-coral) !important;
}

/* ===== Header y menú ===== */

/*
 * Header blanco y más alto para que el logo respire. El tema trae un fondo
 * verde en línea (style="background-color:...") y, al hacer scroll, cambia al
 * logo blanco: aquí se fuerza siempre el logo con letras oscuras.
 */
@media only screen and (min-width: 1001px) {
  /*
   * El tema reparte el header entre un bloque absoluto (logo), uno flotante
   * (íconos) y el menú centrado en una caja de ancho fijo con <li> flotantes,
   * que se partía en dos y tres renglones. Aquí todo pasa a una fila flex:
   * logo | menú (pegado a la derecha) | íconos.
   */
  header.page_header .header_bottom {
    display: flex !important;
    align-items: center;
    gap: 24px;
    background-color: var(--tms-white) !important;
    border-bottom: 1px solid var(--tms-line);
    box-shadow: none !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
  header.page_header .header_bottom::before,
  header.page_header .header_bottom::after {
    display: none !important; /* el clearfix ocupaba lugar en la fila flex */
  }
  header.page_header .header_inner_left {
    position: static !important;
    flex: 0 0 auto;
    order: 1;
  }
  header.page_header nav.main_menu {
    position: static !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
    margin-left: auto;
    order: 2;
  }
  header.page_header .header_inner_right {
    float: none !important;
    flex: 0 0 auto;
    order: 3;
  }
  header.page_header nav.main_menu > ul {
    display: flex !important;
    align-items: center;
    height: 100%;
    left: auto !important;
  }
  header.page_header nav.main_menu > ul > li {
    float: none !important;
    height: auto !important;
  }
  header.page_header nav.main_menu > ul > li > a > span.plus {
    display: none !important;
  }
  /* El botón de registro va al final del menú */
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 {
    order: 99;
  }

  header.page_header:not(.sticky) .header_bottom,
  header.page_header:not(.sticky) .header_inner_left,
  header.page_header:not(.sticky) .logo_wrapper,
  header.page_header:not(.sticky) .side_menu_button,
  header.page_header:not(.sticky) nav.main_menu {
    height: var(--tms-header-h) !important;
  }

  /* Logo: siempre la versión con letras oscuras */
  header.page_header .q_logo img.normal,
  header.page_header .q_logo img.dark,
  header.page_header .q_logo img.sticky,
  header.page_header .q_logo img.mobile {
    opacity: 0 !important;
  }
  header.page_header .q_logo img.light {
    opacity: 1 !important;
  }
  /* El <img> va en posición absoluta, así que el enlace necesita su ancho
     real (proporción del PNG: 288 x 102) para no encimarse con el menú. */
  header.page_header:not(.sticky) .q_logo a {
    height: var(--tms-logo-h) !important;
    width: calc(var(--tms-logo-h) * 2.8235);
  }
  header.page_header.sticky .q_logo a {
    height: var(--tms-logo-h-sticky) !important;
    width: calc(var(--tms-logo-h-sticky) * 2.8235);
  }

  /* Menú: texto oscuro en minúsculas, una sola línea */
  header.page_header nav.main_menu > ul {
    white-space: nowrap;
  }
  /* Los colores del menú se fijan por el id del <ul>: el tema trae reglas
     en línea con !important y cinco clases encadenadas que solo un id supera. */
  header.page_header #menu-main-menu-navigation > li > a,
  header.page_header #menu-main-menu-navigation > li > a > span {
    color: var(--tms-ink) !important;
  }
  header.page_header #menu-main-menu-navigation > li > a:hover,
  header.page_header #menu-main-menu-navigation > li > a:hover > span,
  header.page_header #menu-main-menu-navigation > li.active > a,
  header.page_header #menu-main-menu-navigation > li.active > a > span {
    color: var(--tms-coral) !important;
  }
  header.page_header #menu-main-menu-navigation > li#nav-menu-item-808 > a > span {
    color: var(--tms-white) !important;
  }

  /* !important porque el tema reescribe la tipografía del menú al fijar el
     header con scroll (clase .sticky). */
  header.page_header nav.main_menu > ul > li > a {
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    height: auto !important;
    padding: 0 16px !important;
  }

  /* Header fijo al hacer scroll: más bajo, mismo diseño */
  header.page_header.sticky .header_bottom,
  header.page_header.sticky .header_inner_left,
  header.page_header.sticky .logo_wrapper,
  header.page_header.sticky .side_menu_button,
  header.page_header.sticky nav.main_menu {
    height: var(--tms-header-h-sticky) !important;
  }
  header.page_header.sticky .header_bottom {
    box-shadow: 0 2px 12px rgba(16, 24, 32, 0.06) !important;
  }
  header.page_header:not(.sticky) nav.main_menu > ul > li > a {
    line-height: var(--tms-header-h) !important;
  }
  header.page_header.sticky nav.main_menu > ul > li > a {
    line-height: var(--tms-header-h-sticky) !important;
  }
  /* Raya bajo el enlace activo / al pasar el mouse */
  header.page_header nav.main_menu ul li a span.underline_dash {
    background-color: var(--tms-coral) !important;
  }

  /* "Inicia tu registro de marca" como botón coral */
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 > a {
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 12px;
    vertical-align: middle;
  }
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 > a > span {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--tms-coral);
    color: var(--tms-white);
    font-weight: 600;
    text-transform: lowercase; /* viene escrito en mayúsculas en el HTML */
    transition: background-color 0.2s ease;
  }
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 > a > span::first-letter {
    text-transform: uppercase;
  }
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 > a:hover > span {
    background: var(--tms-coral-dark);
  }
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 span.underline_dash {
    display: none;
  }

  /* Íconos de búsqueda y menú lateral en oscuro */
  header.page_header .side_menu_button > a,
  header.page_header .side_menu_button > a .icon_search {
    color: var(--tms-ink) !important;
  }
  header.page_header .side_menu_button > a:hover,
  header.page_header .side_menu_button > a:hover .icon_search {
    color: var(--tms-coral) !important;
  }
}

/* Laptops chicas: mismo header, más compacto para que quepa en una línea */
@media only screen and (min-width: 1001px) and (max-width: 1280px) {
  :root {
    --tms-header-h: 104px;
    --tms-logo-h: 60px;
  }
  header.page_header .header_bottom {
    gap: 12px;
    padding-left: 24px !important;
    padding-right: 16px !important;
  }
  header.page_header nav.main_menu > ul > li > a {
    font-size: 14px !important;
    padding: 0 9px !important;
  }
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 > a {
    margin: 0 4px 0 8px;
  }
  header.page_header nav.main_menu > ul > li#nav-menu-item-808 > a > span {
    padding: 11px 16px;
  }
  header.page_header .side_menu_button > a {
    padding: 0 8px !important;
  }
}

/* Móvil y tableta (menú hamburguesa): header blanco con más aire */
@media only screen and (max-width: 1000px) {
  header.page_header .header_bottom {
    background-color: var(--tms-white) !important;
    border-bottom: 1px solid var(--tms-line);
  }
  header.page_header .mobile_menu_button span,
  header.page_header .side_menu_button > a,
  header.page_header .side_menu_button > a .icon_search {
    color: var(--tms-ink) !important;
  }
  /* Menú desplegable móvil */
  nav.mobile_menu ul li a {
    color: var(--tms-ink) !important;
    text-decoration: none !important;
    font-size: 17px !important;
    font-weight: 500 !important;
  }
  nav.mobile_menu ul li a span {
    text-decoration: none !important;
  }
  /* "Inicia tu registro de marca" como botón coral, igual que en escritorio */
  nav.mobile_menu ul li#mobile-menu-item-808 {
    padding: 12px 0 14px;
  }
  nav.mobile_menu ul li#mobile-menu-item-808 > a {
    display: inline-block;
    padding: 0 !important;
  }
  nav.mobile_menu ul li#mobile-menu-item-808 > a > span {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--tms-coral);
    color: var(--tms-white) !important;
    font-weight: 600;
    line-height: 1.2;
    text-transform: lowercase;
  }
  nav.mobile_menu ul li#mobile-menu-item-808 > a > span::first-letter {
    text-transform: uppercase;
  }
  /* Ojo: no darle display al <ul> sin condición (p. ej. flex para reordenar):
     el tema lo esconde con display:none y lo abre/cierra con slideToggle de
     jQuery, así que el menú aparecería abierto al cargar. El botón se queda
     en su lugar (2.º), donde además se ve sin bajar. */
  nav.mobile_menu ul li a:hover,
  nav.mobile_menu ul li.active > a {
    color: var(--tms-coral) !important;
  }
}

/* ===== Secciones de contenido ===== */

/* --- Home: slider principal (LayerSlider) --- */

/*
 * La banda oscura bajo "Protege tu marca" es una capa del slider con el gris
 * escrito en línea (style="background-color: #313131; ..."). LayerSlider no
 * toca ese <div> interior, así que el atributo sirve de selector.
 */
.ls-container .ls-layer > div[style*="#313131"] {
  background-color: var(--tms-violeta) !important;
}

/*
 * Botón "Regístrala aquí": de píldora amarilla rellena a píldora con contorno
 * blanco. LayerSlider reescribe el style del <span> en tiempo de ejecución y
 * convierte el color a rgb(), así que se busca en las dos formas. Las medidas
 * (padding, tamaño de letra) las escala el slider y no se tocan.
 */
.ls-container .ls-layer[style*="245, 171, 0"],
.ls-container .ls-layer[style*="#f5ab00"] {
  background-color: transparent !important;
  border: 1.5px solid var(--tms-white) !important;
  border-radius: 999px !important;
  color: var(--tms-white) !important;
  font-family: var(--tms-font-display) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
html[lang="es"] .ls-container .ls-layer[style*="245, 171, 0"],
html[lang="es"] .ls-container .ls-layer[style*="#f5ab00"] {
  text-transform: lowercase; /* "REGÍSTRALA AQUÍ" -> "Regístrala aquí" */
}
html[lang="es"] .ls-container .ls-layer[style*="245, 171, 0"]::first-letter,
html[lang="es"] .ls-container .ls-layer[style*="#f5ab00"]::first-letter {
  text-transform: uppercase;
}
.ls-container .ls-layer-link:hover + .ls-layer[style*="245, 171, 0"],
.ls-container .ls-layer[style*="245, 171, 0"]:hover {
  background-color: var(--tms-white) !important;
  color: var(--tms-violeta) !important;
}

/* --- Home: "¿Qué puedo proteger y qué no?" --- */

/*
 * La fila trae su fondo azul en línea (style="background-color:#005877") y
 * una clase única de WPBakery que sirve de ancla.
 */
.vc_custom_1618932916048 {
  background-color: var(--tms-coral) !important;
}

/* Título de la sección: grande y ligero, como los titulares de referencia */
.vc_custom_1618932916048 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder {
  font-family: var(--tms-font-display) !important;
  font-size: clamp(40px, 5.6vw, 84px) !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  color: var(--tms-white) !important;
}
/* En español viene todo en mayúsculas; se pasa a tipo oración.
   ::first-letter incluye el "¿" inicial, así que la Q también sube. */
html[lang="es"] .vc_custom_1618932916048 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder {
  text-transform: lowercase !important;
}
html[lang="es"] .vc_custom_1618932916048 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder::first-letter {
  text-transform: uppercase;
}

/* Las dos columnas: línea vertical a la izquierda de cada una */
.vc_custom_1618932916048 .vc_col-sm-6 > .vc_column-inner {
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  padding-left: 32px !important;
  padding-right: 24px !important;
  height: 100%;
}
/* Las listas también son .custom_font_holder: el subtítulo es el que no
   contiene una <ul>. */
.vc_custom_1618932916048 .vc_col-sm-6 .custom_font_holder:not(:has(ul)) {
  font-family: var(--tms-font-display) !important;
  font-size: clamp(28px, 2.9vw, 42px) !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  color: var(--tms-white) !important;
}
/* Las columnas a la misma altura para que las líneas midan lo mismo */
@media only screen and (min-width: 769px) {
  .vc_custom_1618932916048 .vc_row:has(> .section_inner .vc_col-sm-6) .section_inner_margin,
  .vc_custom_1618932916048 .vc_inner:has(.vc_col-sm-6) > .section_inner > .section_inner_margin {
    display: flex;
  }
}
/* En celular las columnas se apilan: se separan con aire */
@media only screen and (max-width: 768px) {
  .vc_custom_1618932916048 .vc_col-sm-6 > .vc_column-inner {
    padding-left: 22px !important;
    padding-right: 0 !important;
  }
  .vc_custom_1618932916048 .vc_col-sm-6 + .vc_col-sm-6 {
    margin-top: 48px;
  }
}

/* --- Home: "Pasos para iniciar tu trámite de registro de marca" --- */

/* Mismo titular grande y ligero que "¿Qué puedo proteger y qué no?" */
.vc_custom_1618932931327 .custom_font_holder {
  font-family: var(--tms-font-display) !important;
  font-size: clamp(36px, 4.6vw, 68px) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
  color: var(--tms-ink) !important;
  text-wrap: balance; /* sin una palabra sola en el último renglón */
}

/* Línea que une los círculos: del verde azulado (#005552, en línea) a coral suave */
.vc_custom_1618932931327 .q_circles_holder,
.vc_custom_1618932931327 .q_circles_holder::before,
.vc_custom_1618932931327 .q_circles_holder .q_circle_outer::before,
.vc_custom_1618932931327 .q_circles_holder .q_circle_outer::after {
  border-color: rgba(244, 54, 76, 0.35) !important;
}

/* Números de los círculos: del dorado del tema al coral */
.vc_custom_1618932931327 .q_text_in_circle {
  color: var(--tms-coral) !important;
  font-family: var(--tms-font-display) !important;
  font-weight: 400 !important;
}

/* --- Home: "Razones para elegirnos" --- */

/*
 * Foto nueva (Leupe) en lugar de bg2.jpg, con una capa negra encima para que
 * el texto blanco tenga contraste. El fondo viene en línea en la fila, así
 * que se reemplaza con !important; el degradado va primero para quedar
 * encima de la foto.
 */
.vc_custom_1618934113373 {
  background-color: var(--tms-ink) !important;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url(/clone-assets/razones-leupe.avif) !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Todo el texto de la sección en blanco */
.vc_custom_1618934113373 .custom_font_holder,
.vc_custom_1618934113373 .custom_font_holder h3,
.vc_custom_1618934113373 .custom_font_holder p {
  color: var(--tms-white) !important;
}

/*
 * Titular: "RAZONES" y "PARA ELEGIRNOS:" son dos bloques separados en el
 * HTML. Se les da el mismo estilo que "¿Qué puedo proteger y qué no?" y se
 * pegan para que se lean como un solo titular en dos renglones.
 */
.vc_custom_1618934113373 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row) {
  font-family: var(--tms-font-display) !important;
  font-size: clamp(40px, 5.6vw, 84px) !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
}
.vc_custom_1618934113373 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row) + .vc_empty_space:has(+ .custom_font_holder) {
  display: none; /* el espacio entre las dos mitades del titular */
}
html[lang="es"] .vc_custom_1618934113373 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row) {
  text-transform: lowercase !important; /* "RAZONES / PARA ELEGIRNOS:" */
}
html[lang="es"] .vc_custom_1618934113373 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row):first-child::first-letter {
  text-transform: uppercase; /* -> "Razones / para elegirnos:" */
}

/* El mockup de iPhone al final: sobre el fondo oscuro no se leía, y la foto
   ya muestra un teléfono. */
.vc_custom_1618934113373 .wpb_single_image {
  display: none !important;
}
.vc_custom_1618934113373 {
  padding-bottom: clamp(56px, 7vw, 110px) !important; /* el iPhone daba el aire de abajo */
}

/* --- Home: "Precios y paquetes para el registro de marca" --- */

/* Titular en dos bloques, igual que "Razones para elegirnos" */
.vc_custom_1618936876088 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row) {
  font-family: var(--tms-font-display) !important;
  font-size: clamp(40px, 5.6vw, 84px) !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  color: var(--tms-ink) !important;
  text-wrap: balance;
}
.vc_custom_1618936876088 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row) + .vc_empty_space:has(+ .custom_font_holder) {
  display: none;
}
html[lang="es"] .vc_custom_1618936876088 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row) {
  text-transform: lowercase !important; /* "PRECIOS Y PAQUETES / PARA EL REGISTRO DE MARCA." */
}
html[lang="es"] .vc_custom_1618936876088 .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .custom_font_holder:has(~ .vc_row):first-child::first-letter {
  text-transform: uppercase;
}

/*
 * Textos que venían en verde azulado (#005552, en línea). El naranja del logo
 * sobre blanco tiene muy poco contraste (≈1.9:1): funciona en "MXN" y
 * "/PAQUETE" (18px, cortos), pero el texto chico se perdía. Ese va en gris.
 */
.vc_custom_1618936876088 .custom_font_holder[style*="#005552"] {
  color: var(--tms-ink-soft) !important;
}
.vc_custom_1618936876088 .custom_font_holder[style*="#005552"][style*="font-size: 18px"] {
  color: var(--tms-orange) !important;
  font-family: var(--tms-font-display) !important;
  font-weight: 600 !important;
}

/* Botones "Inicia tu registro de marca": de azul a naranja, con texto oscuro
   (el blanco sobre este naranja casi no se lee). El margen en línea del tema
   (20% / 10%) los descentraba y empujaba el tercero a otro renglón. */
.vc_custom_1618936876088 a.qbutton {
  background-color: var(--tms-orange) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--tms-ink) !important;
  font-family: var(--tms-font-display) !important;
  font-weight: 600 !important;
  margin: 20px 0 10px !important;
  transition: background-color 0.2s ease;
}
.vc_custom_1618936876088 a.qbutton:hover {
  background-color: var(--tms-orange-dark) !important;
  color: var(--tms-ink) !important;
}

/*
 * Cierre de precios: "Todos los extras anteriores..." (frase principal) y,
 * dentro del mismo bloque, un <p> "Adicional, ..." que debe quedar más chico.
 */
.vc_custom_1618936876088 .separator.normal ~ .custom_font_holder:has(> p) {
  font-family: var(--tms-font-display) !important;
  font-size: clamp(20px, 1.9vw, 26px) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: var(--tms-ink) !important;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.vc_custom_1618936876088 .separator.normal ~ .custom_font_holder:has(> p) > p {
  font-family: var(--tms-font-display) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--tms-ink-soft) !important;
  margin-top: 12px;
}

/* --- Páginas internas: barra de título (Nuestros servicios, FAQs, ...) --- */

/*
 * La barra gris claro (#f9f9f9, alto fijo de 90px en línea) con el nombre de
 * la página y las migas de pan. Aplica a todas las páginas internas: pasa a
 * coral, más alta, con el titular grande en blanco.
 */
.title_outer .title {
  background-color: var(--tms-coral) !important;
  height: auto !important;
}
.title_outer .title .title_holder {
  height: auto !important;
  padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px) !important;
}
.title_outer .title .container_inner {
  height: auto !important;
}
.title_outer .title .title_subtitle_holder,
.title_outer .title .title_subtitle_holder_inner {
  display: block !important;
  height: auto !important;
}
.title_outer .title h1,
.title_outer .title h1 span {
  font-family: var(--tms-font-display) !important;
  font-size: clamp(40px, 5.6vw, 84px) !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  color: var(--tms-white) !important;
  text-transform: none !important;
}
/* Migas de pan (Home > Nuestros servicios) en blanco */
.title_outer .title .breadcrumb,
.title_outer .title .breadcrumbs,
.title_outer .title .breadcrumbs a,
.title_outer .title .breadcrumbs span,
.title_outer .title .breadcrumbs .current {
  color: rgba(255, 255, 255, 0.85) !important;
}
.title_outer .title .breadcrumbs a:hover {
  color: var(--tms-white) !important;
}
@media only screen and (max-width: 1000px) {
  .title_outer .title .breadcrumb {
    margin-top: 14px !important;
  }
}

/* --- Nuestros servicios --- */

/*
 * Foto de cabecera: la original (banner_FAQ.jpg) traía un filtro naranja
 * dentro de la imagen; se reemplaza por manos en laptop, a color y sin capa
 * encima, porque ya no lleva texto.
 */
.vc_custom_1616777096581 {
  background-color: var(--tms-ink) !important;
  background-image: url(/clone-assets/servicios-laptop.avif) !important;
  background-size: cover !important;
  background-position: center 55% !important;
}
/* WPBakery le pone margin 20px !important en un <style> que carga después de
   esta hoja: hace falta más especificidad (.vc_row) para ganarle. Arriba
   la separaba de la barra coral. */
.vc_row.vc_custom_1616777096581 {
  margin-top: 0 !important;
}

/*
 * Más aire alrededor del acordeón. Arriba traía 50px (margen de la fila) y
 * abajo 80px (un espaciador del constructor, que se conserva); se suma
 * padding para llegar a ~130px arriba y ~150px abajo en escritorio.
 */
.vc_row.vc_custom_1618959093892 {
  margin-top: clamp(72px, 8vw, 110px) !important;
  padding-bottom: clamp(16px, 5vw, 72px) !important;
}
/* El "NUESTROS SERVICIOS" sobre la foto repetía la barra de título coral */
.vc_custom_1616777096581 .custom_font_holder {
  visibility: hidden;
}
/*
 * En celular y tableta la foto medía ~450px de alto: la daba un padding de
 * 200px arriba y abajo en la columna interior (.vc_custom_1616776548770),
 * más el renglón del título escondido. Ahí se cambia por un alto fijo.
 */
@media only screen and (max-width: 1000px) {
  .vc_column-inner.vc_custom_1616776548770 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: clamp(220px, 48vw, 360px);
  }
  .vc_column-inner.vc_custom_1616776548770 > .wpb_wrapper {
    display: none;
  }
}

/* --- FAQs --- */

/*
 * Misma estructura que Nuestros servicios. La columna interior de la foto
 * (.vc_custom_1616776548770) es la misma clase en las dos páginas, así que
 * la regla de alto en celular de arriba ya aplica aquí.
 *
 * Foto: la original (banner_FAQ_2.jpg) traía un filtro verde dentro de la
 * imagen; se reemplaza por dos personas consultando en laptop, a color.
 */
.vc_custom_1618964810954 {
  background-color: var(--tms-white) !important;
  background-image: url(/clone-assets/faqs-consulta.avif) !important;
  background-size: cover !important;
  background-position: center 18% !important; /* que se vean las caras */
}
.vc_row.vc_custom_1618964810954 {
  margin-top: 0 !important; /* sin hueco bajo la barra coral */
}
/* El "FAQs" sobre la foto repetía la barra de título */
.vc_custom_1618964810954 .custom_font_holder {
  visibility: hidden;
}

/* La caja gris (#f1f1f1) detrás de las preguntas, con su relleno */
.vc_column-inner.vc_custom_1618969496145 {
  background-color: transparent !important;
  padding: 0 !important;
}
/* En celular las preguntas largas ocupaban hasta 6 renglones: el ícono de
   palomita se lleva 60px. Se compactan ícono y letra. */
@media only screen and (max-width: 768px) {
  /* El bloque del título venía centrado (inline-table) con 20px a los lados */
  .vc_custom_1618970624557 .qode-accordion-holder .qode-title-holder .qode-tab-title {
    display: table !important;
    width: 100% !important;
  }
  .vc_custom_1618970624557 .qode-accordion-holder .qode-title-holder .qode-tab-title-icon {
    width: 44px !important;
    font-size: 20px !important;
    padding: 0 6px 0 14px !important;
  }
  .vc_custom_1618970624557 .qode-accordion-holder .qode-title-holder .qode-tab-title-icon i {
    font-size: 20px !important;
  }
  .vc_custom_1618970624557 .qode-accordion-holder .qode-title-holder .qode-tab-title-inner {
    font-size: 16px !important;
    line-height: 1.35 !important;
    padding: 14px 36px 14px 0 !important;
  }
}

/* Mismo aire alrededor del acordeón que en Nuestros servicios */
.vc_row.vc_custom_1618970624557 {
  margin-top: clamp(72px, 8vw, 110px) !important;
  padding-bottom: clamp(80px, 9vw, 150px) !important;
}

/* --- Aviso de privacidad --- */

/* Sin foto de cabecera (banner_AP.jpg): la barra coral basta */
.vc_row.vc_custom_1616794706554 {
  display: none !important;
}
/* Texto: aire arriba (traía 50px) y abajo (terminaba a 30px del footer) */
.vc_row.vc_custom_1616788352066 {
  margin-top: clamp(56px, 7vw, 96px) !important;
  padding-bottom: clamp(72px, 8vw, 130px) !important;
}
/* El texto viene justificado: en celular abría huecos enormes entre palabras */
@media only screen and (max-width: 768px) {
  .vc_custom_1616788352066 p,
  .vc_custom_1616788352066 li {
    text-align: left !important;
  }
}

/* --- Términos y condiciones (page-id-422) --- */

/*
 * OJO: WPBakery reutiliza clases vc_custom_* entre páginas copiadas de la
 * misma plantilla. La foto de esta página es .vc_custom_1616777096581, la
 * misma que la de Nuestros servicios; el texto es .vc_custom_1616788352066,
 * el mismo que Aviso de privacidad (y por eso ya hereda su aire y su
 * alineación en celular). Para tocar solo esta página se usa el id del body.
 */
body.page-id-422 .vc_row.vc_custom_1616777096581 {
  display: none !important;
}

/* --- Contacto --- */

/* La caja gris (#f1f1f1) detrás del formulario */
.vc_row.vc_custom_1618973947010 {
  background-color: transparent !important;
  /* Aire arriba y abajo, como en Nuestros servicios y FAQs */
  margin-top: clamp(48px, 7vw, 90px) !important;
  margin-bottom: clamp(80px, 9vw, 150px) !important;
}
/*
 * Bloque sobrante de la plantilla del tema, colapsado a 1px pero en el HTML:
 * "UNA APP QUE AYUDA TUS SUEÑOS" con texto de relleno en latín. Fuera.
 */
.vc_row.vc_custom_1618973864773 {
  display: none !important;
}

/*
 * Campos del formulario: eran blancos sobre la caja gris; sobre blanco se
 * perdían, así que llevan borde. Solo dentro del contenido (el newsletter
 * del footer tiene su propio estilo).
 */
.content .gform_wrapper input[type="text"],
.content .gform_wrapper input[type="email"],
.content .gform_wrapper input[type="tel"],
.content .gform_wrapper textarea {
  background-color: var(--tms-white) !important;
  border: 1px solid #cfd3d7 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-family: var(--tms-font-display) !important;
  font-size: 15px !important;
  color: var(--tms-ink) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.content .gform_wrapper input[type="text"]:focus,
.content .gform_wrapper input[type="email"]:focus,
.content .gform_wrapper input[type="tel"]:focus,
.content .gform_wrapper textarea:focus {
  border-color: var(--tms-coral) !important;
  box-shadow: 0 0 0 3px rgba(244, 54, 76, 0.15) !important;
  outline: none !important;
}
.content .gform_wrapper .gfield_label {
  font-family: var(--tms-font-display) !important;
  font-weight: 500 !important;
  color: var(--tms-ink) !important;
}

/* Errores de validación: sin la franja rosa del plugin, en guinda */
.content .gform_wrapper li.gfield.gfield_error,
.content .gform_wrapper li.gfield_error.gfield_contains_required {
  background-color: transparent !important;
  border: 0 !important;
}
.content .gform_wrapper .validation_message,
.content .gform_wrapper .gfield_error .gfield_label {
  color: var(--tms-guinda) !important;
}
.content .gform_wrapper .validation_message {
  font-family: var(--tms-font-display) !important;
  font-size: 13px !important;
  padding-top: 4px !important;
}
.content .gform_wrapper .gfield_error input[type="text"],
.content .gform_wrapper .gfield_error input[type="email"],
.content .gform_wrapper .gfield_error input[type="tel"],
.content .gform_wrapper .gfield_error textarea {
  border-color: var(--tms-guinda) !important;
}

/* Botón "Enviar": igual que "Me interesa" y los botones de precios */
.content .gform_wrapper .gform_footer input.gform_button,
.content .gform_wrapper input.gform_button {
  background-color: var(--tms-orange) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--tms-ink) !important;
  font-family: var(--tms-font-display) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 12px 34px !important;
  height: auto !important;
  line-height: 1.2 !important;
  transition: background-color 0.2s ease;
}
.content .gform_wrapper input.gform_button:hover {
  background-color: var(--tms-orange-dark) !important;
  color: var(--tms-ink) !important;
}

/*
 * Acordeón de servicios (Marcas, Derechos de autor, ...): cerrados en azul
 * (#005877) y el abierto en gris oscuro. Cerrados -> guinda; abierto ->
 * violeta, para que se distinga cuál está desplegado.
 */
.qode-accordion-holder .qode-title-holder {
  background-color: var(--tms-guinda) !important;
  color: var(--tms-white) !important;
  border-radius: 0 !important;
  transition: background-color 0.2s ease;
}
.qode-accordion-holder .qode-title-holder:hover {
  background-color: #a10a28 !important;
}
.qode-accordion-holder .qode-title-holder.ui-state-active,
.qode-accordion-holder .qode-title-holder.ui-state-active:hover {
  background-color: var(--tms-violeta) !important;
}
.qode-accordion-holder .qode-title-holder .qode-tab-title,
.qode-accordion-holder .qode-title-holder .qode-tab-title-inner,
.qode-accordion-holder .qode-title-holder .qode-accordion-mark,
.qode-accordion-holder .qode-title-holder [class*="icon_"] {
  color: var(--tms-white) !important;
}
.qode-accordion-holder .qode-title-holder .qode-tab-title-inner {
  font-family: var(--tms-font-display) !important;
  font-weight: 400 !important;
}
/* Botones "Me interesa": del dorado del tema al naranja de los botones de
   precios del home, para que todos los botones de acción se vean iguales. */
.qode-accordion-holder a.qbutton {
  background-color: var(--tms-orange) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--tms-ink) !important;
  font-family: var(--tms-font-display) !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease;
}
.qode-accordion-holder a.qbutton:hover {
  background-color: var(--tms-orange-dark) !important;
  color: var(--tms-ink) !important;
}

/* Fin del home: la última frase quedaba a ~37px del footer */
.vc_row.vc_custom_1618936876088 {
  padding-bottom: clamp(72px, 8vw, 130px) !important;
}

/* --- 404 --- */

/* Página de error: mismo título grande y botón naranja que el resto */
body.error404 .page_not_found {
  padding: clamp(64px, 9vw, 130px) 0 clamp(72px, 9vw, 140px) !important;
}
body.error404 .page_not_found h2 {
  font-size: clamp(34px, 4.6vw, 64px) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
  color: var(--tms-ink) !important;
  text-wrap: balance;
}
body.error404 .page_not_found p {
  max-width: 560px;
  margin: 20px auto 8px !important;
  color: var(--tms-ink-soft) !important;
  font-size: 16px !important;
}
body.error404 .page_not_found a.qbutton {
  background-color: var(--tms-orange) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--tms-ink) !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-top: 16px !important;
}
body.error404 .page_not_found a.qbutton:hover {
  background-color: var(--tms-orange-dark) !important;
}

/* ===== Imágenes ===== */

/* ===== Footer ===== */

/*
 * Parte de arriba: de gris oscuro (#313131) a coral, texto blanco.
 * Barra de abajo (copyright): de verde (#006d71) a violeta, texto blanco.
 */
footer .footer_top_holder {
  background-color: var(--tms-coral) !important;
}

/*
 * Footer más compacto (medía ~540px solo la parte coral): menos relleno,
 * logo más chico, y cada red social en un renglón (ícono a la izquierda del
 * texto) en vez de ícono arriba y texto abajo.
 */
footer .footer_top {
  padding-top: clamp(40px, 4.5vw, 64px) !important;
  padding-bottom: clamp(28px, 3vw, 44px) !important;
}
footer .footer_top .widget_media_image img {
  max-height: 64px;
  width: auto !important;
}
footer .footer_top h5 {
  margin-bottom: 14px !important;
}
footer .footer_top .qode_icon_with_text_widget {
  margin-bottom: 6px !important;
}
footer .footer_top .q_icon_with_title .icon_text_inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 0 !important;
}
footer .footer_top .q_icon_with_title .icon_title_holder {
  display: block !important;
  width: 24px !important;
  flex: 0 0 24px;
  margin: 0 !important;
}
footer .footer_top .q_icon_with_title .icon_holder {
  width: 24px !important;
  padding-right: 0 !important;
  text-align: left !important;
}
footer .footer_top .q_icon_with_title .icon_title,
footer .footer_top .q_icon_with_title .icon_text_inner > p:empty {
  display: none !important;
}
footer .footer_top .widget_nav_menu li {
  margin-bottom: 4px;
}
/*
 * Celular: las cuatro columnas se apilaban (~1000px). Se reacomodan en una
 * cuadrícula:
 *   logo        | Soporte
 *   Contáctanos (correo a lo ancho, redes en dos columnas)
 *   Newsletter
 * y se quita el margen de 25px que el tema pone a cada widget.
 */
@media only screen and (max-width: 768px) {
  footer .footer_top .four_columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo soporte"
      "contacto contacto"
      "newsletter newsletter";
    column-gap: 20px;
    row-gap: 26px;
  }
  footer .footer_top .four_columns::before,
  footer .footer_top .four_columns::after {
    display: none !important;
  }
  footer .footer_top .four_columns > [class*="column"] {
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
  }
  footer .footer_top .four_columns > .column1 { grid-area: logo; }
  footer .footer_top .four_columns > .column2 { grid-area: contacto; }
  footer .footer_top .four_columns > .column3 { grid-area: soporte; }
  footer .footer_top .four_columns > .column4 { grid-area: newsletter; }

  footer .footer_top .four_columns .widget {
    margin-bottom: 8px !important;
  }
  footer .footer_top .four_columns .qode_separator_widget {
    display: none !important;
  }
  footer .footer_top .four_columns h5 {
    font-size: 21px !important;
    margin-bottom: 10px !important;
  }
  footer .footer_top .widget_media_image img {
    max-height: 52px;
  }

  /* Contáctanos: título y correo a lo ancho, redes en dos columnas */
  footer .footer_top .four_columns > .column2 > .column_inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }
  footer .footer_top .four_columns > .column2 .widget_text,
  footer .footer_top .four_columns > .column2 .widget:has(.fa-envelope-open-o) {
    grid-column: 1 / -1;
  }
  footer .footer_top .four_columns > .column2 .q_icon_with_title,
  footer .footer_top .four_columns > .column2 .icon_text_inner {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Newsletter: menos espacio entre campo, texto y botón */
footer .footer_top .gform_wrapper {
  margin-top: 0 !important;
}
footer .footer_top .gform_wrapper li.gfield {
  margin-bottom: 0 !important;
}
footer .footer_top .gform_wrapper .gfield_description {
  padding-top: 8px !important;
}
footer .footer_top .gform_wrapper .gform_footer {
  margin-top: 4px !important;
  padding: 8px 0 0 !important;
}
footer .footer_top_holder,
footer .footer_top_holder h5,
footer .footer_top_holder p,
footer .footer_top_holder a,
footer .footer_top_holder label,
footer .footer_top_holder i {
  color: var(--tms-white) !important;
}
footer .footer_top_holder a:hover {
  opacity: 0.8;
}
/* Mensajes de error del formulario de newsletter: el rojo oscuro no se veía */
footer .footer_top_holder .gfield_required,
footer .footer_top_holder .validation_message,
footer .footer_top_holder .gform_validation_errors,
footer .footer_top_holder .gform_wrapper .gfield_error label {
  color: var(--tms-white) !important;
}
/* Botón "Enviar" del newsletter: del dorado del tema al estilo de contorno */
footer .footer_top_holder .gform_wrapper .gform_footer input.gform_button,
footer .footer_top_holder input.gform_button {
  background-color: transparent !important;
  border: 1.5px solid var(--tms-white) !important;
  border-radius: 999px !important;
  color: var(--tms-white) !important;
  font-family: var(--tms-font-display) !important;
  font-weight: 600 !important;
}
footer .footer_top_holder input.gform_button:hover {
  background-color: var(--tms-white) !important;
  color: var(--tms-coral) !important;
}

footer .footer_bottom_holder {
  background-color: var(--tms-violeta) !important;
  padding-bottom: 0 !important;
}
footer .footer_bottom_holder .container_inner,
footer .footer_bottom_holder .footer_bottom_columns,
footer .footer_bottom_holder .footer_bottom_column,
footer .footer_bottom_holder .column_inner {
  height: auto !important;
}
footer .footer_bottom_holder .footer_bottom {
  padding: 18px 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
}
footer .footer_bottom_holder,
footer .footer_bottom_holder p,
footer .footer_bottom_holder a,
footer .footer_bottom_holder span,
footer .footer_bottom_holder div {
  color: var(--tms-white) !important;
}
footer .footer_bottom_border {
  background-color: rgba(255, 255, 255, 0.2) !important;
}
