/* ========================================= */
/* VARIABLES GLOBALES Y SETUP BASE           */
/* ========================================= */
:root {
    --bg-black: #050505;
    --card-bg: #0f0f0f;
    --cyan: #00f3ff;
    --text-gray: #888;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-black);
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.container { padding: 0 10%; }
.cyan { color: var(--cyan); }

/* ========================================= */
/* HEADER Y BOTÓN DE REGRESO PREMIUM         */
/* ========================================= */
.archive-header {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, #0a0a0a, var(--bg-black));
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-link i {
    color: var(--cyan);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.back-link:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.back-link:hover i {
    transform: translateX(-4px);
}

.archive-header h1 { 
    font-size: 2.5rem; 
    margin: 20px 0 10px; 
    font-family: 'Poppins', sans-serif; 
}
.archive-header p { 
    color: var(--text-gray); 
    max-width: 600px; 
}

/* ========================================= */
/* GRID Y TARJETAS DE ARCHIVO                */
/* ========================================= */
.archive-container { padding: 50px 10%; }

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.archive-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.archive-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

/* EFECTO PULSO PARA EL ESTADO "LIVE" */
.card-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 1px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 243, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

/* TEXTOS DE LAS TARJETAS */
.project-tag {
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 600;
}

.archive-card h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
    font-family: 'Poppins', sans-serif;
}

.archive-card p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Empuja el footer hacia abajo */
}

/* INSIGNIAS DE TECNOLOGÍA (BADGES) */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: auto;
}

.tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.visit-btn {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.visit-btn:hover { 
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transform: translateX(3px);
}

/* ========================================= */
/* FOOTER (ESTILO DEL INDEX)                 */
/* ========================================= */
footer { 
    padding: 60px 10%; 
    background: #050505; 
    border-top: 1px solid var(--border); 
}

footer .footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.footer-logo p { 
    color: #666; 
    font-size: 0.9rem; 
    margin-top: 5px; 
}

.brand-link { 
    display: inline-block; 
    color: #fff; 
    text-decoration: none; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 800; 
    font-size: 1.5rem; 
    letter-spacing: 1px; 
    transition: 0.3s ease; 
}

.brand-link:hover { 
    color: var(--cyan); 
    text-shadow: 0 0 15px var(--cyan); 
    transform: translateX(5px); 
}

.payment-methods { text-align: center; }
.payment-methods .icons i { transition: 0.3s; color: #888; }
.payment-methods .icons i:hover { transform: translateY(-5px); filter: brightness(1.2); }

.social-icons { display: flex; gap: 20px; }
.social-link { text-decoration: none; color: #888; font-size: 1.5rem; transition: 0.3s; }
.social-link:hover { 
    color: var(--cyan); 
    transform: scale(1.2); 
    filter: drop-shadow(0 0 8px var(--cyan)); 
}

/* ========================================= */
/* MEDIA QUERIES (RESPONSIVE)                */
/* ========================================= */
@media (max-width: 768px) {
    .container, .archive-container { padding: 0 5%; }
    footer .footer-content { flex-direction: column; text-align: center; }
}