/* ==========================================================================
   MEJORAS — animaciones y hovers de prueba sobre la web original (11_web).
   Se carga después del CSS de cada página. Cada bloque es independiente:
   para descartar una mejora alcanza con borrar su bloque.
   ========================================================================== */

:root {
    --ti-azul: #001f54;
    --ti-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==================== 1. HEADER: SE COMPACTA AL SCROLLEAR ==================== */

header {
    transition: top .3s ease, box-shadow .3s ease, padding .3s ease;
}

header .logo img {
    transition: height .3s ease, margin .3s ease, opacity .2s ease-in-out;
}

header.is-scrolled {
    top: 10px;
    box-shadow: 0 8px 30px rgba(0, 31, 84, 0.14);
}

header.is-scrolled .logo img {
    height: 62px;
    margin-top: 14px;
}

/* ==================== 2. NAV: SUBRAYADO QUE CRECE ==================== */

nav a {
    position: relative;
}

nav a:hover,
nav a.active {
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: var(--ti-azul);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ti-ease);
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* ==================== 3. HERO: ENTRADA DEL TEXTO ==================== */

@keyframes tiSubir {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}

.hero-content > *,
.hero-contacto .hero-content > * {
    animation: tiSubir .9s var(--ti-ease) both;
}

.hero-content > :nth-child(1) { animation-delay: .15s; }
.hero-content > :nth-child(2) { animation-delay: .3s; }
.hero-content > :nth-child(3) { animation-delay: .45s; }

/* ==================== 4. APARICIÓN AL SCROLLEAR (clase puesta por mejoras.js) ==================== */

.ti-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s var(--ti-ease);
    transition-delay: var(--ti-delay, 0s);
}

.ti-reveal.ti-desde-izq { transform: translateX(-40px); }
.ti-reveal.ti-desde-der { transform: translateX(40px); }

.ti-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==================== 5. CIFRAS (index) ==================== */

.hero.hero--con-cifras {
    padding-bottom: 150px;
}

section.cifras {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    margin-top: -70px;
}

.cifras-grid {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 31, 84, 0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.cifra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 32px 20px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background .3s ease;
}

.cifra + .cifra::before {
    content: '';
    position: absolute;
    left: 0;
    top: 28%;
    bottom: 28%;
    width: 1px;
    background: #e5e5e5;
}

.cifra:first-child { border-radius: 20px 0 0 20px; }
.cifra:last-child  { border-radius: 0 20px 20px 0; }

.cifra:hover {
    background: #f9fafc;
}

.cifra-num {
    font-family: "DM Sans", sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ti-azul);
    font-variant-numeric: tabular-nums;
    transition: transform .3s var(--ti-ease);
}

.cifra:hover .cifra-num {
    transform: translateY(-3px);
}

.cifra-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    text-align: center;
}

/* ==================== 6. CARDS DE INDUSTRIAS (index, carrusel con flechas) ==================== */

a.industria-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.industria-card {
    transition: transform .35s var(--ti-ease), box-shadow .35s ease;
}

.industria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 31, 84, 0.16);
}

/* La foto se agranda adentro de la card sin mover el resto */
.industria-card .card-image {
    position: relative;
    overflow: hidden;
}

.industria-card .card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform .7s var(--ti-ease);
}

.industria-card:hover .card-image::before {
    transform: scale(1.07);
}

/* Clientes reales del rubro: aparecen desde abajo */
.card-clientes {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 22px 18px;
    background: linear-gradient(to top, rgba(0, 31, 84, 0.92), rgba(0, 31, 84, 0));
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .45s var(--ti-ease), opacity .3s ease;
}

.card-clientes small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 4px;
}

.industria-card:hover .card-clientes,
.industria-card:focus-visible .card-clientes {
    transform: none;
    opacity: 1;
}

/* El pie de la card pasa a azul, como los rubros de Nosotros */
.industria-card .card-content {
    gap: 10px;
    transition: background .35s ease, color .35s ease;
}

.industria-card .card-content h3 {
    transition: color .35s ease;
}

.card-flecha {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s ease, transform .35s var(--ti-ease);
}

.industria-card:hover .card-content {
    background: var(--ti-azul);
}

