/*
Theme Name: Hello Elementor TEM
Theme URI: https://temturistik.cl/
Description: Child theme oficial de TEM Turistik (basado en Hello Elementor). Define identidad visual TEM, header y footer corporativos. Diseñado para edición visual completa con Elementor.
Author: TEM Turistik
Author URI: https://temturistik.cl/
Template: hello-elementor
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-elementor-tem
*/

/* =========================================================================
   TEM TURISTIK — VARIABLES DE IDENTIDAD VISUAL
   Estos colores y fuentes también están sincronizados en el Kit de Elementor.
   Si necesitas cambiar la paleta, hazlo desde:
   Elementor → Site Settings → Global Colors / Global Fonts
   ========================================================================= */
:root {
    --tem-red: #E8192C;
    --tem-red-dark: #B7121F;
    --tem-black: #1A1A1A;
    --tem-white: #FFFFFF;
    --tem-gray-100: #F5F5F5;
    --tem-gray-300: #E5E5E5;
    --tem-gray-500: #999999;
    --tem-gray-700: #666666;
    --tem-blue: #0F2A4A;

    --tem-font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --tem-font-body: 'Roboto', system-ui, -apple-system, sans-serif;

    --tem-container: 1200px;
    --tem-radius: 6px;
    --tem-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --tem-shadow-md: 0 6px 20px rgba(0,0,0,0.12);
}

/* =========================================================================
   RESET DE BASE
   ========================================================================= */
body {
    font-family: var(--tem-font-body);
    color: var(--tem-black);
    background: var(--tem-white);
    margin: 0;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tem-font-heading);
    color: var(--tem-black);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}
a { color: var(--tem-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tem-red-dark); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================================================
   HEADER TEM
   ========================================================================= */
.tem-header {
    background: var(--tem-red);
    box-shadow: var(--tem-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}
.tem-header__inner {
    max-width: var(--tem-container);
    margin: 0 auto;
    padding: .5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.tem-header__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -.02em;
}
.tem-header__brand img,
.tem-header img.custom-logo { max-height: 48px !important; width: auto !important; height: auto !important; }
.tem-header__brand-text { color: var(--tem-white); }

/* Menú principal */
.tem-nav { display: flex; align-items: center; gap: .25rem; }
.tem-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.tem-nav__list a {
    display: block;
    padding: .75rem 1rem;
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-weight: 600;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-radius: var(--tem-radius);
    transition: background .2s, color .2s;
}
.tem-nav__list a:hover,
.tem-nav__list .current-menu-item > a,
.tem-nav__list .current-menu-parent > a,
.tem-nav__list .current-menu-ancestor > a {
    background: rgba(0,0,0,0.2);
    color: var(--tem-white);
}
.tem-nav__list .menu-item-has-children { position: relative; }
.tem-nav__list .menu-item-has-children > a::after {
    content: " ▾";
    font-size: .7em;
    opacity: .6;
}

/* Submenú nivel 1 */
.tem-nav__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tem-red-dark);
    min-width: 240px;
    box-shadow: var(--tem-shadow-md);
    border-top: 1px solid rgba(255,255,255,.2);
    border-radius: 0 0 var(--tem-radius) var(--tem-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1000;
}
.tem-nav__list .menu-item-has-children:hover > .sub-menu,
.tem-nav__list .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tem-nav__list .sub-menu a {
    padding: .6rem 1rem;
    text-transform: none;
    font-weight: 500;
    border-radius: 0;
    color: var(--tem-white);
}
.tem-nav__list .sub-menu a:hover,
.tem-nav__list .sub-menu .current-menu-item > a {
    background: rgba(0,0,0,.25);
    color: var(--tem-white);
}
.tem-nav__list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.2);
    border-radius: 0 var(--tem-radius) var(--tem-radius) 0;
}

/* Botón WhatsApp en header */
.tem-header__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.1rem;
    background: var(--tem-white);
    color: var(--tem-red);
    font-family: var(--tem-font-heading);
    font-weight: 700;
    font-size: .9rem;
    border-radius: var(--tem-radius);
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: background .2s, transform .2s;
}
.tem-header__cta:hover {
    background: var(--tem-black);
    color: var(--tem-white);
    transform: translateY(-1px);
}
.tem-header__cta::before { content: ""; }

/* Botón hamburguesa móvil */
.tem-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: .5rem;
    color: var(--tem-black);
}
.tem-nav-toggle span,
.tem-nav-toggle span::before,
.tem-nav-toggle span::after {
    content: "";
    display: block;
    width: 26px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s;
}
.tem-nav-toggle span::before { transform: translateY(-8px); }
.tem-nav-toggle span::after { transform: translateY(5px); }

