/* Header tools dropdown: "Herramientas Gratis [IA]".
   Shared by every page so the disclosure behaves identically site-wide.
   Hover, keyboard focus and click all open it; the panel is absolutely
   positioned below the trigger, so opening it never shifts the header. */

.tools-dropdown {
    position: relative;
}

.tools-trigger {
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5rem;
    cursor: pointer;
    list-style: none;
}

.tools-trigger::-webkit-details-marker {
    display: none;
}

.tools-trigger:focus-visible {
    outline: 2px solid #f28c26;
    outline-offset: 4px;
    border-radius: 0.375rem;
}

.tools-chevron {
    font-size: 10px;
    line-height: 1;
    transition: transform .18s ease;
}

.tools-dropdown[data-open="true"] .tools-chevron {
    transform: rotate(180deg);
}

.tools-panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 50;
    width: 320px;
    max-width: calc(100vw - 2rem);
    padding-top: 0.75rem;
    /* The header row is whitespace-nowrap to stay on one line; the panel must
       reset wrapping so long tool titles wrap inside the card instead of
       overflowing it horizontally. */
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.tools-dropdown[data-open="true"] > .tools-panel,
.tools-dropdown:hover > .tools-panel,
.tools-dropdown:focus-within > .tools-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.tools-card {
    border: 1px solid #ececec;
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 18px 40px -12px rgba(13, 43, 91, .22), 0 2px 8px rgba(13, 43, 91, .06);
    padding: 0.5rem;
}

.tools-item {
    display: block;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    transition: background-color .15s ease;
}

.tools-item:hover,
.tools-item:focus-visible {
    background-color: #fdf1e5;
}

.tools-item-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #0d2b5b;
}

.tools-item-desc {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {

    .tools-chevron,
    .tools-panel {
        transition: none;
    }
}