.industria-card:hover .card-content h3,
.industria-card:hover .card-flecha {
    color: #fff;
}

.industria-card:hover .card-flecha {
    opacity: 1;
    transform: none;
}

/* En pantallas táctiles no hay hover: los clientes quedan siempre visibles */
@media (hover: none) {
    .card-clientes {
        transform: none;
        opacity: 1;
    }
    .card-flecha {
        opacity: 1;
        transform: none;
    }
}

/* Flechas del carrusel: se llenan de azul y la flecha empuja hacia su lado */
.industrias-carousel .swiper-button-prev,
.industrias-carousel .swiper-button-next {
    transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.industrias-carousel .swiper-navigation-icon {
    width: 14px;
    height: 14px;
    color: #444;
    transition: color .25s ease, translate .25s var(--ti-ease);
}

.industrias-carousel .swiper-button-prev:hover,
.industrias-carousel .swiper-button-next:hover {
    background: var(--ti-azul);
    box-shadow: 0 8px 20px rgba(0, 31, 84, 0.3);
}

.industrias-carousel .swiper-button-prev:hover .swiper-navigation-icon,
.industrias-carousel .swiper-button-next:hover .swiper-navigation-icon {
    color: #fff;
}

.industrias-carousel .swiper-button-next:hover .swiper-navigation-icon { translate: 3px 0; }
.industrias-carousel .swiper-button-prev:hover .swiper-navigation-icon { translate: -3px 0; }

.industrias-carousel .swiper-button-prev:active,
.industrias-carousel .swiper-button-next:active {
    transform: translateY(-50%) scale(.94);
}

/* Bullet activo un poco más ancho, tipo píldora */
.industrias-carousel .swiper-pagination-bullet {
    transition: width .3s ease, opacity .3s ease;
}

.industrias-carousel .swiper-pagination-bullet-active {
    background: var(--ti-azul);
    width: 28px;
    border-radius: 6px;
}

/* ==================== 7. LOGOS QUE SE MUEVEN SOLOS (index + proveedores) ==================== */

/* Frena al pasar el mouse para poder leer */
.scroller[data-animated="true"]:hover .scroller__inner {
    animation-play-state: paused;
}

.logo-partner {
    position: relative;
    overflow: hidden;
}

/* Panel con rubro y origen, armado por mejoras.js desde data-rubro / data-origen */
.logo-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px 18px;
    background: var(--ti-azul);
    color: #fff;
    text-align: left;
    transform: translateY(101%);
    transition: transform .4s var(--ti-ease);
}