/* Mobile */
@media (max-width: 980px) {
    .tem-nav-toggle { display: inline-flex; color: var(--tem-white); }
    .tem-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--tem-red);
        border-top: 1px solid rgba(255,255,255,.2);
        box-shadow: var(--tem-shadow-md);
        padding: .5rem 1rem 1rem;
        display: none;
        max-height: calc(100vh - 80px);  /* deja respiración para el header */
        overflow-y: auto;                 /* scroll si la lista es larga */
        -webkit-overflow-scrolling: touch;
    }
    .tem-nav.is-open { display: block; }
    .tem-nav__list { flex-direction: column; gap: 0; }
    .tem-nav__list a { padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,.15); border-radius: 0; }

    /* Submenús collapsed por default — se expanden al click en el item padre */
    .tem-nav__list .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: var(--tem-red-dark);
        border-top: 0;
        border-left: 3px solid rgba(255,255,255,.3);
        margin-left: 1rem;
        padding-left: .5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height .3s ease, opacity .25s ease, visibility 0s linear .3s;
    }
    .tem-nav__list .menu-item-has-children.is-expanded > .sub-menu {
        max-height: 1500px;
        opacity: 1;
        visibility: visible;
        transition: max-height .35s ease, opacity .25s ease, visibility 0s linear 0s;
    }

    /* Caret del padre con animación de rotación al expandir */
    .tem-nav__list .menu-item-has-children > a::after {
        transition: transform .25s ease;
    }
    .tem-nav__list .menu-item-has-children.is-expanded > a::after {
        transform: rotate(180deg);
    }

    .tem-header__cta { padding: .5rem .9rem; font-size: .8rem; }
}

/* =========================================================================
   FOOTER TEM
   ========================================================================= */
.tem-footer {
    background: var(--tem-black);
    color: var(--tem-white);
    padding: 3.5rem 1.5rem 0;
    margin-top: 4rem;
}
.tem-footer__inner {
    max-width: var(--tem-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.tem-footer h4 {
    color: var(--tem-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--tem-red);
    padding-bottom: .5rem;
    display: inline-block;
}
.tem-footer p { color: rgba(255,255,255,.75); margin: .25rem 0; font-size: .92rem; }
.tem-footer ul { list-style: none; padding: 0; margin: 0; }
.tem-footer li { margin: .35rem 0; }
.tem-footer a { color: rgba(255,255,255,.85); font-size: .92rem; }
.tem-footer a:hover { color: var(--tem-red); }
.tem-footer__brand-name { font-family: var(--tem-font-heading); font-weight: 800; font-size: 1.3rem; color: var(--tem-white); margin-bottom: .75rem; }
.tem-footer__social { display: flex; gap: .75rem; margin-top: 1rem; }
.tem-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    transition: background .2s;
    font-size: .8rem;
}
.tem-footer__social a:hover { background: var(--tem-red); color: var(--tem-white); }
.tem-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    text-align: center;
    color: rgba(255,255,255,.55);
    font-size: .85rem;
}
.tem-footer__credit {
    display: block;
    margin-top: .35rem;
    font-size: .72rem;
    letter-spacing: .02em;
    opacity: .55;
}
.tem-footer__credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,.25);
    transition: opacity .2s, border-color .2s;
}
.tem-footer__credit a:hover {
    opacity: 1;
    border-bottom-color: rgba(255,255,255,.5);
}
@media (max-width: 900px) {
    .tem-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
    .tem-footer__inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   COMPONENTES REUTILIZABLES (shortcodes)
   ========================================================================= */
.tem-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.tem-service-card {
    background: var(--tem-white);
    border-radius: var(--tem-radius);
    box-shadow: var(--tem-shadow-sm);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.tem-service-card:hover { transform: translateY(-4px); box-shadow: var(--tem-shadow-md); }
.tem-service-card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tem-service-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tem-service-card__title {
    font-family: var(--tem-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tem-black);
    margin: 0 0 .5rem;
}
.tem-service-card__excerpt { color: var(--tem-gray-700); font-size: .9rem; margin: 0 0 1rem; flex: 1; }
.tem-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--tem-red);
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.tem-service-card__link::after { content: "→"; transition: transform .2s; }
.tem-service-card__link:hover::after { transform: translateX(3px); }

/* Grid de formatos */
.tem-formatos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.tem-formato-card {
    text-align: center;
    background: var(--tem-gray-100);
    border-radius: var(--tem-radius);
    padding: 1.5rem 1rem;
    transition: background .2s, transform .2s;
    display: block;
    color: var(--tem-black);
}
.tem-formato-card:hover { background: var(--tem-red); color: var(--tem-white); transform: translateY(-3px); }
.tem-formato-card:hover .tem-formato-card__title { color: var(--tem-white); }
.tem-formato-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--tem-radius);
    margin-bottom: 1rem;
}
.tem-formato-card__title {
    font-family: var(--tem-font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    color: var(--tem-black);
    transition: color .2s;
}

/* Grid de noticias */
.tem-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.tem-news-card {
    background: var(--tem-white);
    border-radius: var(--tem-radius);
    box-shadow: var(--tem-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tem-news-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--tem-gray-100); }
.tem-news-card__body { padding: 1.25rem; flex: 1; }
.tem-news-card__date { color: var(--tem-gray-500); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tem-news-card__title { font-family: var(--tem-font-heading); font-weight: 700; font-size: 1.05rem; margin: .5rem 0; }
.tem-news-card__title a { color: var(--tem-black); }
.tem-news-card__title a:hover { color: var(--tem-red); }

/* =========================================================================
   CARRUSEL DE CLIENTES (Section 8 del Home) — logos uniformes en ticker
   Elementor image-carousel usa Swiper v8+. Los logos originales son ~32px
   de alto con proporciones entre 4:1 y 7.5:1 (L'Oréal, Banco Chile,
   JetSmart, Entel, Concha y Toro). Normalizamos la caja para que ninguno
   se recorte y todos se vean al mismo tamaño visual.
   ========================================================================= */
.elementor-element-7bf3506 .elementor-image-carousel-wrapper { padding: 20px 10px; }
.elementor-element-7bf3506 .swiper-slide,
.elementor-element-7bf3506 .slick-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 0 16px;
    box-sizing: border-box;
}
.elementor-element-7bf3506 .swiper-slide figure,
.elementor-element-7bf3506 .slick-slide figure,
.elementor-element-7bf3506 .swiper-slide .elementor-carousel-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.elementor-element-7bf3506 .swiper-slide img,
.elementor-element-7bf3506 .slick-slide img {
    max-height: 70px;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto;
    object-fit: contain;
    transition: transform .25s;
}
.elementor-element-7bf3506 .swiper-slide img:hover,
.elementor-element-7bf3506 .slick-slide img:hover {
    transform: scale(1.08);
}
/* Dots de navegación rojos */
.elementor-element-7bf3506 .swiper-pagination { margin-top: 20px; }
.elementor-element-7bf3506 .swiper-pagination-bullet,
.elementor-element-7bf3506 .slick-dots li button:before {
    background: rgba(26,26,26,.3) !important;
    opacity: 1 !important;
}
.elementor-element-7bf3506 .swiper-pagination-bullet-active,
.elementor-element-7bf3506 .slick-dots li.slick-active button:before {
    background: #E8192C !important;
    color: #E8192C !important;
    opacity: 1 !important;
}

/* Grid de marcas/clientes (legacy, dejar por si se usa en otra page) */
.tem-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    align-items: center;
}
.tem-brands-grid img {
    max-height: 70px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .2s, opacity .2s;
}
.tem-brands-grid img:hover { filter: grayscale(0); opacity: 1; }

