/* ============================================================
   TINKUY360 — GALERÍA DE MODELOS
   ============================================================ */

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
    --tinkuy-oro-claro: #FFE44D;
    --tinkuy-oro-profundo: #FFA500;
    --tinkuy-glass: rgba(255, 255, 255, 0.04);
    --tinkuy-glass-borde: rgba(255, 215, 0, 0.15);
    --tinkuy-glass-borde-hover: rgba(255, 215, 0, 0.4);
}

/* ============================================================
   WRAP
   ============================================================ */

.modelos-wrap {
    position: relative;
    background:
        radial-gradient(circle at 20% 15%, rgba(0, 255, 255, 0.06), transparent 35%),
        radial-gradient(circle at 85% 85%, rgba(255, 215, 0, 0.05), transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(46, 204, 113, 0.03), transparent 40%);
    overflow: hidden;
}

.modelos-wrap::before,
.modelos-wrap::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
    animation: flotarAurora 12s ease-in-out infinite alternate;
}

.modelos-wrap::before {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.08), transparent 70%);
}

.modelos-wrap::after {
    width: 600px;
    height: 400px;
    bottom: -200px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06), transparent 70%);
    animation-delay: 3s;
    animation-direction: alternate-reverse;
}

@keyframes flotarAurora {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.15); }
}

/* ============================================================
   HERO
   ============================================================ */

.modelos-hero {
    position: relative;
    z-index: 2;
    padding: 90px 24px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.modelos-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.04);
    margin-bottom: 30px;
    animation: aparecerArriba 0.8s ease both;
}

.modelos-hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ECC71;
    box-shadow: 0 0 12px #2ECC71;
    animation: pulsar 2s ease-in-out infinite;
}

@keyframes pulsar {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.2); }
}

.modelos-hero-titulo {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 0 0 20px;
    animation: aparecerArriba 0.8s 0.15s ease both;
    color: #fff;
}

.modelos-hero-titulo .dorado {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modelos-hero-subtitulo {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    margin: 0 auto 30px;
    font-weight: 300;
    animation: aparecerArriba 0.8s 0.3s ease both;
}

.modelos-hero-firma {
    width: 180px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #95A5A6, #E74C3C, #FFD700, #2ECC71, transparent);
    opacity: 0.8;
    animation: aparecerArriba 0.8s 0.45s ease both;
}

@keyframes aparecerArriba {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GRID DE MODELOS
   ============================================================ */

.modelos-grid-wrap {
    position: relative;
    z-index: 2;
    padding: 40px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.modelos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================================
   TARJETA DE MODELO
   ============================================================ */

.modelo-card {
    background: var(--tinkuy-glass);
    border: 1px solid var(--tinkuy-glass-borde);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.modelo-card:hover {
    border-color: var(--modelo-color);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   PREVIEW (mini tarjeta)
   ============================================================ */

.modelo-preview {
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.modelo-preview-tarjeta {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 5 / 3;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.modelo-card:hover .modelo-preview-tarjeta {
    transform: scale(1.03) rotate(-1deg);
}

.modelo-preview-tarjeta::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--modelo-color, #FFD700), transparent 70%);
    opacity: 0.12;
    pointer-events: none;
}

.modelo-preview-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.modelo-preview-logo svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.modelo-preview-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.modelo-preview-marca {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1;
    white-space: nowrap;
}

.modelo-preview-nombre {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.modelo-preview-cargo {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
}

/* ============================================================
   INFO DEL MODELO
   ============================================================ */

.modelo-info {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.modelo-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modelo-info-icono {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.modelo-card:hover .modelo-info-icono {
    border-color: var(--modelo-color);
    transform: scale(1.08) rotate(-5deg);
}

.modelo-info-categoria {
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--modelo-color);
    margin-bottom: 4px;
    font-weight: 700;
}

.modelo-info-nombre {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin: 0;
}

.modelo-info-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

/* ============================================================
   CARACTERÍSTICAS
   ============================================================ */

.modelo-info-caracteristicas {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modelo-info-caracteristicas li {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    line-height: 1.5;
    padding-left: 4px;
    transition: color 0.3s ease;
}

.modelo-card:hover .modelo-info-caracteristicas li {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   CTA DEL MODELO
   ============================================================ */

.modelo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    background: transparent;
    color: var(--modelo-color);
    border: 2px solid var(--modelo-color);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: auto;
}

.modelo-cta:hover {
    background: var(--modelo-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modelo-cta-flecha {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.modelo-cta:hover .modelo-cta-flecha {
    transform: translateX(5px);
}

/* ============================================================
   CIERRE / CTA FINAL
   ============================================================ */

.modelos-cierre {
    position: relative;
    z-index: 2;
    padding: 90px 24px 100px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.04) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.08);
}

.modelos-cierre-titulo {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 auto 20px;
    max-width: 700px;
    letter-spacing: -1px;
    color: #fff;
}

.modelos-cierre-titulo .dorado {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modelos-cierre-texto {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 300;
}

.modelos-cierre-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones reutilizados (los mismos de home.css) */
.btn-tinkuy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.btn-tinkuy-primario {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.btn-tinkuy-primario:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
    color: #000;
}

.btn-tinkuy-secundario {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-tinkuy-secundario:hover {
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

/* ============================================================
   REVEAL (animaciones al scroll)
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
    .modelos-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .modelos-grid {
        grid-template-columns: 1fr;
    }

    .modelos-hero {
        padding: 60px 20px 30px;
    }

    .modelos-grid-wrap {
        padding: 30px 20px 60px;
    }

    .modelo-preview {
        padding: 24px 16px;
    }

    .modelo-info {
        padding: 24px 22px 28px;
    }

    .modelos-cierre {
        padding: 70px 20px 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}