.logo-info-rubro {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.logo-info-origen {
    font-size: 12px;
    line-height: 1.3;
    opacity: .75;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-partner:hover .logo-info,
.logo-partner.is-abierto .logo-info {
    transform: none;
}

/* ==================== 8. LÍNEAS DIVISORIAS CON FLUJO ==================== */

@keyframes tiFlujo {
    from { background-position: 100% 0; }
    to   { background-position: 0% 0; }
}

.section-header.with-line::before,
.divider::before,
.divider::after,
.section-divider::before,
.section-divider::after {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 44%,
        var(--ti-azul) 50%,
        rgba(0, 0, 0, 0.15) 56%, rgba(0, 0, 0, 0.15) 100%);
    background-size: 250% 100%;
    animation: tiFlujo 7s linear infinite;
}

.section-header.with-line::before { height: 2px; }

.divider::after,
.section-divider::after {
    animation-delay: -3.5s;
}

/* ==================== 9. PROVEEDORES: MAPA DE ORIGEN ==================== */

.mapa-section {
    padding: 100px 80px 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.mapa-section .section-header {
    margin-bottom: 40px;
}

.mapa-layout {
    max-width: 1100px;
    margin: 0 auto;
}

.mapa-origen {
    position: relative;
}

/* Lista de países: mismo hover que el acordeón del index */
.mapa-leyenda {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 18px;
    margin-top: 36px;
}

.mapa-pais {
    padding: 10px 14px;
    border-left: 3px solid transparent;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    outline: none;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.mapa-pais:hover,
.mapa-pais:focus-visible,
.mapa-pais.is-activo {
    background: #f9fafc;
    border-left-color: var(--ti-azul);
    transform: translateY(-2px);
}

.mapa-pais-cab {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
    color: #333;
    transition: color .25s ease;
}

.mapa-pais:hover .mapa-pais-cab,
.mapa-pais.is-activo .mapa-pais-cab {
    color: var(--ti-azul);
}

.mapa-pais-num {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    color: var(--ti-azul);
}

.mapa-pais-prov {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

/* Recortado a su recuadro: al acercar, las rutas hacia Buenos Aires no se salen del mapa */
.mapa-origen svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* El grosor de los puntos lo pone mejoras.js según la capa (mundo o región) */
.mapa-tierra {
    fill: none;
    stroke: #d3dae6;
    stroke-linecap: round;
    transition: stroke .35s ease;
}

/* Argentina, el destino, siempre un poco marcada */
.mapa-tierra-destino {
    stroke: #a9b8d1;
}

/* El país elegido se pinta de azul */
.mapa-tierra-pais.is-activo {
    stroke: var(--ti-azul);
}

/* Zona invisible para tocar un país entre punto y punto */
.mapa-hit {
    fill: none;
    stroke: transparent;
    stroke-linecap: round;
    pointer-events: stroke;
    cursor: pointer;
}

/* --f = ancho visible / ancho total: achica trazos y textos al acercar
   para que en pantalla mantengan el mismo tamaño */

.mapa-arco {
    fill: none;
    stroke: var(--ti-azul);
    stroke-width: calc(1.3px * var(--f, 1));
    opacity: .3;
    transition: opacity .3s ease, stroke-width .3s ease;
}

.mapa-arco.is-dibujando {
    transition: stroke-dashoffset 1.6s var(--ti-ease), opacity .3s ease, stroke-width .3s ease;
}

/* Un punto que viaja por cada arco hacia Buenos Aires: carga en tránsito */
.mapa-flujo {
    fill: none;
    stroke: var(--ti-azul);
    stroke-width: calc(3.2px * var(--f, 1));
    stroke-linecap: round;
    stroke-dasharray: 0.1 99.9;
    stroke-dashoffset: 100;
    opacity: 0;
    transition: opacity .3s ease;
}

.mapa-origen.en-transito .mapa-flujo {
    opacity: .85;
    animation: tiTransito 4.2s linear infinite;
    animation-delay: var(--ti-delay, 0s);
}

@keyframes tiTransito {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}

.mapa-punto {
    r: calc(4px * var(--f, 1));
    fill: var(--ti-azul);
    stroke: #fff;
    stroke-width: calc(1.5px * var(--f, 1));
    cursor: pointer;
    transition: r .25s ease;
}

.mapa-punto-zona {
    r: calc(9px * var(--f, 1));
    fill: transparent;
    cursor: pointer;
}

.mapa-destino {
    r: calc(6px * var(--f, 1));
    fill: var(--ti-azul);
    stroke: #fff;
    stroke-width: calc(2px * var(--f, 1));
}

.mapa-destino-onda {
    r: calc(6px * var(--f, 1));
    fill: none;
    stroke: var(--ti-azul);
    stroke-width: calc(1.5px * var(--f, 1));
    transform-box: fill-box;
    transform-origin: center;
    animation: tiOnda 2.4s ease-out infinite;
}

@keyframes tiOnda {
    from { transform: scale(1); opacity: .6; }
    to   { transform: scale(3.2); opacity: 0; }
}

.mapa-destino-texto {
    font-family: "DM Sans", sans-serif;
    font-size: calc(15px * var(--f, 1));
    font-weight: 600;
    fill: var(--ti-azul);
}

/* Nombres de las ciudades del país elegido */
.mapa-etiqueta {
    font-family: "DM Sans", sans-serif;
    font-size: calc(13px * var(--f, 1));
    font-weight: 600;
    fill: var(--ti-azul);
    paint-order: stroke;
    stroke: #fff;
    stroke-width: calc(3px * var(--f, 1));
    stroke-linejoin: round;
    pointer-events: none;
    animation: tiAparecer .4s ease both;
}

@keyframes tiAparecer {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Al resaltar un origen, el resto se apaga */
.mapa-origen.tiene-activo .mapa-arco { opacity: .08; }
.mapa-origen.tiene-activo .mapa-flujo { opacity: .15; }
.mapa-origen.tiene-activo .mapa-punto { opacity: .35; }

.mapa-origen .mapa-arco.is-activo { opacity: 1; stroke-width: calc(2.2px * var(--f, 1)); }
.mapa-origen .mapa-flujo.is-activo { opacity: 1; }
.mapa-origen .mapa-punto.is-activo { opacity: 1; r: calc(6px * var(--f, 1)); }

/* Botón para volver a la vista mundial */
.mapa-volver {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 31, 84, 0.15);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--ti-azul);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s var(--ti-ease), background .25s ease, color .25s ease;
}

.mapa-volver:hover {
    background: var(--ti-azul);
    color: #fff;
}

.mapa-layout.is-zoom .mapa-volver {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.mapa-ayuda {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 26px;
}

.mapa-layout.is-zoom .mapa-ayuda,
.mapa-layout.is-zoom .mapa-leyenda {
    display: none;
}

/* Ficha del país: pestañas de la región y sus proveedores */
.mapa-ficha {
    display: none;
    margin-top: 30px;
}

.mapa-layout.is-zoom .mapa-ficha {
    display: block;
}

.mapa-ficha-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.mapa-tab {
    padding: 8px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #f5f5f5;
    font: inherit;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.mapa-tab span {
    margin-left: 8px;
    font-weight: 600;
    color: var(--ti-azul);
}

.mapa-tab:hover {
    border-color: var(--ti-azul);
}

.mapa-tab.is-activo {
    background: var(--ti-azul);
    border-color: var(--ti-azul);
    color: #fff;
}

.mapa-tab.is-activo span {
    color: #fff;
}

.mapa-ficha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.mapa-prov {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 22px 24px;
    animation: tiSubir .5s var(--ti-ease) both;
}

.mapa-prov-nombre {
    font-family: "DM Sans", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color .25s ease;
}

.mapa-prov-nombre[href]::after {
    content: ' ↗';
    font-size: .75em;
    text-decoration: none;
    display: inline-block;
    margin-left: 4px;
}

.mapa-prov-nombre:hover {
    color: var(--ti-azul);
}

.mapa-prov-ciudad {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 10px;
    font-size: 13px;
    color: #999;
}

.mapa-prov p {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

.mapa-tooltip {
    position: absolute;
    z-index: 3;
    min-width: 170px;
    max-width: 260px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 31, 84, 0.18);
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px)) translateY(6px);
    transition: opacity .2s ease, transform .25s var(--ti-ease);
}

.mapa-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 14px));
}