/* Sección Contacto */
.tem-contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 720px) { .tem-contact-block { grid-template-columns: 1fr; } }

/* =========================================================================
   SUB-SERVICIOS (cards con imagen de fondo, hijos de Servicios)
   ========================================================================= */
.tem-subservicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.tem-subservicio-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    border-radius: var(--tem-radius);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--tem-white) !important;
    box-shadow: var(--tem-shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.tem-subservicio-card:hover { transform: translateY(-4px); box-shadow: var(--tem-shadow-md); }
.tem-subservicio-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .35s;
}
.tem-subservicio-card:hover .tem-subservicio-card__img { transform: scale(1.06); }
.tem-subservicio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 70%);
}
.tem-subservicio-card__title {
    position: relative;
    z-index: 1;
    font-family: var(--tem-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* =========================================================================
   PROYECTOS RELACIONADOS
   ========================================================================= */
.tem-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.tem-related-card {
    background: var(--tem-white);
    border-radius: var(--tem-radius);
    overflow: hidden;
    box-shadow: var(--tem-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.tem-related-card:hover { transform: translateY(-3px); box-shadow: var(--tem-shadow-md); }
.tem-related-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.tem-related-card__body { padding: 1rem 1.25rem 1.25rem; flex: 1; }
.tem-related-card__title {
    font-family: var(--tem-font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 .5rem;
}
.tem-related-card__title a { color: var(--tem-black); text-decoration: none; }
.tem-related-card__title a:hover { color: var(--tem-red); }
.tem-related-card__excerpt { color: var(--tem-gray-700); font-size: .9rem; margin: 0; }

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.tem-breadcrumb {
    font-size: .85rem;
    color: var(--tem-gray-700);
    padding: .25rem 0 .5rem;
}
.tem-breadcrumb a { color: var(--tem-gray-700); text-decoration: none; }
.tem-breadcrumb a:hover { color: var(--tem-red); }
.tem-breadcrumb__sep { margin: 0 .4rem; color: var(--tem-gray-300); }
.tem-breadcrumb__current { color: var(--tem-black); font-weight: 500; }

/* =========================================================================
   TAGLINE ROJO REUSABLE (banner-cinta)
   ========================================================================= */
.tem-tagline-bar {
    background: var(--tem-red);
    color: var(--tem-white);
    text-align: center;
    padding: 1.4rem 1rem;
    font-family: var(--tem-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .02em;
}

/* =========================================================================
   EXPERIENCIAS MOVILES — Layout "igual al original" (pages 10-14)
   Portado desde tema legacy tem-turistik/style.css para replicar exactamente
   el diseno de https://temturistik.com/servicios/
   ========================================================================= */

/* Container y utilidades reusables */
.tem-container {
    max-width: var(--tem-container);
    margin: 0 auto;
    padding: 0 24px;
}
.tem-section { padding: 70px 0; }
.tem-section--sm { padding: 40px 0 20px; }
.tem-section--gray { background: var(--tem-gray-100); }
/* En móvil este padding se SUMA al de la sección de Elementor que envuelve al
   shortcode (60 + 70 = 130px arriba y abajo). Pedido del 28-08-2026: bajarlo.
   La otra mitad la pone 28ago-padding-movil.php, en los datos de Elementor. */
@media (max-width: 767px) {
    .tem-section { padding: 32px 0; }
    .tem-section--sm { padding: 24px 0 12px; }
}

/* Hero banner — imgonly: sin texto, solo imagen */
.tem-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--tem-black);
    background-size: cover;
    background-position: center;
}
.tem-hero--short   { min-height: 320px; }
/* imgonly = solo la imagen, sin overlay oscuro. Igual al hero del sitio viejo. */
.tem-hero--imgonly {
    min-height: 480px;
    background-color: transparent;
    background-size: cover;
    background-position: center;
}
.tem-hero--imgonly .tem-hero__bg { opacity: 1; }
.tem-hero__bg {
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    opacity: 1;
}
.tem-hero__content {
    position: relative;
    z-index: 2;
    color: var(--tem-white);
    max-width: 700px;
    padding: 0 24px;
}
.tem-hero__content h1 { color: var(--tem-white); margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.tem-hero__eyebrow {
    font-family: var(--tem-font-heading);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    margin: 0 0 .75rem;
}

/* Tab bar blanco horizontal bajo el hero */
.tem-service-tabs {
    background: var(--tem-white);
    border-bottom: 3px solid var(--tem-gray-300);
}
.tem-service-tabs__list {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.tem-service-tabs__list::-webkit-scrollbar { display: none; }
.tem-service-tabs__item {
    display: inline-block;
    padding: 18px 28px;
    font-family: var(--tem-font-heading);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tem-gray-700);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color .2s, border-color .2s;
}
.tem-service-tabs__item:hover,
.tem-service-tabs__item.is-active {
    color: var(--tem-red);
    border-bottom-color: var(--tem-red);
}

/* Intro 2 columnas (Experiencias Moviles) */
.tem-expmovel-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: var(--tem-black);
    line-height: 1.7;
}
.tem-expmovel-intro p { margin: 0 0 1rem; }
@media (max-width: 768px) { .tem-expmovel-intro { grid-template-columns: 1fr; } }

/* Heading rojo grande centrado */
.tem-expmovel-tagline {
    text-align: center;
    color: var(--tem-red);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .03em;
    margin: 0 0 2.5rem;
}

/* Grid 4-cards en fila (los 4 sub-servicios) */
.tem-service-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .tem-service-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tem-service-row { grid-template-columns: 1fr; } }

.tem-service-rowcard {
    display: block;
    text-decoration: none;
    border-radius: var(--tem-radius);
    overflow: hidden;
    box-shadow: var(--tem-shadow-sm);
    transition: transform .3s, box-shadow .3s;
    background: var(--tem-white);
}
.tem-service-rowcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--tem-shadow-md);
}
.tem-service-rowcard__img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--tem-black);
}
.tem-service-rowcard .tem-service-rowcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.tem-service-rowcard:hover .tem-service-rowcard__img img { transform: scale(1.06); }
.tem-service-rowcard__placeholder { width: 100%; height: 100%; background: var(--tem-gray-100); }

