:root {
    /* Paleta de Colores "Dark Dev" */
    --primary: #6366f1;   /* Índigo moderno */
    --primary-hover: #4f46e5;
    --secondary: #10b981; /* Verde esmeralda para APKs/Dinero */
    --bg-dark: #0f172a;   /* Fondo principal muy oscuro */
    --bg-card: #1e293b;   /* Fondo de tarjetas */
    --text-main: #f8fafc; /* Blanco hueso */
    --text-muted: #94a3b8; /* Gris azulado */
    --border-color: rgba(255,255,255,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Header y Logo --- */
header {
    text-align: center;
    padding: 3rem 1rem;
    background: radial-gradient(circle at top, #1e1b4b 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    margin-bottom: 1.5rem;
}

.main-logo {
    max-width: 150px; /* Ajusta este tamaño según tu logo */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3)); /* Resplandor sutil */
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #a5b4fc, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Estructura Principal --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
    margin: 3rem 0 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Tarjetas de Producto --- */
.card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.card-img {
    height: 160px;
    background-color: #334155; /* Fondo temporal si no hay imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- Etiquetas y Precios --- */
.badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.badge-saas { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }
.badge-apk { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }

h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }

.text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- Botones --- */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-note {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}