/* * hero_app.css
 * Estilo "SaaS Profesional"
 * Base: Diseño de Tarjetas Modernas.
 * Paleta: LinkedIn Blue (#0a66c2) + Colores Semánticos Vibrantes.
 */

:root {
    /* --- Paleta Principal (LinkedIn Identity) --- */
    --hero-bg-color: #F3F2EF;       /* El gris de fondo clásico de LinkedIn */
    --hero-primary: #0a66c2;        /* LinkedIn Science Blue */
    --hero-primary-dark: #004182;   /* Azul oscuro para hover */
    --hero-card-bg: #FFFFFF;        /* Blanco puro */
    
    /* --- Tipografía --- */
    --hero-text-title: #191919;     /* Casi negro, muy sólido */
    --hero-text-body: #434649;      /* Gris oscuro profesional */
    --hero-text-muted: #666666;     /* Gris medio */

    /* --- Colores Semánticos (Toque de color vibrante) --- */
    /* Se usan para diferenciar categorías visualmente */
    --color-plan: #0a66c2;   /* Azul (Marca) */
    --color-create: #8B5CF6; /* Violeta (Creatividad) */
    --color-eval: #057642;   /* Verde LinkedIn (Éxito/Evaluación) */
    --color-game: #b24020;   /* Naranja Ladrillo (Gamificación/Activo) */
}

/* --- 1. Contenedor Principal --- */
.hero-app-section {
    background-color: var(--hero-bg-color);
    padding: 80px 24px;
    border-bottom: 1px solid #e0dfdc;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero-app-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* --- 2. Encabezado (Header) --- */
.hero-app-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px auto;
}

.hero-app-welcome {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hero-primary);
    background-color: rgba(10, 102, 194, 0.1); /* Azul muy suave */
    padding: 8px 16px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-app-title {
    font-size: 3rem;
    font-weight: 700; /* Bold sólido */
    color: var(--hero-text-title);
    line-height: 1.15;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.hero-app-subtitle {
    font-size: 1.2rem;
    color: var(--hero-text-body);
    line-height: 1.6;
    font-weight: 400;
}

/* --- 3. Grid de Aplicaciones --- */
.hero-app-grid {
    display: grid;
    /* Tarjetas responsivas: mínimo 280px de ancho */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* --- 4. Tarjetas (Card Design) --- */
.hero-app-card {
    background-color: var(--hero-card-bg);
    border: 1px solid #e0dfdc; /* Borde sutil */
    border-radius: 12px; /* Radio moderado, muy profesional */
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    height: 100%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0); /* Prepara transición */
}

.hero-app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra suave al elevarse */
    border-color: var(--hero-primary); /* Borde azul al hover */
}

/* Contenedor de Iconos */
.hero-card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.hero-app-card:hover .hero-card-icon-wrapper {
    transform: scale(1.1);
}

/* Colores de Fondo para Iconos (Tonos muy suaves) */
.icon-bg-blue   { background-color: #eef3f8; color: var(--color-plan); }
.icon-bg-purple { background-color: #f2effb; color: var(--color-create); }
.icon-bg-green  { background-color: #e6f2ed; color: var(--color-eval); }
.icon-bg-orange { background-color: #fff0ea; color: var(--color-game); }

/* Tipografía de la Tarjeta */
.hero-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hero-text-title);
    margin: 0 0 8px 0;
}

.hero-app-card:hover .hero-card-title {
    color: var(--hero-primary); /* Título se vuelve azul al hover */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.hero-card-description {
    font-size: 0.95rem;
    color: var(--hero-text-body);
    line-height: 1.5;
    margin: 0;
}

/* --- 5. Tarjeta Destacada (Featured) --- */
.hero-app-card.featured {
    /* Borde azul más grueso para destacar */
    border: 2px solid var(--hero-primary);
    background-color: #f8fbff; /* Fondo azul muy tenue */
}

.hero-app-card.featured .hero-card-title {
    color: var(--hero-primary);
}

/* Badge (Etiqueta superior) */
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-popular { background-color: #dce6f1; color: var(--hero-primary); } /* Azul claro */
.badge-english { background-color: #fff0ea; color: #b24020; } /* Naranja claro */

/* --- 6. Responsivo --- */
@media (max-width: 768px) {
    .hero-app-section {
        padding: 48px 16px;
    }
    .hero-app-title {
        font-size: 2.25rem;
    }
    .hero-app-grid {
        gap: 16px;
    }
}