.tem-service-rowcard__body {
    padding: 1rem 1.25rem 1.25rem;
    background: var(--tem-white);
}
.tem-service-rowcard__body h3 {
    font-size: .95rem;
    text-transform: uppercase;
    margin: 0 0 .75rem;
    color: var(--tem-black);
    letter-spacing: .04em;
}
.tem-service-rowcard__btn {
    display: inline-block;
    background: var(--tem-red);
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .4rem 1rem;
    border-radius: var(--tem-radius);
}
.tem-service-rowcard:hover .tem-service-rowcard__btn { background: var(--tem-red-dark); }

/* Clientes / logos band */
.tem-clients {
    padding: 60px 0;
    background: var(--tem-white);
    border-top: 1px solid var(--tem-gray-300);
    border-bottom: 1px solid var(--tem-gray-300);
}
.tem-clients__title {
    text-align: center;
    font-family: var(--tem-font-heading);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--tem-gray-500);
    margin-bottom: 2.5rem;
}
.tem-clients__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.tem-clients .tem-clients__logos img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: .6;
    transition: filter .2s, opacity .2s;
}
.tem-clients__logos img:hover { filter: grayscale(0%); opacity: 1; }

/* Sub-pagina de servicio: 2 columnas descripcion + imagen con sombra */
.tem-service-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) { .tem-service-detail { grid-template-columns: 1fr; } }
/* Sin imagen: 1 sola columna centrada y más ancha */
.tem-service-detail--no-image {
    grid-template-columns: 1fr !important;
    max-width: 960px;
    margin: 0 auto;
}
.tem-service-detail__text h2 {
    text-transform: uppercase;
    font-size: 1.6rem;
    margin: 0 0 1.25rem;
    color: var(--tem-black);
    letter-spacing: .02em;
}
.tem-service-detail__text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--tem-black);
    margin: 0 0 1rem;
}
.tem-service-detail__cta {
    display: inline-block;
    background: var(--tem-red);
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .85rem 1.5rem;
    border-radius: var(--tem-radius);
    margin-top: 1rem;
    transition: background .2s;
}
.tem-service-detail__cta:hover { background: var(--tem-red-dark); color: var(--tem-white); }
.tem-service-detail__img img {
    width: 100%;
    height: auto;
    border-radius: var(--tem-radius);
    box-shadow: var(--tem-shadow-md);
}

