/* ==========================================================================
   Tecnificación (templates/core/tecnificacion_td3.html y tecnificacion_td3_en.html)
   Reutiliza home-landing.css (tokens --home-*, .home-btn, .home-seccion, .home-cabecera,
   .home-tarjeta); aquí solo lo propio de la página. Móvil primero, sin JS propio.
   ========================================================================== */

/* Portada: azul noche, título, precio y botones. */
.tec-portada {
    /* El menú es fijo y esta página no lleva migas: se deja su altura, como la portada anterior. */
    margin-top: var(--navbar-h, 102px);
    background: var(--home-noche);
    color: #fff;
}

.tec-portada__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 16px 2.5rem;
}

.tec-portada__titulo {
    margin: 0 0 0.75rem;
    font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', 'DM Sans', 'DM Sans Fallback', sans-serif;
    font-size: clamp(2rem, 6.5vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
    color: #fff;
}

.tec-portada__entradilla {
    max-width: 40rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.tec-portada__precio {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 1.25rem;
    padding: 0.5rem 1rem;
    font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', 'DM Sans', 'DM Sans Fallback', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--home-noche);
    background: #fff;
    border-radius: 999px;
}

/* Botón secundario sobre el azul noche: contorno blanco. */
.tec-btn--claro {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.tec-btn--claro:hover {
    background: #fff;
    color: var(--home-noche);
}

.tec-portada a:focus-visible {
    outline-color: var(--brand-secondary, #ff6b35);
}

/* Rejillas de tarjetas. */
.tec-rejilla {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.tec-estrecho {
    max-width: 960px;
}

.tec-lista {
    margin: 0;
    padding-left: 1.25rem;
}

.tec-lista li + li {
    margin-top: 0.3rem;
}

.home-tarjeta .tec-h2-tarjeta {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--home-burdeos);
}

.tec-nota {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    color: var(--home-tinta);
    background: var(--home-suave);
    border-left: 4px solid var(--home-naranja);
    border-radius: 0 var(--home-radio) var(--home-radio) 0;
}

.tec-nota i {
    margin-right: 0.35rem;
    color: var(--home-naranja);
}

.tec-nota--centro {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.tec-precio {
    margin: 0;
    font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', 'DM Sans', 'DM Sans Fallback', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--home-noche);
}

.tec-precio span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--home-gris);
}

.tec-condiciones {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tec-condiciones li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.tec-condiciones i {
    flex: none;
    width: 1.5rem;
    padding-top: 0.2rem;
    text-align: center;
    color: var(--home-naranja);
}

.tec-condiciones div {
    display: grid;
    min-width: 0;
}

.tec-condiciones span {
    color: var(--home-gris);
}

@media (min-width: 768px) {
    .tec-portada__inner {
        padding: 2.5rem 24px 3rem;
    }

    .tec-rejilla {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .tec-portada__inner {
        padding: 3rem 24px 3.5rem;
    }

    .tec-rejilla--tres {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tec-rejilla--cuatro {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Rejillas de 3 columnas con un número impar de tarjetas: sin hueco al final. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .tec-rejilla--tres > :last-child:nth-child(odd),
    .tec-rejilla--cinco > :last-child {
        grid-column: 1 / -1;
    }
}

/* Cinco tarjetas en escritorio: 3 + 2 centradas. */
@media (min-width: 992px) {
    .tec-rejilla--cinco {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .tec-rejilla--cinco > * {
        grid-column: span 2;
    }

    .tec-rejilla--cinco > :nth-child(4) {
        grid-column: 2 / span 2;
    }

    .tec-rejilla--cinco > :nth-child(5) {
        grid-column: 4 / span 2;
    }
}
