/* Estilos propios de la versión estática (componentes que antes generaba JS de terceros) */

/* --- SEO: un único <h1> por página. Los títulos que usaban <h1> y pasan a <h2> conservan su aspecto --- */
/* (el tema da a los h1 2,5 em y a los h2 1,5 em; Elementor no fija el tamaño en estos títulos) */
h2.ct-as-h1 { font-size: 2.5em; }
/* franja del título en las entradas (nombre de la categoría): reglas del tema para .page-title h1 */
.page-title .main-top .content h2.ct-as-h1 { font-weight: 400; font-size: 40px; line-height: 1.2; color: #fff; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 0; margin-top: 4px; margin-bottom: 4px;
  font-size: var(--thim-font-page-title-font-size); color: var(--thim-font-page-title-color); }

/* --- Formularios: campo trampa anti-spam (sustituye a reCAPTCHA) --- */
.ct-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
form[data-ct-form].elementor-form-waiting [type="submit"] { opacity: .6; cursor: progress; }

/* --- Mapa de contacto: mismo aspecto que el bloqueo de Complianz (imagen de marcador con la proporción
   1280 x 920 y aviso centrado); el mapa de Google solo se carga al pulsar --- */
.ct-map { position: relative; width: 100%; border-radius: 3px; background: #fff center / cover no-repeat; }
.ct-map::before { content: ''; display: block; padding-top: 71.875%; } /* 920 / 1280 */
.ct-map-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; max-width: 90%; padding: 10px;
  border: 0; border-radius: 0; background: rgba(0, 0, 0, .5); color: #fff; font: inherit; font-size: 14px; line-height: 23px;
  text-align: center; cursor: pointer; }
.ct-map-btn:hover, .ct-map-btn:focus-visible { background: rgba(0, 0, 0, .7); }

/* --- Crédito de la consultora: en la línea del copyright, mismo estilo, algo más tenue --- */
.ct-credit { opacity: .7; white-space: nowrap; }
.ct-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ct-credit a:hover, .ct-credit a:focus { opacity: 1; color: inherit; }

/* --- Buscador del blog sin resultados --- */
.ct-no-results { margin: 0 0 30px; }
/* En pantallas estrechas no cabe en la línea del copyright: va debajo, dentro del margen inferior de esa
   franja (33 px), así que el pie mide lo mismo */
@media (max-width: 600px) {
  .copyright-area { position: relative; }
  .ct-credit { position: absolute; left: 15px; right: 15px; bottom: 7px; font-size: 11px; line-height: 16px; text-align: center; }
  .ct-sep { display: none; }
}

/* --- Galerías y entradas relacionadas: ancho que antes ponía Slick por JS (main.js lo fija al activarse) --- */
.js-call-slick-post .slick-track { width: 100%; }
.js-call-slick-post .slick-slide { width: calc(100% / var(--ct-show, 1)); }

/* --- Mejoras sobre el original (ver README) --- */
/* Botón «Pide cita» de la portada: mismo estilo que los botones naranjas del tema */
.ct-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.ct-btn { display: inline-block; height: 50px; padding: 0 48px; border-radius: 25px; background: #ff5f2e; color: #fff;
  font-family: Sniglet; font-size: 16px; line-height: 50px; text-transform: uppercase; transition: background .3s; }
.ct-btn:hover, .ct-btn:focus-visible { background: #fa3b00; color: #fff; }
.ct-hero-tel { color: #0596a6; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.ct-hero-tel:hover, .ct-hero-tel:focus-visible { color: #3d5f8d; }
/* el ancla del formulario no queda bajo la cabecera fija */
#escribenos { scroll-margin-top: 90px; }

/* Botón flotante de WhatsApp, encima del de volver arriba (60 px a 60 px del borde; 45 px en móvil) */
.ct-whatsapp { position: fixed; right: 35px; bottom: 132px; z-index: 999; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 34px; line-height: 60px; text-align: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  transition: transform .3s, background .3s; }
.ct-whatsapp:hover, .ct-whatsapp:focus-visible { background: #1ebe5b; color: #fff; transform: scale(1.06); }
.ct-whatsapp i { line-height: inherit; }

/* Nuestro equipo: rejilla con el equipo actual (build.py, EQUIPO). Mismas fuentes y colores que las fichas del
   original; sin foto, círculo con la inicial en los colores del tema */
.ct-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; width: 100%; }
.ct-team-initial, .ct-team-photo { display: block; width: 160px; height: 160px; margin-bottom: 20px; border-radius: 50%; }
.ct-team-photo { object-fit: cover; }
.ct-team-initial { background: #0596a6; color: #fff; font-family: "Poppins", Sans-serif; font-size: 64px; font-weight: 600;
  line-height: 160px; text-align: center; user-select: none; }
.ct-team-card:nth-child(3n+2) .ct-team-initial { background: #ff5f2e; }
.ct-team-card:nth-child(3n) .ct-team-initial { background: #3d5f8d; }
.ct-team-name { margin: 0 0 8px; font-family: "Poppins", Sans-serif; font-size: 24px; font-weight: 600; line-height: 140%; color: #1c244b; }
.ct-team-role { margin: 0; font-family: "Figtree", Sans-serif; font-size: 16px; line-height: 1.5em; color: #324a6d; }
@media (max-width: 1024px) { .ct-team { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (max-width: 600px) {
  .ct-team { gap: 32px 20px; }
  .ct-team-initial, .ct-team-photo { width: 110px; height: 110px; margin-bottom: 14px; }
  .ct-team-initial { font-size: 44px; line-height: 110px; }
  .ct-team-name { font-size: 18px; }
  .ct-team-role { font-size: 14px; }
}