/* Seccion "Escoge tu Formato TEM" — subtitulo de la seccion row */
.tem-row-heading {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.35rem;
    letter-spacing: .05em;
    color: var(--tem-black);
    margin: 0 0 2rem;
}

/* =========================================================================
 * FORMATOS — list view (filas) usado en /formatos/
 * ========================================================================= */
.tem-formatos-rows {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.tem-formato-row {
    display: grid;
    grid-template-columns: minmax(220px, 30%) 1fr;
    gap: 36px;
    align-items: center;
    background: var(--tem-white);
    border-radius: var(--tem-radius);
    box-shadow: var(--tem-shadow-sm);
    overflow: hidden;
    padding: 24px;
    transition: box-shadow .25s, transform .25s;
}
.tem-formato-row:hover {
    box-shadow: var(--tem-shadow-md);
    transform: translateY(-2px);
}
.tem-formato-row__img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--tem-radius);
    overflow: hidden;
    background: var(--tem-gray-100);
}
/* Especificidad (0,2,1) para ganarle a `.elementor img { height:auto }` de
   Elementor (frontend.min.css carga DESPUÉS y empata en (0,1,1), pisando el
   alto). Sin esto la imagen toma su alto natural y no llena el cuadrado. */
.tem-formato-row .tem-formato-row__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tem-formato-row__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tem-dark) 0%, var(--tem-black) 100%);
    color: var(--tem-red);
    font-family: var(--tem-font-heading);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    letter-spacing: .05em;
}
.tem-formato-row__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tem-formato-row__title {
    font-family: var(--tem-font-heading);
    text-transform: uppercase;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: var(--tem-black);
    letter-spacing: .02em;
}
.tem-formato-row__excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tem-gray-700, #4a4a4a);
    margin: 0;
}
.tem-formato-row__btn {
    align-self: flex-start;
    background: var(--tem-red);
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .8rem 1.5rem;
    border-radius: var(--tem-radius);
    transition: background .2s;
    margin-top: .5rem;
}
.tem-formato-row__btn:hover {
    background: var(--tem-red-dark);
    color: var(--tem-white);
}
@media (max-width: 768px) {
    .tem-formato-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }
    .tem-formato-row__title { font-size: 1.3rem; }
}

/* =========================================================================
 * SERVICIOS — list view (filas) usado en /servicios/
 * Alias visual: reutiliza .tem-formato-row* (idempotente con shortcode
 * [tem_servicios_rows]). Se mantiene tambien el selector .tem-servicios-rows
 * por si se quiere diferenciar con algun tweak futuro.
 * ========================================================================= */
.tem-servicios-rows { /* mismo comportamiento que .tem-formatos-rows */ }
.tem-servicio-row  { /* mismo comportamiento que .tem-formato-row */ }

/* =========================================================================
 * PROYECTOS SUB-PAGINAS (45-50) — wireframe 5 secciones
 * ========================================================================= */

/* ---------- Seccion 2: Descripcion + Video ---------- */
/* Los dos títulos van prefijados con .tem-section a propósito: el kit global de
   Elementor trae `.elementor-kit-177 h2{font-size:36px}` (y su gemela para h3)
   en post-177.css, que con una clase + un elemento le gana a un selector BEM de
   una sola clase. Sin el prefijo, estas reglas NO se aplican: el título salía a
   36px fijos también en un teléfono de 390px, que es el "contenido se corta"
   de la lámina 6 del 28-08-2026. Mismo caso que `.elementor img`. */
.tem-section .tem-desc-video__heading {
    font-family: var(--tem-font-heading);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tem-black);
    text-align: center;
    /* Escala con el ancho: a 1.5rem fijos, un título largo en mayúsculas
       ("EXPERIENCIAS QUE SOLO EL CERRO PERMITE") llega al borde en teléfonos
       angostos. Pedido del 28-08-2026: "contenido se corta en pantalla móvil". */
    font-size: clamp(1.25rem, 5vw, 2rem);
    overflow-wrap: break-word;
    letter-spacing: .02em;
    margin: 0 0 2rem;
}
.tem-section .tem-desc-video__heading::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--tem-red);
    margin: .75rem auto 0;
}
.tem-desc-video {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.tem-desc-video__media {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tem-desc-video__media-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--tem-radius);
    background: var(--tem-gray-100);
    box-shadow: var(--tem-shadow-md);
}
/* Cuando hay foto + video stacked, cada uno conserva su aspect 4/3 */
.tem-desc-video__media--stacked .tem-desc-video__media-item {
    aspect-ratio: 4 / 3;
}
/* El video embebido normalmente es 16/9; se le da ese ratio cuando viene solo o stacked */
.tem-desc-video__media-item--video {
    aspect-ratio: 16 / 9;
}
.tem-desc-video__img,
.tem-desc-video__video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}
.tem-desc-video__video {
    position: absolute;
    inset: 0;
}
.tem-desc-video__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tem-section .tem-desc-video__title {
    font-family: var(--tem-font-heading);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tem-black);
    font-size: 1.6rem;
    letter-spacing: .02em;
    margin: 0;
}
.tem-desc-video__body {
    color: var(--tem-gray-700);
    font-size: 1rem;
    line-height: 1.7;
}
.tem-desc-video__body p { margin: 0 0 1rem; }
.tem-desc-video__body p:last-child { margin-bottom: 0; }
.tem-desc-video__cta {
    align-self: flex-start;
    background: var(--tem-red);
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .9rem 1.75rem;
    border-radius: var(--tem-radius);
    transition: background .2s, transform .2s;
    margin-top: .5rem;
}
.tem-desc-video__cta:hover {
    background: var(--tem-red-dark);
    color: var(--tem-white);
    transform: translateY(-1px);
}
@media (max-width: 900px) {
    .tem-desc-video { grid-template-columns: 1fr; gap: 28px; }
    /* El tamaño del heading ya lo resuelve el clamp() de arriba: si se fija acá
       en 1.5rem, vuelve a desbordar en pantallas angostas. */
    .tem-section .tem-desc-video__title { font-size: 1.3rem; }
}

