/* Galería de archivos — no depende de Vite / Tailwind del proyecto */

.ea-page {
    width: 100%;
    max-width: none;
}

.ea-page-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.ea-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .ea-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ea-tab {
    margin-bottom: -1px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgb(75 85 99);
    border-radius: 0.375rem 0.375rem 0 0;
    transition: color 0.15s, border-color 0.15s;
}

.ea-tab:hover {
    color: rgb(17 24 39);
}

.dark .ea-tab {
    color: rgb(156 163 175);
}

.dark .ea-tab:hover {
    color: rgb(243 244 246);
}

.ea-tab.is-active {
    border-bottom: 2px solid #6d953a;
    color: #6d953a;
}

.dark .ea-tab.is-active {
    border-bottom-color: #8fb85c;
    color: #8fb85c;
}

.ea-panel {
    width: 100%;
    max-width: none;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.dark .ea-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(3 7 18 / 0.4);
}

.ea-empty {
    margin: 0;
    font-size: 0.875rem;
    color: rgb(107 114 128);
}

.dark .ea-empty {
    color: rgb(156 163 175);
}

.ea-galeria {
    display: grid;
    width: 100%;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .ea-galeria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .ea-galeria {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .ea-galeria {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ea-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.dark .ea-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgb(17 24 39);
}

.ea-card__preview-wrap {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom right, rgb(243 244 246), rgb(229 231 235));
}

.dark .ea-card__preview-wrap {
    background: linear-gradient(to bottom right, rgb(31 41 55), rgb(3 7 18));
}

.ea-card__aspect {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ea-card__iframe {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 145%;
    height: 145%;
    transform: translate(-50%, -50%);
    border: 0;
    opacity: 0.95;
}

.ea-card__pdf-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.75rem;
    outline: none;
}

.ea-card__pdf-link:focus-visible {
    box-shadow: inset 0 0 0 2px #6d953a;
}

.ea-card__pdf-hint {
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(17 24 39);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
    opacity: 0;
    transition: opacity 0.15s;
}

.dark .ea-card__pdf-hint {
    background: rgb(17 24 39);
    color: rgb(255 255 255);
}

.ea-card:hover .ea-card__pdf-hint {
    opacity: 1;
}

.ea-card__doc-placeholder {
    display: flex;
    aspect-ratio: 16 / 9;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: linear-gradient(to bottom right, rgb(249 250 251), rgb(243 244 246));
}

.dark .ea-card__doc-placeholder {
    background: linear-gradient(
        to bottom right,
        rgba(31 41 55 / 0.8),
        rgb(17 24 39)
    );
}

.ea-card__doc-icon {
    width: 3rem;
    height: 3rem;
    color: rgb(156 163 175);
}

.dark .ea-card__doc-icon {
    color: rgb(107 114 128);
}

.ea-card__doc-ext {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(107 114 128);
}

.dark .ea-card__doc-ext {
    color: rgb(156 163 175);
}

.ea-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgb(229 231 235);
    padding: 1rem;
}

.dark .ea-card__body {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.ea-card__title {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.375;
    color: rgb(3 7 18);
}

.dark .ea-card__title {
    color: rgb(255 255 255);
}

.ea-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ea-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.15s, filter 0.15s;
}

@media (min-width: 640px) {
    .ea-btn {
        flex: 0 1 auto;
    }
}

.ea-btn--ghost {
    background: rgb(243 244 246);
    color: rgb(31 41 55);
    border: 1px solid rgb(229 231 235);
}

.ea-btn--ghost:hover {
    background: rgb(229 231 235);
}

.dark .ea-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(243 244 246);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .ea-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ea-btn--primary {
    background: #6d953a;
    color: rgb(255 255 255);
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.ea-btn--primary:hover {
    filter: brightness(1.06);
}

.dark .ea-btn--primary {
    background: #8fb85c;
}

.dark .ea-btn--primary:hover {
    filter: brightness(1.05);
}
