/* ========================================
   MECÁNICA PAGE - ESTILOS PRINCIPALES
   ======================================== */

.mecanica-page {
    width: 100%;
    height: 100vh; /* Ocupar toda la pantalla */
    padding: 0;
    margin: 0;
    overflow: hidden; /* Evitar scroll si todo cabe */
    position: relative;
    box-sizing: border-box;
}

.mecanica-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribuir espacio entre imagen principal y footer */
    padding-top: 110px; /* Ajuste para el header */
    padding-bottom: 20px;
    gap: 10px;
    box-sizing: border-box;
}

/* ========================================
   IMAGEN PRINCIPAL DE MECÁNICA (Rectángulo Grande)
   ======================================== */

.mecanica-main-wrapper {
    flex: 1; /* Ocupar todo el espacio disponible */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 0 10px;
    box-sizing: border-box;

}

.mecanica-main-image {
    max-width: 95%; /* Maximizar ancho casi al total */
    max-height: 75vh; /* Aumentar altura permitida */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ========================================
   IMAGEN DE INFORMACIÓN VÁLIDA (Rectángulo Pequeño)
   ======================================== */

.mecanica-info-wrapper {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding-bottom: 10px;
}

.mecanica-info-image {
    width: auto;
    height: auto;
    max-width: 80%; /* Más ancho */
    max-height: 120px; /* Altura máxima mucho mayor para que no se vea pequeña */
    object-fit: contain;
    display: block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media screen and (max-width: 1024px) {
    .mecanica-container {
        padding-top: 80px;
    }
}

@media screen and (max-width: 768px) {
    .mecanica-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto; /* Permitir scroll en móviles */
    }

    .mecanica-container {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 40px;
        justify-content: flex-start;
        gap: 20px;
    }

    .mecanica-main-wrapper {
        flex: 0 0 auto;
        height: auto;
        padding: 0 10px;
    }

    .mecanica-main-image {
        max-height: none; /* Permitir que crezca */
        width: 100%;
    }

    .mecanica-info-wrapper {
        margin-top: 10px;
    }

    .mecanica-info-image {
        max-height: none;
        max-width: 90%;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

.mecanica-main-wrapper,
.mecanica-info-wrapper {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.mecanica-main-wrapper {
    animation-delay: 0.1s;
}

.mecanica-info-wrapper {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