/* ---------- Seccion 3: Galeria grid ---------- */
.tem-galeria-grid {
    display: grid;
    grid-template-columns: repeat(var(--tem-gal-cols, 4), 1fr);
    gap: 16px;
}
.tem-galeria-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--tem-radius);
    background: var(--tem-gray-100);
    box-shadow: var(--tem-shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.tem-galeria-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--tem-shadow-md);
}
.tem-galeria-grid .tem-galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tem-galeria-item.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ECECEC 0%, #D8D8D8 100%);
}
.tem-galeria-item__ph {
    font-family: var(--tem-font-heading);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tem-gray-500);
}
@media (max-width: 900px) {
    .tem-galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
    .tem-galeria-grid { grid-template-columns: 1fr; }
}

/* ---------- Seccion 4: Contacto inline ---------- */
.tem-contacto-inline {
    display: grid;
    grid-template-columns: minmax(240px, 40%) 1fr;
    gap: 40px;
    align-items: center;
    background: var(--tem-white);
    border-radius: var(--tem-radius);
    padding: 32px;
    box-shadow: var(--tem-shadow-sm);
}
.tem-contacto-inline__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--tem-radius);
    overflow: hidden;
    background: var(--tem-gray-100);
}
.tem-contacto-inline .tem-contacto-inline__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tem-contacto-inline__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tem-contacto-inline__title {
    font-family: var(--tem-font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.8rem;
    color: var(--tem-black);
    margin: 0;
    letter-spacing: .02em;
}
.tem-contacto-inline__title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--tem-red);
    margin-top: .5rem;
}
.tem-contacto-inline__desc {
    color: var(--tem-gray-700);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 .5rem;
}
.tem-contacto-inline__form .wpcf7 { margin: 0; }
.tem-contacto-inline__form .wpcf7 p { margin: .5rem 0; }
.tem-contacto-inline__form input[type="text"],
.tem-contacto-inline__form input[type="email"],
.tem-contacto-inline__form input[type="tel"],
.tem-contacto-inline__form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--tem-gray-300);
    border-radius: var(--tem-radius);
    font-family: var(--tem-font-body);
    font-size: .95rem;
    background: var(--tem-white);
    transition: border-color .2s;
}
.tem-contacto-inline__form input:focus,
.tem-contacto-inline__form textarea:focus {
    outline: none;
    border-color: var(--tem-red);
}
.tem-contacto-inline__form input[type="submit"] {
    background: var(--tem-red);
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .9rem 1.75rem;
    border: 0;
    border-radius: var(--tem-radius);
    cursor: pointer;
    transition: background .2s;
    width: auto;
}
.tem-contacto-inline__form input[type="submit"]:hover {
    background: var(--tem-red-dark);
}
@media (max-width: 900px) {
    .tem-contacto-inline {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }
    .tem-contacto-inline__img { aspect-ratio: 16 / 9; }
    .tem-contacto-inline__title { font-size: 1.4rem; }
}

/* =========================================================================
   CF7 STYLED (#102) — form unificado para Home S9 y página /contacto/
   Funciona sobre fondo oscuro (home S9) y sobre fondo claro (contacto).
   Layout: 2 columnas para Nombre/Teléfono/Email/Empresa + Mensaje full.
   Inputs con fondo blanco + borde gris + label oculto (usamos placeholders).
   ========================================================================= */

/* Grid 2-col de campos cortos + Mensaje full + submit */
.wpcf7-form .tem-cf7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.wpcf7-form .tem-cf7-col { min-width: 0; }
.wpcf7-form .tem-cf7-full { grid-column: 1 / -1; }
@media (max-width: 600px) {
    .wpcf7-form .tem-cf7-grid { grid-template-columns: 1fr; }
}

.wpcf7-form .tem-cf7-row { margin-bottom: 14px; }
.wpcf7-form .tem-cf7-submit-row { margin-top: 18px; text-align: left; }

