/* =============================================
   SECCIÓN MODELOS — IronBlock
   ============================================= */

   .models {
    padding: 90px 0;
    background-image: url('../heroironblock.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.models::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.models .container {
    position: relative;
    z-index: 2;
}

/* ========== H1 "No solo lo construimos…" ========== */
.models .hero-title {
    color: #ffffff;                     /* texto blanco legible */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    font-size: 3rem;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 3;
}

.models .hero-title .highlight {
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ajustes en móvil */
@media (max-width: 768px) {
    .models .hero-title {
        font-size: 2.2rem;
        padding: 0 1rem;
    }
    .title-line {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .models .hero-title {
        font-size: 1.9rem;
    }
}

/* Resto de los estilos de la sección… */
.models .section-title {
    text-align: center;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.models .section-subtitle {
    color: #ddd;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ── Grid de tarjetas ──────────────────────── */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    justify-content: center;
}

/* ── Tarjeta individual ─────────────────────── */
.model-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.model-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,193,7,0.1);
}

/* ── Imagen ─────────────────────────────────── */
.model-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.model-card:hover .model-card-image img {
    transform: scale(1.07);
}

/* Badge "Personalizable" en la imagen */
.model-card-image::after {
    content: '3 niveles';
    position: absolute;
    top: 12px;
    right: 0;
    background: var(--primary);
    color: #000;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 3px 0 0 3px;
}

/* ── Cuerpo ─────────────────────────────────── */
.model-card-body {
    padding: 1.25rem 1.25rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.model-card-title {
    font-size: 1.9rem;
    color: var(--primary);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1;
}

.model-card-description {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

/* Mini features list */
.model-card-features {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.model-card-features li {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.model-card-features li i {
    color: var(--primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ── Botón ──────────────────────────────────── */
.model-card-btn {
    margin: 0;
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    padding: 1rem 1.25rem;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    min-height: 52px;
    flex-shrink: 0;
}

.model-card-btn::after {
    content: '→';
    transition: transform 0.25s ease;
    display: inline-block;
}

.model-card-btn:hover,
.model-card:hover .model-card-btn {
    background: var(--primary);
    color: #000;
}

.model-card-btn:hover::after {
    transform: translateX(5px);
}

/* ── Animación de entrada ───────────────────── */
.model-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.model-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.model-card:nth-child(2) { transition-delay: 0.1s; }
.model-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .model-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .models {
        padding: 70px 0;
        background-attachment: scroll;
    }
    .models-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .model-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }
    .model-card-image { height: 200px; }
    .model-card-btn { font-size: 1rem; padding: 1rem; }
    .model-card { opacity: 1; transform: none; }
}