.mapa-tooltip strong {
    display: block;
    color: var(--ti-azul);
    font-size: 14px;
}

.mapa-tooltip span {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 2px;
}

/* ==================== 10. PROVEEDORES: CARDS DE LA GRILLA ==================== */

.supplier-card {
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Barra azul que se completa arriba de la card */
.supplier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ti-azul);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ti-ease);
}

.supplier-card:hover::before {
    transform: scaleX(1);
}

/* Flecha de link externo junto al nombre */
.supplier-name::after {
    content: '↗';
    display: inline-block;
    margin-left: 8px;
    font-size: .75em;
    text-decoration: none;
    color: var(--ti-azul);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity .3s ease, transform .35s var(--ti-ease);
}

.supplier-card:hover .supplier-name::after {
    opacity: 1;
    transform: none;
}

/* Pin de ubicación antes de la ciudad */
.supplier-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.supplier-location::before,
.logo-info-origen::before,
.mapa-prov-ciudad::before {
    content: '';
    flex: none;
    width: 10px;
    height: 13px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.6 5 8 5 8s5-4.4 5-8a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.6 5 8 5 8s5-4.4 5-8a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==================== 11. BOTÓN "ESCRIBINOS →" ==================== */

.btn-flecha {
    display: inline-block;
    transition: transform .3s var(--ti-ease);
}

.btn:hover .btn-flecha {
    transform: translateX(6px);
}

/* ==================== 12. CATÁLOGO ==================== */

.feature-body ul li::before {
    transition: transform .3s var(--ti-ease);
}

.feature-body ul li:hover::before {
    transform: translateX(4px);
}

/* Etiqueta PDF delante de cada descarga */
.download-item span::before {
    content: 'PDF';
    display: inline-block;
    margin-right: 12px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e8ecf3;
    color: var(--ti-azul);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    vertical-align: 2px;
    transition: background .25s ease, color .25s ease;
}

.download-item:hover span::before {
    background: var(--ti-azul);
    color: #fff;
}

@keyframes tiBajar {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

.download-item:hover button {
    animation: tiBajar .8s ease-in-out infinite;
}

/* ==================== 13. CLIENTES ==================== */

/* Rubros: mismo hover azul que los rubros de Nosotros */
.rubros .rubro-item {
    transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.rubros .rubro-item:hover {
    background: var(--ti-azul);
    color: #fff;
}

.rubros .rubro-item .icon-area img {
    transition: filter .3s ease, transform .3s var(--ti-ease);
}

.rubros .rubro-item:hover .icon-area img {
    filter: brightness(0) invert(1);
    transform: scale(1.08);
}

/* Que el ancla #energia no quede tapada por el header */
.clients-section {
    scroll-margin-top: 120px;
}

.industry-cantidad {
    display: inline-block;
    margin-left: 14px;
    padding: 3px 12px;
    border-radius: 20px;
    background: #eef1f6;
    color: var(--ti-azul);
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
}

/* Listado compacto (pedido de Sebastián): nombres chicos en gris y en columnas, para que
   se vea de un golpe cuántos clientes son sin bajar tanto. El rubro de cada uno (Oil & Gas,
   Generación...) queda como cartelito al pasar el mouse. */
.clients-section {
    padding: 40px 50px 20px;
}

.clients-section .section-title-wrapper {
    margin-bottom: 18px;
}

.clients-section .industry-title {
    margin-bottom: 0;
}

.clients-grid {
    display: block;
    columns: 190px;
    column-gap: 40px;
}

.client-item {
    break-inside: avoid;
    padding: 4px 0;
    border-bottom: none;
}

.client-item .client-category {
    display: none;
}

.client-item .client-name {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    color: #666;
    transition: color .2s ease;
}

.client-item:hover .client-name {
    color: var(--ti-azul);
}

/* ==================== 14. NOSOTROS: FOTO DEL EQUIPO ==================== */

.equipo-card .photo-placeholder {
    position: relative;
    overflow: hidden;
}

.equipo-card .photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform .6s var(--ti-ease);
}

.equipo-card:hover .photo-placeholder::before {
    transform: scale(1.06);
}

/* ==================== 15. CONTACTO: CAMPOS ==================== */

.contact-form-container input,
.contact-form-container textarea {
    transition: border-color .3s ease, box-shadow .3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-bottom-color: var(--ti-azul);
    box-shadow: 0 1px 0 var(--ti-azul);
}

/* ==================== 16. CATÁLOGO: LÍNEA DE PLANTA ==================== */

/* Encabezados de las dos secciones nuevas (catalogo.css y nosotros.css no los traen) */
.planta .section-header,
.linea-tiempo .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.planta .section-label,
.linea-tiempo .section-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.planta .section-title,
.linea-tiempo .section-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #000;
}

.planta .section-description,
.linea-tiempo .section-description {
    font-size: 17px;
    color: #666;
    max-width: 760px;
    margin: 0 auto;
}

.planta {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 80px 90px;
    scroll-margin-top: 100px;
}

.planta-lienzo {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.planta-lienzo svg {
    display: block;
    width: 100%;
    height: auto;
}

.planta-suelo {
    stroke: #e3e7ee;
    stroke-width: 2;
}

.planta-guia {
    fill: none;
    stroke: #8a96ab;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    pointer-events: none;
}

.planta-ampliacion {
    fill: #fff;
    stroke: #b8c2d1;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

/* Caño: borde azul y relleno claro; el flujo es una línea punteada que avanza */
.pz-cano-borde {
    fill: none;
    stroke: var(--ti-azul);
    stroke-width: 16;
    stroke-linejoin: round;
}

.pz-cano-relleno {
    fill: none;
    stroke: #eef1f6;
    stroke-width: 11;
    stroke-linejoin: round;
    transition: stroke .3s ease;
}

.planta-flujo {
    fill: none;
    stroke: #7d8fb0;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 2 16;
    animation: tiFluir 1.2s linear infinite;
    pointer-events: none;
}

@keyframes tiFluir {
    to { stroke-dashoffset: -18; }
}

.planta-pieza {
    cursor: pointer;
    outline: none;
    transition: opacity .3s ease;
}

.pz-cuerpo {
    fill: #eef1f6;
    stroke: var(--ti-azul);
    stroke-width: 2.5;
    stroke-linejoin: round;
    transition: fill .3s ease;
}

.pz-detalle,
.pz-vastago {
    fill: none;
    stroke: var(--ti-azul);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke .3s ease;
}

.pz-relleno-azul {
    fill: var(--ti-azul);
    transition: fill .3s ease;
}

/* Al elegir una pieza, el resto se apaga y la elegida se pinta de azul */
.planta-lienzo.tiene-activo .planta-pieza:not(.is-activo) {
    opacity: .3;
}

.planta-pieza.is-activo .pz-cuerpo {
    fill: var(--ti-azul);
}

.planta-pieza.is-activo .pz-detalle {
    stroke: #fff;
}

.planta-pieza.is-activo .pz-relleno-azul {
    fill: #fff;
}

.planta-pieza.is-activo .pz-cano-relleno {
    stroke: #5a74a3;
}

.planta-info {
    position: absolute;
    z-index: 3;
    width: 290px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(0, 31, 84, 0.18);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 16px)) translateY(8px);
    transition: opacity .25s ease, transform .3s var(--ti-ease);
}

.planta-info.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 16px));
}