.wpcf7-form p { margin: 0; }   /* WP auto-wraps shortcodes en <p>, neutralizar */

.wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
    width: 100%;
    padding: .95rem 1.1rem;
    background: #FFFFFF;
    border: 1.5px solid #E5E5E5;
    border-radius: var(--tem-radius);
    font-family: var(--tem-font-body);
    font-size: 1rem;
    color: var(--tem-black);
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
}
.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #777777;
    opacity: 1;
    font-family: var(--tem-font-body);
    font-weight: 500;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--tem-red);
    box-shadow: 0 0 0 3px rgba(232,25,44,.15);
    background: #FFFFFF;
}
.wpcf7-form input:focus::placeholder,
.wpcf7-form textarea:focus::placeholder { color: #C0C0C0; }

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form .tem-cf7-submit {
    background: var(--tem-red);
    color: var(--tem-white);
    font-family: var(--tem-font-heading);
    font-weight: 700;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 1rem 2.2rem;
    border: 0;
    border-radius: var(--tem-radius);
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(232,25,44,.25);
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .tem-cf7-submit:hover {
    background: var(--tem-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232,25,44,.35);
}
.wpcf7-form input[type="submit"]:active,
.wpcf7-form .tem-cf7-submit:active { transform: translateY(0); }

/* Mensajes de validación */
.wpcf7-not-valid-tip {
    color: var(--tem-red);
    font-size: .85rem;
    margin-top: 4px;
    display: block;
}
.wpcf7-response-output {
    margin: 1rem 0 0 !important;
    padding: .75rem 1rem !important;
    border-radius: var(--tem-radius);
    font-size: .92rem;
}
.wpcf7 form.sent .wpcf7-response-output {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #66BB6A !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background: #FFEBEE;
    color: #B71C1C;
    border: 1px solid var(--tem-red) !important;
}
.wpcf7-spinner { background-color: var(--tem-red) !important; }

/* Sobre fondo oscuro (home S9) — inputs sobre card blanco con contraste */
.elementor-element-51aca59 .wpcf7-form {
    background: transparent;
}

/* =========================================================================
   TEM FORMATO DESC — layout 2 cols (texto + imagen) para páginas individuales
   de tem_formato. Replica el estilo del sitio viejo: título "Descripción"
   en rojo + texto descriptivo a la izquierda, imagen principal a la derecha.
   ========================================================================= */
.tem-formato-desc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 0;
}
.tem-formato-desc__text { }
.tem-formato-desc__title {
    font-family: var(--tem-font-heading);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--tem-black);
    margin: 0 0 1.25rem;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--tem-gray-300);
}
.tem-formato-desc__text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--tem-gray-700);
    margin: 0;
}
.tem-formato-desc__img {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tem-formato-desc__img img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--tem-radius);
}
@media (max-width: 900px) {
    .tem-formato-desc {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0;
    }
}

/* =========================================================================
   TEM ACCORDION — descripción estructurada en subpáginas. Primer item
   abierto por default. Toggle con click; animación max-height smooth.
   ========================================================================= */
.tem-accordion {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}
.tem-accordion__intro {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--tem-gray-700);
    text-align: center;
    margin-bottom: 36px;
    padding: 0 8px;
}
.tem-accordion__intro p { margin: 0 0 1rem; }
.tem-accordion__intro p:last-child { margin-bottom: 0; }

.tem-accordion__item {
    border-bottom: 1px solid var(--tem-gray-300);
}
.tem-accordion__item:first-of-type {
    border-top: 1px solid var(--tem-gray-300);
}

.tem-accordion__header {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    padding: 22px 40px !important;
    cursor: pointer !important;
    text-align: center !important;
    font-family: var(--tem-font-heading) !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    color: var(--tem-gray-700) !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    transition: color .2s !important;
    position: relative !important;
    box-shadow: none !important;
}
.tem-accordion__header:hover,
.tem-accordion__header:focus-visible { color: var(--tem-black); }
.tem-accordion__item.is-open .tem-accordion__header { color: var(--tem-black); }
.tem-accordion__title { text-align: center; }

/* Icono + / − animado — posicionado absoluto a la derecha */
.tem-accordion__icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--tem-gray-500);
    transition: color .2s;
}
.tem-accordion__item.is-open .tem-accordion__icon,
.tem-accordion__header:hover .tem-accordion__icon { color: var(--tem-red); }
.tem-accordion__icon::before,
.tem-accordion__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s ease;
}
.tem-accordion__icon::after {
    transform: rotate(90deg);
}
.tem-accordion__item.is-open .tem-accordion__icon::after {
    transform: rotate(0);
}

/* Body colapsable con animación */
.tem-accordion__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}
.tem-accordion__item.is-open .tem-accordion__body {
    grid-template-rows: 1fr;
}
.tem-accordion__body-inner {
    overflow: hidden;
    min-height: 0;
}
.tem-accordion__body-inner p {
    margin: 0 0 16px;
    padding: 4px 4px 22px;
    color: var(--tem-gray-700);
    line-height: 1.75;
    font-size: 1rem;
    text-align: justify;
    text-justify: inter-word;
}
.tem-accordion__body-inner p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .tem-accordion { padding: 0 16px; }
    .tem-accordion__header { font-size: .98rem; padding: 18px 2px; }
}

