/* General page setup for herramientas */


.page-content {
    padding-top: 80px; /* Standard padding to offset navbar, adjust if your navbar height differs */
    padding-bottom: 40px; /* Space at the bottom */
    min-height: calc(100vh - 80px); /* Ensure content area can fill screen */
}

.content-herramientas { 
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tools-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.tools-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--nasa-blue, #0a84ff); /* Use global variable */
    margin-bottom: 10px;
    line-height: 1.2;
}

.tools-header p {
    font-size: 1.15rem;
    color: var(--nasa-text, #5B6770);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

#tools-list-container {
    margin-top: 20px;
    background-color: transparent; /* Container itself can be transparent if cards have backgrounds */
    padding: 0; /* Remove padding if cards handle their own */
    border-radius: 0; /* Remove border-radius if cards handle their own */
}

#tools-list-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--nasa-text, #333);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

#tools-list-container h2::after { /* Underline accent for the subtitle */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--nasa-red, #FC3D21); /* Use global variable */
    border-radius: 2px;
}

/* Card-based layout for the tools list */
#tools-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between cards */
}

#tools-list li {
    /* Individual card styling will be applied to the <a> tag for better clickability */
}

#tools-list li a {
    display: block; /* Make the link a block to fill the card space */
    background-color: var(--white, #ffffff);
    border-radius: 12px; /* Softer, modern corners */
    padding: 25px;
    text-decoration: none;
    color: var(--nasa-text, #333);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent; /* For hover effect */
    height: 100%; /* Make cards in the same row equal height if needed (works with grid) */
    display: flex; /* For aligning content within the card (e.g., icon and text) */
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center;
}

#tools-list li a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--nasa-blue, #0a84ff);
}

/* Styling for the text within the card (tool name) */
#tools-list li a span { /* Assuming herramientas-lister.js wraps name in span, or just style 'a' */
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nasa-blue, #0a84ff); /* Make tool name pop */
    margin-top: 10px; /* If you add an icon above */
}

/* Placeholder for potential icons (if you update herramientas-lister.js) */
#tools-list li a .tool-icon {
    font-size: 2.5rem; /* Example size */
    margin-bottom: 15px;
    color: var(--nasa-red, #FC3D21);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tools-header h1 {
        font-size: 2.2rem;
    }
    .tools-header p {
        font-size: 1rem;
    }
    #tools-list-container h2 {
        font-size: 1.5rem;
    }
    #tools-list {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: 20px;
    }
    #tools-list li a {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tools-header h1 {
        font-size: 1.8rem;
    }
    #tools-list li a span {
        font-size: 1.1rem;
    }
}