.planta-info.abajo {
    transform: translate(-50%, 16px) translateY(-8px);
}

.planta-info.abajo.is-visible {
    transform: translate(-50%, 16px);
}

.planta-info strong {
    display: block;
    margin-bottom: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    color: var(--ti-azul);
}

.planta-info p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.planta-info .planta-marcas {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.planta-info .planta-ir {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.planta-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

/* Una pastilla por familia debajo del dibujo: cómodas en celular */
.planta-chip {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.planta-chip:hover {
    border-color: var(--ti-azul);
    color: var(--ti-azul);
}

.planta-chip.is-activo {
    background: var(--ti-azul);
    border-color: var(--ti-azul);
    color: #fff;
}

.feature {
    scroll-margin-top: 130px;
}

/* Al llegar desde la línea de planta, el artículo se marca un momento */
@keyframes tiMarcar {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 31, 84, 0); }
    30%      { box-shadow: 0 0 0 12px rgba(0, 31, 84, 0.12); }
}

.feature.is-destacado .feature-media {
    animation: tiMarcar 1.6s ease;
}

/* ==================== 17. NOSOTROS: LÍNEA DE TIEMPO ==================== */

.linea-tiempo {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 80px;
}

.lt {
    position: relative;
    padding: 10px 0;
}

.lt::before,
.lt-relleno {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    border-radius: 4px;
}

.lt::before {
    background: #e8ecf3;
}

.lt-relleno {
    background: var(--ti-azul);
    transform: scaleY(var(--avance, 0));
    transform-origin: top;
}

.lt-hito {
    position: relative;
    width: calc(50% - 50px);
    margin-bottom: 36px;
    padding: 24px 28px;
    border-radius: 16px;
    background: #f5f5f5;
    opacity: .3;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s var(--ti-ease), background .3s ease;
}

.lt-hito:nth-of-type(even) {
    margin-left: calc(50% + 50px);
}

.lt-hito:last-child {
    margin-bottom: 0;
}

/* Nodo sobre la línea */
.lt-hito::before {
    content: '';
    position: absolute;
    top: 30px;
    right: -60px;
    width: 12px;
    height: 12px;
    border: 4px solid #e8ecf3;
    border-radius: 50%;
    background: #fff;
    transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.lt-hito:nth-of-type(even)::before {
    right: auto;
    left: -60px;
}

.lt-hito.is-alcanzado {
    opacity: 1;
    transform: none;
}

.lt-hito.is-alcanzado::before {
    border-color: var(--ti-azul);
    background: var(--ti-azul);
    box-shadow: 0 0 0 6px rgba(0, 31, 84, 0.1);
}

.lt-hito:hover {
    background: #eef1f6;
}

.lt-anio {
    display: block;
    margin-bottom: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ti-azul);
}

.lt-hito h3 {
    margin-bottom: 6px;
    font-size: 19px;
    color: #111;
}

.lt-hito p {
    font-size: 15px;
    line-height: 1.55;
    color: #666;
}

/* Hitos sin datos: se ven como borrador para completar */
.lt-hito.lt-pendiente {
    border: 2px dashed #c9d2e1;
    background: #fafbfd;
}

/* Compensar el borde de la tarjeta para mantener el nodo sobre el eje. */
.lt-hito.lt-pendiente::before {
    margin: -2px;
}

.lt-pendiente .lt-anio {
    color: #b3bccb;
}

.lt-falta {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border: 1px solid #d3dae6;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
    color: #8a96ab;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .mapa-leyenda {
        grid-template-columns: repeat(2, 1fr);
    }

    .cifras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cifra:nth-child(3)::before { display: none; }
    .cifra:nth-child(-n+2) { border-bottom: 1px solid #eee; }
    .cifra:first-child { border-radius: 20px 0 0 0; }
    .cifra:nth-child(2) { border-radius: 0 20px 0 0; }
    .cifra:nth-child(3) { border-radius: 0 0 0 20px; }
    .cifra:last-child  { border-radius: 0 0 20px 0; }
}

@media (max-width: 768px) {
    header.is-scrolled { top: 6px; }
    header.is-scrolled .logo img { height: 44px; margin-top: 10px; }

    /* En el menú lateral el subrayado es corto */
    nav a::after {
        right: auto;
        width: 36px;
        bottom: 8px;
    }

    .hero.hero--con-cifras { padding-bottom: 110px; }

    section.cifras {
        padding: 0 20px;
        margin-top: -50px;
    }

    .cifra { padding: 22px 12px; }
    .cifra-num { font-size: 34px; }
    .cifra-label { font-size: 11px; letter-spacing: 1px; }

    .mapa-section { padding: 60px 20px 40px; }
    .mapa-destino-texto { font-size: calc(22px * var(--f, 1)); }
    /* En pantallas chicas los nombres se encimarían: la ficha de abajo ya dice la ciudad */
    .mapa-etiqueta { display: none; }
    .mapa-volver { top: 6px; left: 6px; padding: 6px 12px; font-size: 13px; }

    .industry-cantidad {
        font-size: 12px;
        margin-left: 8px;
    }

    /* Clientes: dos columnas en celular */
    .clients-section {
        padding: 30px 20px 10px;
    }

    .clients-grid {
        columns: 140px;
        column-gap: 20px;
    }

    .client-item .client-name {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .linea-tiempo {
        padding: 60px 20px;
    }

    .planta {
        padding: 20px 20px 60px;
    }

    .planta .section-title,
    .linea-tiempo .section-title {
        font-size: 30px;
    }

    .planta-info {
        width: 240px;
    }

    /* Línea de tiempo a la izquierda */
    .lt::before,
    .lt-relleno {
        left: 14px;
    }

    .lt-hito,
    .lt-hito:nth-of-type(even) {
        width: auto;
        margin-left: 44px;
    }

    .lt-hito::before,
    .lt-hito:nth-of-type(even)::before {
        right: auto;
        left: -40px;
    }
}

@media (max-width: 560px) {
    .mapa-leyenda {
        grid-template-columns: 1fr;
    }
}

/* ==================== MENOS MOVIMIENTO ==================== */

@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .hero-contacto .hero-content > *,
    .mapa-destino-onda,
    .mapa-origen.en-transito .mapa-flujo,
    .download-item:hover button,
    .section-header.with-line::before,
    .divider::before,
    .divider::after,
    .section-divider::before,
    .section-divider::after {
        animation: none !important;
    }

    .mapa-flujo { display: none; }

    .planta-flujo {
        animation: none;
    }

    .lt-hito {
        opacity: 1;
        transform: none;
    }

    .mapa-prov,
    .mapa-etiqueta {
        animation: none;
    }

    .ti-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
