/* 
 * Directorio de Herramientas Académicas IVCA
 * Hoja de Estilos del Ecosistema
 */

:root {
    --landing-primary: #154ec1;
    --landing-primary-hover: #0f3ba1;
    --landing-bg: #f8fafc;
    --landing-text-dark: #1e293b;
    --landing-text-muted: #64748b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--landing-bg);
    color: var(--landing-text-dark);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header --- */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 78, 193, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--landing-primary);
    text-decoration: none;
}

.landing-logo img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.btn-outline {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--landing-primary);
    border: 2px solid var(--landing-primary);
    background: transparent;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #eef4ff;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--landing-text-dark);
}

.hero p {
    color: var(--landing-text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Hub / Categories Grid --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: #eef4ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.cat-title {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--landing-text-dark);
}

.cat-desc {
    font-size: 0.95rem;
    color: var(--landing-text-muted);
    margin: 0;
    line-height: 1.5;
}


/* --- Tools Container (List View) --- */
.tools-container {
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-grow: 1;
}

.tool-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    display: flex;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px solid #f1f5f9;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.tool-logo-box {
    width: 250px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-right: 1px solid #f1f5f9;
    text-align: center;
}

.tool-logo-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tool-tag {
    background: #eef4ff;
    color: var(--landing-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tool-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--landing-text-dark);
}

.tool-price {
    font-size: 0.85rem;
    background: #d1fae5;
    color: #059669;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.tool-desc {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.tool-desc p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.btn-visit {
    background-color: var(--landing-primary);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    transition: background-color 0.2s;
}

.btn-visit:hover {
    background-color: var(--landing-primary-hover);
}

/* --- Footer --- */
.landing-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tool-card {
        flex-direction: column;
    }
    .tool-logo-box {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 1.5rem;
    }
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
