/* ===== EQUIPO DETALLE ===== */
.equipo-detalle {

    min-height: 100vh;

    background: linear-gradient(180deg,
        rgb(41, 78, 108) 0%,
        rgb(255, 255, 255) 11%
    );
    padding: calc(var(--header-height) + 2rem) var(--spacing-md) var(--spacing-xxl);

    @media (min-width: 768px) {
        background: linear-gradient(180deg,
        rgb(41, 78, 108) 0%,
        rgb(255, 255, 255) 17%
        );
    }

    @media (min-width: 1280px) {
        background: linear-gradient(180deg,
        rgb(41, 78, 108) 0%,
        rgb(255, 255, 255) 20%
        );
    }

    @media (min-width: 1480px) {
        background: linear-gradient(180deg,
        rgb(41, 78, 108) 0%,
        rgb(255, 255, 255) 25%
        );
    }
}

/* ===== HEADER ===== */
.equipo-detalle__header {
    margin: 0 auto;

    @media (min-width: 768px) {
        max-width: 620px;
    }

    @media (min-width: 1024px) {
        max-width: 780px;
    }

    @media (min-width: 1280px) {
        max-width: 1024px;
    }

    @media (min-width: 1480px) {
        max-width: 1280px;
    }
}

.equipo-detalle__back {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--green) 100%);
    color: white;
    border: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(86, 213, 58, 0.3);
    cursor: pointer;
}

.equipo-detalle__back:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(86, 213, 58, 0.4);
}

.equipo-detalle__back i {
    transition: transform 0.3s ease;
}

.equipo-detalle__back:hover i {
    transform: translateX(-1px);
}

/* ===== CONTAINER ===== */
.equipo-detalle__container {
    width: 97%;
    margin: 0 auto;
}

/* ===== HERO (Logo y línea de acento) ===== */
.equipo-detalle__hero {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.equipo-detalle__logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.equipo-detalle__logo {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .equipo-detalle__logo {
        max-width: 400px;
        max-height: 150px;
    }
}

.equipo-detalle__accent-line {
    width: 100px;
    height: 4px;
    margin: 0 auto;
    border-radius: 2px;
    background-color: var(--dark-blue);
}

/* ===== INFO ===== */
.equipo-detalle__info {
    margin-bottom: var(--spacing-md);
}

.equipo-detalle__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

@media (min-width: 768px) {
    .equipo-detalle__title {
        font-size: 2.5rem;
    }
}

.equipo-detalle__description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.85);
    margin: 0 auto;
    text-align: center;

    @media (min-width: 768px) {
        max-width: 680px;
    }

    @media (min-width: 1024px) {
        max-width: 768px;
        /* border: 1px solid green; */
    }

    @media (min-width: 1280px) {
        max-width: 900px;
        font-size: 1.05rem;
    }

    @media (min-width: 1480px) {
        max-width: 1200px;
        font-size: 1.1rem;
    }

}

/* =========================================================
   DESCARGABLES / FICHAS TÉCNICAS
   ========================================================= */

.equipo-detalle__downloads {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.equipo-detalle__downloads-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    @media (min-width: 1280px) {
        font-size: 2.05rem;
    }
}

.equipo-detalle__downloads-title i {
    font-size: 1.5rem;
    opacity: 0.7;
}

.equipo-detalle__downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width:98%;
    margin: 0 auto;

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

    @media (min-width: 1024px) {
        max-width: 720px;
        gap: 1.2rem;
    }

    @media (min-width: 1480px) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1120px;
        gap: 1.8rem;
    }
}

/* --- Download Card --- */

.equipo-detalle__download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.equipo-detalle__download-card:hover {
    border-color: var(--dark-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Icono del archivo */

.equipo-detalle__download-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(41, 78, 108, 0.08) 0%, rgba(86, 213, 58, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dark-blue);
    transition: all 0.3s ease;
}

.equipo-detalle__download-card:hover .equipo-detalle__download-icon {
    background: var(--dark-blue);
    color: white;
}

/* Info del archivo */

.equipo-detalle__download-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.equipo-detalle__download-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-blue);
    line-height: 1.3;
    word-break: break-word;
}

.equipo-detalle__download-meta {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 400;
}

/* Botón de descarga */

.equipo-detalle__download-action {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.equipo-detalle__download-card:hover .equipo-detalle__download-action {
    color: var(--dark-blue);
    background: rgba(41, 78, 108, 0.08);
}

/* ===== GALERÍA ===== */
.equipo-detalle__galeria {
    margin-top: var(--spacing-xxl);
}

.equipo-detalle__galeria-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;

    @media (min-width: 1280px) {
        font-size: 2.05rem;
    }
}

.equipo-detalle__galeria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0 auto;

    @media (min-width: 640px) {

        grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1024px) {
        max-width: 720px;
        gap: 2.5rem;
    }

    @media (min-width: 1280px) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1024px;
    }

    @media (min-width: 1480px) {
        max-width: 1180px;
        gap: 3rem
    }

}

.equipo-detalle__galeria-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipo-detalle__galeria-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.equipo-detalle__galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipo-detalle__galeria-item:hover .equipo-detalle__galeria-img {
    transform: scale(1.1);
}

.equipo-detalle__galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipo-detalle__galeria-item:hover .equipo-detalle__galeria-overlay {
    opacity: 1;
}

.equipo-detalle__galeria-overlay i {
    color: white;
    font-size: 2rem;
}

/* ===== MODAL DE IMAGEN ===== */
.equipo-detalle__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--spacing-md);
}

.equipo-detalle__modal-img {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.equipo-detalle__modal-close,
.equipo-detalle__modal-prev,
.equipo-detalle__modal-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.equipo-detalle__modal-close:hover,
.equipo-detalle__modal-prev:hover,
.equipo-detalle__modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.equipo-detalle__modal-close {
    top: 2rem;
    right: 2rem;
}

.equipo-detalle__modal-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.equipo-detalle__modal-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.equipo-detalle__modal-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.equipo-detalle__modal-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .equipo-detalle__modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .equipo-detalle__modal-prev,
    .equipo-detalle__modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .equipo-detalle__modal-prev {
        left: 1rem;
    }

    .equipo-detalle__modal-next {
        right: 1rem;
    }
}