/* JS handler vía inline listener en el footer del child theme */

/* =========================================================================
   SERVICE BLOCKS (legacy) — queda por si quedan páginas antiguas usándolo.
   Cards con border-left rojo, hover lift.
   ========================================================================= */
.tem-service-blocks {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tem-service-blocks__intro {
    background: transparent;
    padding: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--tem-gray-700);
}
.tem-service-blocks__intro p { margin: 0 0 1rem; }
.tem-service-blocks__item {
    background: var(--tem-white);
    border-left: 4px solid var(--tem-red);
    border-radius: var(--tem-radius);
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tem-service-blocks__item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 22px rgba(232,25,44,.12);
    border-left-color: var(--tem-red-dark);
}
.tem-service-blocks__title {
    font-family: var(--tem-font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 1.15rem;
    color: var(--tem-red);
    margin: 0 0 .65rem;
    position: relative;
}
.tem-service-blocks__item p {
    margin: 0;
    color: var(--tem-black);
    line-height: 1.7;
    font-size: 1rem;
}
@media (max-width: 600px) {
    .tem-service-blocks__item { padding: 18px 20px; }
    .tem-service-blocks__title { font-size: 1.05rem; }
}

/* =========================================================================
   ACCESIBILIDAD — focus visible + screen-reader-text (WCAG 2.1 AA)
   Añadido 2026-04-17 para score Lighthouse A11y >= 80.
   ========================================================================= */

/* screen-reader-text: oculta visualmente pero accesible para lectores. */
.screen-reader-text,
.sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus,
.sr-only:focus {
    background: #1A1A1A;
    color: #FFF;
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: 1rem;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 12px 18px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

/* focus-visible global — contraste AAA sobre todos los fondos. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.tem-nav a:focus-visible,
.tem-header__cta:focus-visible,
.tem-service-tabs__item:focus-visible,
.tem-formato-row__btn:focus-visible {
    outline: 3px solid #E8192C;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #FFFFFF;
}

/* Fallback para navegadores sin :focus-visible (iOS Safari <15.4). */
@supports not selector(:focus-visible) {
    a:focus, button:focus { outline: 3px solid #E8192C; outline-offset: 2px; }
}

/* Contraste: asegurar botones en fondo rojo tengan contraste suficiente. */
.tem-header__cta { color: #E8192C !important; background: #FFFFFF !important; }
.tem-header__cta:hover,
.tem-header__cta:focus-visible { background: #FFE5E8 !important; color: #B7121F !important; }

/* Reducir motion para usuarios que lo solicitan. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Target size WCAG 2.5.5: links de nav >= 44×44 px. */
.tem-nav__list a,
.tem-footer__col a,
.tem-service-tabs__item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Contraste: asegurar que enlaces inline tengan mínimo 4.5:1 sobre blanco. */
.tem-footer a { color: #FFFFFF; text-decoration: underline; }
.tem-footer a:hover { color: #FFE5E8; }

/* =========================================================================
   SINGLE POSTS (noticias) — centrar contenido y ocultar área de comentarios
   Specificidad alta + !important para vencer al plugin legacy
   "consulting-elementor-widgets" que añade su CSS sobre .consulting_elementor_wrapper
   ========================================================================= */
body.single-post #content.site-main,
body.single-post main.site-main {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 50px 24px 80px !important;
    width: auto !important;
    float: none !important;
}
body.single-post .page-content,
body.single-post article {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}
body.single-post .entry-header {
    text-align: center !important;
    margin: 0 auto 2rem !important;
    max-width: 720px !important;
}
body.single-post .entry-header h1,
body.single-post .entry-title,
body.single-post h1.entry-title {
    text-align: center !important;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
    line-height: 1.25 !important;
    margin: 0 auto 1rem !important;
    color: var(--tem-black) !important;
}
body.single-post .entry-meta {
    color: #666 !important;
    font-size: .9rem !important;
    text-align: center !important;
    margin: 0 auto 1.5rem !important;
}
body.single-post .post-thumbnail {
    margin: 0 auto 2rem !important;
    max-width: 720px !important;
    text-align: center !important;
}
body.single-post .post-thumbnail img,
body.single-post .wp-post-image {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
}
body.single-post .entry-content,
body.single-post .entry-content.consulting_elementor_wrapper,
body.single-post .consulting_elementor_wrapper {
    max-width: 720px !important;
    margin: 0 auto !important;
    line-height: 1.7 !important;
    font-size: 1.05rem !important;
    color: var(--tem-black) !important;
    width: auto !important;
    float: none !important;
}
body.single-post .entry-content p {
    margin: 0 0 1.2rem !important;
    text-align: left !important;
}
body.single-post .entry-content img {
    display: block !important;
    margin: 1.5rem auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
}
body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    text-align: left !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

/* Ocultar bloque de comentarios y otros widgets en single posts */
body.single-post #comments,
body.single-post .comments-area,
body.single-post .post-navigation,
body.single-post #respond,
body.single-post .navigation.posts-navigation,
body.single-post .nav-links {
    display: none !important;
}

